Package com._1c.g5.v8.dt.ws.common
Class NativeWSDefinitionLoader
- java.lang.Object
-
- com._1c.g5.v8.dt.ws.common.NativeWSDefinitionLoader
-
- All Implemented Interfaces:
INativeWSDefinitionLoader
public class NativeWSDefinitionLoader extends Object implements INativeWSDefinitionLoader
Default implementation ofINativeWSDefinitionLoader
-
-
Constructor Summary
Constructors Constructor Description NativeWSDefinitionLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckUrlAuthentification(long scomDataAddress, String url, String certificate, String user, String password)Tries to authentification for WSDLurlbycertificate,username andpasswordStringgetWSDefinitionContent(long scomDataAddress, String url, String certificate, String user, String password)Gets WSDL file content by url.booleanneedUpdateCertificate(long scomDataAddress, String url)Checks that WSDLurlneed for authentificationWSDefinitionLoader.CertificatebooleanneedUrlAuthentification(long scomDataAddress, String url, String certificate)Checks that WSDLurlneed authentification
-
-
-
Method Detail
-
getWSDefinitionContent
public String getWSDefinitionContent(long scomDataAddress, String url, String certificate, String user, String password)
Description copied from interface:INativeWSDefinitionLoaderGets WSDL file content by url. This method can throwRuntimeExceptionwith information from native code- Specified by:
getWSDefinitionContentin interfaceINativeWSDefinitionLoader- Parameters:
scomDataAddress- address of SCOM process data with necessary componentsurl- actual WSDL url, can't benullcertificate- string representation ofWSDefinitionLoader.Certificate. SeeWSDefinitionLoader.Certificate.toString(). If Certificate not needed you should passnullor empty stringuser- name of the user for authentification, can benullor empty string if user name not needed for authentificationpassword- password for authentification, can benullor empty string if password not needed for authentification- Returns:
- WSDL file content, never
null
-
checkUrlAuthentification
public boolean checkUrlAuthentification(long scomDataAddress, String url, String certificate, String user, String password)Description copied from interface:INativeWSDefinitionLoaderTries to authentification for WSDLurlbycertificate,username andpassword- Specified by:
checkUrlAuthentificationin interfaceINativeWSDefinitionLoader- Parameters:
scomDataAddress- address of SCOM process data with necessary componentsurl- actual WSDL url, can't benullcertificate- string representation ofWSDefinitionLoader.Certificate. SeeWSDefinitionLoader.Certificate.toString(). If Certificate not needed you should passnullor empty stringuser- name of the user for authentification, can benullor empty string if user name not needed for authentificationpassword- password for authentification, can benullor empty string if password not needed for authentification- Returns:
trueif authentification pass correctly,falseotherwise
-
needUrlAuthentification
public boolean needUrlAuthentification(long scomDataAddress, String url, String certificate)Description copied from interface:INativeWSDefinitionLoaderChecks that WSDLurlneed authentification- Specified by:
needUrlAuthentificationin interfaceINativeWSDefinitionLoader- Parameters:
scomDataAddress- address of SCOM process data with necessary componentsurl- actual WSDL url, can't benullcertificate- string representation ofWSDefinitionLoader.Certificate. SeeWSDefinitionLoader.Certificate.toString(). If Certificate not needed you should passnullor empty string- Returns:
trueif WSDLurlneed authentification,falseotherwise
-
needUpdateCertificate
public boolean needUpdateCertificate(long scomDataAddress, String url)Description copied from interface:INativeWSDefinitionLoaderChecks that WSDLurlneed for authentificationWSDefinitionLoader.Certificate- Specified by:
needUpdateCertificatein interfaceINativeWSDefinitionLoader- Parameters:
scomDataAddress- address of SCOM process data with necessary componentsurl- actual WSDL url, can't benull- Returns:
trueif WSDLurlneed for authentificationWSDefinitionLoader.Certificate,falseotherwise
-
-