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 TypeMethodDescriptionboolean
checkUrlAuthentification
(long scomDataAddress, String url, String certificate, String user, String password) Tries to authentification for WSDLurl
bycertificate
,user
name andpassword
getWSDefinitionContent
(long scomDataAddress, String url, String certificate, String user, String password) Gets WSDL file content by url.boolean
needUpdateCertificate
(long scomDataAddress, String url) Checks that WSDLurl
need for authentificationWSDefinitionLoader.Certificate
boolean
needUrlAuthentification
(long scomDataAddress, String url, String certificate) Checks that WSDLurl
need 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:INativeWSDefinitionLoader
Gets WSDL file content by url. This method can throwRuntimeException
with information from native code- Specified by:
getWSDefinitionContent
in interfaceINativeWSDefinitionLoader
- Parameters:
scomDataAddress
- address of SCOM process data with necessary componentsurl
- actual WSDL url, can't benull
certificate
- string representation ofWSDefinitionLoader.Certificate
. SeeWSDefinitionLoader.Certificate.toString()
. If Certificate not needed you should passnull
or empty stringuser
- name of the user for authentification, can benull
or empty string if user name not needed for authentificationpassword
- password for authentification, can benull
or 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:INativeWSDefinitionLoader
Tries to authentification for WSDLurl
bycertificate
,user
name andpassword
- Specified by:
checkUrlAuthentification
in interfaceINativeWSDefinitionLoader
- Parameters:
scomDataAddress
- address of SCOM process data with necessary componentsurl
- actual WSDL url, can't benull
certificate
- string representation ofWSDefinitionLoader.Certificate
. SeeWSDefinitionLoader.Certificate.toString()
. If Certificate not needed you should passnull
or empty stringuser
- name of the user for authentification, can benull
or empty string if user name not needed for authentificationpassword
- password for authentification, can benull
or empty string if password not needed for authentification- Returns:
true
if authentification pass correctly,false
otherwise
-
needUrlAuthentification
Description copied from interface:INativeWSDefinitionLoader
Checks that WSDLurl
need authentification- Specified by:
needUrlAuthentification
in interfaceINativeWSDefinitionLoader
- Parameters:
scomDataAddress
- address of SCOM process data with necessary componentsurl
- actual WSDL url, can't benull
certificate
- string representation ofWSDefinitionLoader.Certificate
. SeeWSDefinitionLoader.Certificate.toString()
. If Certificate not needed you should passnull
or empty string- Returns:
true
if WSDLurl
need authentification,false
otherwise
-
needUpdateCertificate
Description copied from interface:INativeWSDefinitionLoader
Checks that WSDLurl
need for authentificationWSDefinitionLoader.Certificate
- Specified by:
needUpdateCertificate
in interfaceINativeWSDefinitionLoader
- Parameters:
scomDataAddress
- address of SCOM process data with necessary componentsurl
- actual WSDL url, can't benull
- Returns:
true
if WSDLurl
need for authentificationWSDefinitionLoader.Certificate
,false
otherwise
-