com.bea.wli.sb.transports
Class RequestHeaders

java.lang.Object
  extended by com.bea.wli.sb.transports.RequestHeaders
Direct Known Subclasses:
DefaultRequestHeaders

public abstract class RequestHeaders
extends Object

Represents a union of standard and user-defined headers in a given inbound or outbound request message. The set of standard headers is specific to each transport provider. This is an abstract class to be extended by each transport provider to implement their version of request headers.


Method Summary
 boolean containsHeader(String name)
           
 void deleteHeader(String name)
          removes the header with a given name
 Object getHeader(String name)
           
 Iterator<String> getHeaderNames()
           
 void setHeader(String name, Object value)
          Sets the header with the specified name to the given value
abstract  RequestHeadersXML toXML()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHeaderNames

public Iterator<String> getHeaderNames()
Returns:
an iterator for all the header names

containsHeader

public boolean containsHeader(String name)
Parameters:
name - header name
Returns:
whether or not a header with a given name exists

getHeader

public Object getHeader(String name)
Parameters:
name - header name
Returns:
the value of the header with a given name or null if it does not exist

setHeader

public void setHeader(String name,
                      Object value)
Sets the header with the specified name to the given value

Parameters:
name - header name
value - value to set the specified header to

deleteHeader

public void deleteHeader(String name)
removes the header with a given name

Parameters:
name - header name

toXML

public abstract RequestHeadersXML toXML()
                                 throws TransportException
Returns:
XMLBean representation of these request headers
Throws:
TransportException