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
Default implementation of
INativeWSDefinitionLoader-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckUrlAuthentification(long scomDataAddress, String url, String certificate, String user, String password) Tries to authentification for WSDLurlbycertificate,username andpasswordgetWSDefinitionContent(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
-
Constructor Details
-
NativeWSDefinitionLoader
public NativeWSDefinitionLoader()
-
-
Method Details
-
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
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
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
-