asit.moa.client.deliver.moazs
Class MOAZSClientImpl

java.lang.Object
  extended byasit.moa.client.AbstractClient
      extended byasit.moa.client.deliver.moazs.MOAZSClientImpl
All Implemented Interfaces:
Client, DeliveryClient, MOAZSClient

public class MOAZSClientImpl
extends AbstractClient
implements MOAZSClient


Field Summary
protected  Document doc_
           
protected  Element metaData_
           
protected  Vector payLoadElements_
           
protected  Adressat receiver_
           
protected  String senderKeyID_
           
protected  String senderProfileID_
           
protected  String server_
           
protected  iaik.x509.X509Certificate x509_
           
protected  Element xmlDocument_
           
 
Fields inherited from class asit.moa.client.AbstractClient
clientAuthStore_, clientAuthStorePassword_, clientAuthStoreType_, defaultAddress_, factory_, headers_, keyIdentifier_, qname_service_, sslTrustStore_, sslTrustStorePassword_, sslTrustStoreType_
 
Fields inherited from interface asit.moa.client.deliver.moazs.MOAZSClient
DQ_EINSCHREIBEN, DQ_EINSCHREIBEN_EIGENHAENDIG, DQ_EINSCHREIBEN_MIT_RUECKSCHEIN, DQ_EINSCHREIBEN_MIT_RUECKSCHEIN_EIGENHAENDIG, DQ_NON_RSA, DQ_RSA, DQS, DQS_GV, DQS_PRIVATE
 
Constructor Summary
MOAZSClientImpl()
           
 
Method Summary
 void addBinaryDocument(BinaryDocument document)
           
 void addPayLoadBinaryDocument(InputStream binDoc, String fileName, String mimeType)
           
 void addPayLoadDocumentReference(String url, String fileName, String mimeType, byte[] md5Checksum)
           
 void deliver()
           
 String generateAppDeliveryID()
           
 Element getRequest()
           
static void main(String[] args)
           
static DeliveryResponse parseResponse(Element response)
           
 DeliveryResponse sendDeliveryRequest()
           
 DeliveryResponse sendDeliveryRequest(String address)
           
 DeliveryResponse sendDeliveryRequest(String address, Element request)
           
 DeliveryResponse sendDeliveryRequest(String address, InputStream is)
           
 void setKeyIdentifier(String keyID)
           
 void setMetaData(String appDeliveryID, String deliveryQuality, boolean requiresEncryption)
           
 void setMetaData(String appDeliveryID, String deliveryQuality, boolean requiresEncryption, boolean isPrivateDelivery)
           
 void setReceiver(Adressat person)
           
 void setSenderData(String profileID, String keyID)
           
 void setSenderProfileID(String profileID)
           
 void setServer(String url, iaik.x509.X509Certificate certificate)
           
 void setXMLDocument(Element xmlDoc, String xmlProfileID)
           
 void setXMLDocument(Element xmlDoc, String fileName, String mimeType, String resultingMimeType, String signatureXPath, Element signatureStyleSheet, String previewStyleSheetFileName, Element previewStyleSheet)
           
 
Methods inherited from class asit.moa.client.AbstractClient
addCustomHeader, createNewDocument, getSOAPBody, sendRequest, sendRequest, sendRequest, sendRequest, setClientAuthStore, setDefaultAddress, setHostNameVerifierEnabled, setSSLSocketFactory, setSSLTrustStore
 
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
sendRequest, sendRequest, setClientAuthStore, setDefaultAddress, setHostNameVerifierEnabled, setSSLSocketFactory, setSSLTrustStore
 

Field Detail

senderProfileID_

protected String senderProfileID_

senderKeyID_

protected String senderKeyID_

receiver_

protected Adressat receiver_

metaData_

protected Element metaData_

xmlDocument_

protected Element xmlDocument_

payLoadElements_

protected Vector payLoadElements_

doc_

protected Document doc_

server_

protected String server_

x509_

