ch.elca.el4j.services.remoting.protocol.jaxws
Class JaxwsContextHandler

java.lang.Object
  extended by ch.elca.el4j.services.remoting.protocol.jaxws.AbstractJaxwsJaxbContextHandler
      extended by ch.elca.el4j.services.remoting.protocol.jaxws.JaxwsContextHandler
All Implemented Interfaces:
Handler<SOAPMessageContext>, SOAPHandler<SOAPMessageContext>

public class JaxwsContextHandler
extends AbstractJaxwsJaxbContextHandler

This class is a JAX-WS Handler that injects the implicit context while sending a SOAP message and extract it while retrieving one.

Author:
Stefan Wismer (SWI)
File-location:
JaxwsContextHandler
Last check-in date:
2010-01-06 16:18:36 +0100 (Mi, 06. Jan 2010) by swisswheel for revision 4077

Field Summary
 
Fields inherited from class ch.elca.el4j.services.remoting.protocol.jaxws.AbstractJaxwsJaxbContextHandler
CONTEXT_ELEMENT_NAME, CONTEXT_NAMESPACE
 
Constructor Summary
JaxwsContextHandler(ImplicitContextPassingRegistry registry, JAXBContext jaxbContext)
          Create a new JAX-WS Handler to modify a soap message.
 
Method Summary
 void close(MessageContext context)
          
 Set getHeaders()
          
protected  org.slf4j.Logger getLogger()
          Get the logger for this class.
 boolean handleFault(SOAPMessageContext context)
          
protected  void handleIncomingMessage(SOAPMessage msg)
          Handles an incoming SOAP message.
 boolean handleMessage(SOAPMessageContext context)
          
protected  void handleOutgoingMessage(SOAPMessage msg)
          Handles an outgoing SOAP message.
 
Methods inherited from class ch.elca.el4j.services.remoting.protocol.jaxws.AbstractJaxwsJaxbContextHandler
getJaxbContext, getMarshaller, getUnmarshaller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxwsContextHandler

public JaxwsContextHandler(ImplicitContextPassingRegistry registry,
                           JAXBContext jaxbContext)
Create a new JAX-WS Handler to modify a soap message.

Parameters:
registry - The registry to take the context from
jaxbContext - The context to serialize the implicit context with
Method Detail

handleMessage

public boolean handleMessage(SOAPMessageContext context)


handleIncomingMessage

protected void handleIncomingMessage(SOAPMessage msg)
Handles an incoming SOAP message. Adds the implicit context to the SOAP header.

Parameters:
msg - the SOAP message

handleOutgoingMessage

protected void handleOutgoingMessage(SOAPMessage msg)
Handles an outgoing SOAP message. Extracts the implicit context from the SOAP header.

Parameters:
msg - the SOAP message

handleFault

public boolean handleFault(SOAPMessageContext context)


getHeaders

public Set getHeaders()


close

public void close(MessageContext context)


getLogger

protected org.slf4j.Logger getLogger()
Get the logger for this class.

Specified by:
getLogger in class AbstractJaxwsJaxbContextHandler
Returns:
The Logger


Copyright © 2005-2011 ELCA. All Rights Reserved.