asit.moa.client
Class AbstractClient
java.lang.Object
asit.moa.client.AbstractClient
- All Implemented Interfaces:
- Client
- Direct Known Subclasses:
- CreateSignatureClientImpl, MailDeliveryClient, MOAIDClientImpl, MOAZSClientImpl, StatusClientImpl, VerifySignatureClientImpl
- public abstract class AbstractClient
- extends Object
- implements Client
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
doc_
protected Document doc_
keyIdentifier_
protected String keyIdentifier_
defaultAddress_
protected String defaultAddress_
sslTrustStore_
protected String sslTrustStore_
sslTrustStoreType_
protected String sslTrustStoreType_
sslTrustStorePassword_
protected String sslTrustStorePassword_
clientAuthStore_
protected String clientAuthStore_
clientAuthStoreType_
protected String clientAuthStoreType_
clientAuthStorePassword_
protected String clientAuthStorePassword_
factory_
protected SSLSocketFactory factory_
headers_
protected Hashtable headers_
qname_service_
public QName qname_service_
AbstractClient
public AbstractClient()
throws ClientException
addCustomHeader
public void addCustomHeader(String name,
String value)
setSSLSocketFactory
public void setSSLSocketFactory(SSLSocketFactory factory)
- Specified by:
setSSLSocketFactory in interface Client
setSSLTrustStore
public void setSSLTrustStore(String fileLocation,
String password,
String type)
- Specified by:
setSSLTrustStore in interface Client
setClientAuthStore
public void setClientAuthStore(String fileLocation,
String password)
- Specified by:
setClientAuthStore in interface Client
setHostNameVerifierEnabled
public void setHostNameVerifierEnabled(boolean value)
- Specified by:
setHostNameVerifierEnabled in interface Client
createNewDocument
public static Document createNewDocument()
throws ClientException
- Throws:
ClientException
getSOAPBody
protected Element getSOAPBody()
throws ClientException
- Throws:
ClientException
sendRequest
public Element sendRequest()
throws ClientException,
RequestException
- Returns:
-
- Throws:
ClientException
RequestException
sendRequest
public Element sendRequest(String address)
throws ClientException
- Specified by:
sendRequest in interface Client
- Throws:
ClientException
sendRequest
public Element sendRequest(String address,
Element request)
throws ClientException
- Throws:
ClientException
sendRequest
public Element sendRequest(String address,
InputStream is)
throws ClientException
- Specified by:
sendRequest in interface Client
- Throws:
ClientException
setDefaultAddress
public void setDefaultAddress(String address)
- Specified by:
setDefaultAddress in interface Client
- Parameters:
address -
Copyright 2007 Institut fuer Angewandte Informationsverarbeitung und Kommunikationstechnologie. All Rights Reserved.