org.apache.beehive.controls.system.webservice.jaxrpc
Class HeaderHandler

Object
  extended by GenericHandler
      extended by HeaderHandler
All Implemented Interfaces:
Handler

public class HeaderHandler
extends GenericHandler


Constructor Summary
HeaderHandler()
           
 
Method Summary
 QName[] getHeaders()
           
 boolean handleRequest(MessageContext mc)
          Add the header values from the HandlerInfo.HandlerConfig Map to the outgoing message.
 boolean handleResponse(MessageContext mc)
          Build a list of SOAPHeaders found in the response.
 void init(HandlerInfo handlerInfo)
           
 
Methods inherited from class GenericHandler
destroy, handleFault
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderHandler

public HeaderHandler()
Method Detail

handleRequest

public boolean handleRequest(MessageContext mc)
Add the header values from the HandlerInfo.HandlerConfig Map to the outgoing message.

Specified by:
handleRequest in interface Handler
Overrides:
handleRequest in class GenericHandler
Parameters:
mc - MessageContext.
Returns:
true if handler chain processing should continue.

handleResponse

public boolean handleResponse(MessageContext mc)
Build a list of SOAPHeaders found in the response.

Specified by:
handleResponse in interface Handler
Overrides:
handleResponse in class GenericHandler
Parameters:
mc - MessageContext.
Returns:
true if the next handler in the chain should be invoked.

init

public void init(HandlerInfo handlerInfo)
Specified by:
init in interface Handler
Overrides:
init in class GenericHandler

getHeaders

public QName[] getHeaders()
Specified by:
getHeaders in interface Handler
Specified by:
getHeaders in class GenericHandler
Returns:
array of headers