at.knowcenter.wag.egov.egiz.sig.connectors.bku
Class BKUPostConnection

java.lang.Object
  extended byat.knowcenter.wag.egov.egiz.sig.connectors.bku.BKUPostConnection

public final class BKUPostConnection
extends Object

Helper class with methods that use the Apache Https Client to send HTTP requests.

Author:
wprinz

Field Summary
static String BKU_SERVER_HEADER_KEY
          The response Properties key that identifies the BKU Server header.
static String BKU_SIGNATURE_LAYOUT_HEADER_KEY
          The response property that declares the signature layout being applied.
static String BKU_USER_AGENT_HEADER_KEY
          The response Properties key that identifies the BKU User-Agent header.
static String RESPONSE_STRING_KEY
          The response Properties key that identifies the response string.
 
Constructor Summary
BKUPostConnection()
           
 
Method Summary
static Properties doPostRequestMultipart(String url, String request, SignatureData data)
          Sends a multipart/form-data HTTP Post request to the given URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESPONSE_STRING_KEY

public static final String RESPONSE_STRING_KEY
The response Properties key that identifies the response string.

See Also:
Constant Field Values

BKU_SERVER_HEADER_KEY

public static final String BKU_SERVER_HEADER_KEY
The response Properties key that identifies the BKU Server header.

See Also:
Constant Field Values

BKU_SIGNATURE_LAYOUT_HEADER_KEY

public static final String BKU_SIGNATURE_LAYOUT_HEADER_KEY
The response property that declares the signature layout being applied.

See Also:
Constant Field Values

BKU_USER_AGENT_HEADER_KEY

public static final String BKU_USER_AGENT_HEADER_KEY
The response Properties key that identifies the BKU User-Agent header.

See Also:
Constant Field Values
Constructor Detail

BKUPostConnection

public BKUPostConnection()
Method Detail

doPostRequestMultipart

public static Properties doPostRequestMultipart(String url,
                                                String request,
                                                SignatureData data)
                                         throws org.apache.commons.httpclient.HttpException,
                                                IOException
Sends a multipart/form-data HTTP Post request to the given URL.

Parameters:
url - The url the request is directed to.
request - The request XML, which will be the UTF-8 text/xml first part of the message.
data - The binary second part of the message.
Returns:
Returns the response properties which, among others, contain the response String.
Throws:
org.apache.commons.httpclient.HttpException
IOException


Copyright © 2006-2010. All Rights Reserved.