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 boolean
checkUrlAuthentification(long scomDataAddress, String url, String certificate, String user, String password)
Tries to authentification for WSDLurl
bycertificate
,user
name andpassword
String
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
-
-
-
Method Detail
-
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
public boolean needUrlAuthentification(long scomDataAddress, String url, String certificate)
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
public boolean needUpdateCertificate(long scomDataAddress, String url)
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
-
-