org.jcoderz.commons.connector.http.transport
Class HttpRequestResponseHeader

java.lang.Object
  extended by org.jcoderz.commons.connector.http.transport.HttpRequestResponseHeader
All Implemented Interfaces:
Serializable

public class HttpRequestResponseHeader
extends Object
implements Serializable

Container for the http header parameter set for request and validate for response.

See Also:
Serialized Form

Constructor Summary
HttpRequestResponseHeader()
           
 
Method Summary
 void addRequestHeader(String key, String value)
          Adds a key value pair of an http header used for request.
 void addResponseHeader(String key, String value)
          Adds a key value pair of an http header expected in response.
protected  Map getRequestHeader()
           
protected  Map getResponseHeader()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpRequestResponseHeader

public HttpRequestResponseHeader()
Method Detail

addRequestHeader

public void addRequestHeader(String key,
                             String value)
Adds a key value pair of an http header used for request. If the key already exists the value will not be overwritten.

Parameters:
key - the name of the http header
value - the value of the http header

addResponseHeader

public void addResponseHeader(String key,
                              String value)
Adds a key value pair of an http header expected in response. If the key already exists the value will not be overwritten.

Parameters:
key - the name of the http header
value - the value of the http header

getRequestHeader

protected Map getRequestHeader()

getResponseHeader

protected Map getResponseHeader()

toString

public String toString()

Overrides:
toString in class Object


Copyright 2007 The jCoderZ Project.