protected iaik.x509.X509Certificate x509_
Constructor Detail

MOAZSClientImpl

public MOAZSClientImpl()
                throws ClientException
Method Detail

setSenderData

public void setSenderData(String profileID,
                          String keyID)
Specified by:
setSenderData in interface MOAZSClient

setReceiver

public void setReceiver(Adressat person)
Specified by:
setReceiver in interface MOAZSClient

setMetaData

public void setMetaData(String appDeliveryID,
                        String deliveryQuality,
                        boolean requiresEncryption)
Specified by:
setMetaData in interface MOAZSClient

setMetaData

public void setMetaData(String appDeliveryID,
                        String deliveryQuality,
                        boolean requiresEncryption,
                        boolean isPrivateDelivery)
Specified by:
setMetaData in interface MOAZSClient

setXMLDocument

public void setXMLDocument(Element xmlDoc,
                           String xmlProfileID)
Specified by:
setXMLDocument in interface MOAZSClient

setXMLDocument

public void setXMLDocument(Element xmlDoc,
                           String fileName,
                           String mimeType,
                           String resultingMimeType,
                           String signatureXPath,
                           Element signatureStyleSheet,
                           String previewStyleSheetFileName,
                           Element previewStyleSheet)
Specified by:
setXMLDocument in interface MOAZSClient

addPayLoadBinaryDocument

public void addPayLoadBinaryDocument(InputStream binDoc,
                                     String fileName,
                                     String mimeType)
                              throws IOException
Specified by:
addPayLoadBinaryDocument in interface DeliveryClient
Throws:
IOException

addPayLoadDocumentReference

public void addPayLoadDocumentReference(String url,
                                        String fileName,
                                        String mimeType,
                                        byte[] md5Checksum)
                                 throws ClientException
Specified by:
addPayLoadDocumentReference in interface MOAZSClient
Throws:
ClientException

sendDeliveryRequest

public DeliveryResponse sendDeliveryRequest()
                                     throws ClientException
Specified by:
sendDeliveryRequest in interface MOAZSClient
Returns:
Throws:
ClientException

sendDeliveryRequest

public DeliveryResponse sendDeliveryRequest(String address)
                                     throws ClientException
Specified by:
sendDeliveryRequest in interface MOAZSClient
Throws:
ClientException

sendDeliveryRequest

public DeliveryResponse sendDeliveryRequest(String address,
                                            Element request)
                                     throws ClientException
Specified by:
sendDeliveryRequest in interface MOAZSClient
Throws:
ClientException

parseResponse

public static DeliveryResponse parseResponse(Element response)
                                      throws ClientException
Throws:
ClientException

getRequest

public Element getRequest()
                   throws ClientException
Specified by:
getRequest in interface Client
Throws:
ClientException

addBinaryDocument

public void addBinaryDocument(BinaryDocument document)

deliver

public void deliver()
             throws DeliveryException
Specified by:
deliver in interface DeliveryClient
Throws:
DeliveryException

generateAppDeliveryID

public String generateAppDeliveryID()
                             throws DeliveryException
Specified by:
generateAppDeliveryID in interface MOAZSClient
Throws:
DeliveryException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

sendDeliveryRequest

public DeliveryResponse sendDeliveryRequest(String address,
                                            InputStream is)
                                     throws ClientException
Specified by:
sendDeliveryRequest in interface MOAZSClient
Throws:
ClientException

setSenderProfileID

public void setSenderProfileID(String profileID)
Specified by:
setSenderProfileID in interface MOAZSClient

setKeyIdentifier

public void setKeyIdentifier(String keyID)
Specified by:
setKeyIdentifier in interface MOAZSClient

setServer

public void setServer(String url,
                      iaik.x509.X509Certificate certificate)
               throws ClientException
Specified by:
setServer in interface MOAZSClient
Throws:
ClientException


Copyright 2007 Institut fuer Angewandte Informationsverarbeitung und Kommunikationstechnologie. All Rights Reserved.