asit.moa.client
Class AbstractClient

java.lang.Object
  extended byasit.moa.client.AbstractClient
All Implemented Interfaces:
Client
Direct Known Subclasses:
CreateSignatureClientImpl, MailDeliveryClient, MOAIDClientImpl, MOAZSClientImpl, StatusClientImpl, VerifySignatureClientImpl

public abstract class AbstractClient
extends Object
implements Client


Field Summary
protected  String clientAuthStore_
           
protected  String clientAuthStorePassword_
           
protected  String clientAuthStoreType_
           
protected  String defaultAddress_
           
protected  Document doc_
           
protected  SSLSocketFactory factory_
           
protected  Hashtable headers_
           
protected  String keyIdentifier_
           
 QName qname_service_
           
protected  String sslTrustStore_
           
protected  String sslTrustStorePassword_
           
protected  String sslTrustStoreType_
           
 
Constructor Summary
AbstractClient()
           
 
Method Summary
 void addCustomHeader(String name, String value)
           
static Document createNewDocument()
           
protected  Element getSOAPBody()
           
 Element sendRequest()
           
 Element sendRequest(String address)
           
 Element sendRequest(String address, Element request)
           
 Element sendRequest(String address, InputStream is)
           
 void setClientAuthStore(String fileLocation, String password)
           
 void setDefaultAddress(String address)
           
 void setHostNameVerifierEnabled(boolean value)
           
 void setSSLSocketFactory(SSLSocketFactory factory)
           
 void setSSLTrustStore(String fileLocation, String password, String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface asit.moa.client.Client
getRequest
 

Field Detail

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_
Constructor Detail

AbstractClient

public AbstractClient()
               throws ClientException
Method Detail

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.