Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.5.0)

E15033-03


com.bea.wli.sb.transports
Class ResponseHeaders

java.lang.Object
  extended by com.bea.wli.sb.transports.ResponseHeaders

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DefaultResponseHeaders

public abstract class ResponseHeaders
extends java.lang.Object
implements java.io.Serializable

Represents a union of standard and user-defined headers in a given inbound or outbound response 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 response headers.

See Also:
Serialized Form

Method Summary
 boolean containsHeader(java.lang.String name)
           
 void deleteHeader(java.lang.String name)
          removes the header with a given name
 java.lang.Object getHeader(java.lang.String name)
           
 java.util.Iterator<java.lang.String> getHeaderNames()
           
 void setHeader(java.lang.String name, java.lang.Object value)
          Sets the header with the specified name to the given value
 void setXML(ResponseHeadersXML xml)
           
abstract  ResponseHeadersXML toXML()
           

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getHeaderNames

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

containsHeader

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

getHeader

public java.lang.Object getHeader(java.lang.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(java.lang.String name,
                      java.lang.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(java.lang.String name)
removes the header with a given name
Parameters:
name - header name

toXML

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

setXML

public void setXML(ResponseHeadersXML xml)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.5.0)

E15033-03


Copyright © 2008, 2011, Oracle. All rights reserved.