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

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

public abstract class AbstractJaxwsJaxbContextHandler
extends Object
implements SOAPHandler<SOAPMessageContext>

Baseclass for the JAXB context handlers, implementing some common functionalities.

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

Field Summary
protected static String CONTEXT_ELEMENT_NAME
          Name of the element in the header containing the context.
protected static org.jdom.Namespace CONTEXT_NAMESPACE
          Name of the namespace of the element containing the context.
 
Constructor Summary
AbstractJaxwsJaxbContextHandler(JAXBContext jaxbContext)
          Creates a new hander with a context.
 
Method Summary
protected  JAXBContext getJaxbContext()
          Get a JaxbContext.
protected abstract  org.slf4j.Logger getLogger()
          Get the logger for this class.
protected  Marshaller getMarshaller()
          Convenience method to get a marshaller.
protected  Unmarshaller getUnmarshaller()
          Convenience method to get an unmarshaller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.ws.handler.soap.SOAPHandler
getHeaders
 
Methods inherited from interface javax.xml.ws.handler.Handler
close, handleFault, handleMessage
 

Field Detail

CONTEXT_ELEMENT_NAME

protected static final String CONTEXT_ELEMENT_NAME
Name of the element in the header containing the context.

See Also:
Constant Field Values

CONTEXT_NAMESPACE

protected static final org.jdom.Namespace CONTEXT_NAMESPACE
Name of the namespace of the element containing the context.

Constructor Detail

AbstractJaxwsJaxbContextHandler

public AbstractJaxwsJaxbContextHandler(JAXBContext jaxbContext)
Creates a new hander with a context.

Parameters:
jaxbContext - The JAXBContext to serialize the context
Method Detail

getJaxbContext

protected JAXBContext getJaxbContext()
Get a JaxbContext.

Returns:
A JaxbContext

getMarshaller

protected Marshaller getMarshaller()
Convenience method to get a marshaller.

Returns:
A marshaller

getUnmarshaller

protected Unmarshaller getUnmarshaller()
Convenience method to get an unmarshaller.

Returns:
A marshaller

getLogger

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

Returns:
The Logger


Copyright © 2005-2011 ELCA. All Rights Reserved.