org.codehaus.xfire.handler
Class SoapHandler
java.lang.Object
org.codehaus.xfire.AbstractXFireComponent
org.codehaus.xfire.handler.AbstractHandler
org.codehaus.xfire.handler.SoapHandler
- All Implemented Interfaces:
- Handler
public class SoapHandler
- extends AbstractHandler
Processes SOAP invocations. The process is as follows:
- Read in Headers to a DOM tree
- Check "role" and MustUnderstand attributes for validity
- Invoke the request HandlerPipeline
- Invoke the service EndpointHandler
- Invoke the response HandlerPipeline
- Invoke
writeResponse
on the EndpointHandler
TODO: outline what happens when a fault occurrs.
- Since:
- Oct 28, 2004
- Author:
- Dan Diephouse
Fields inherited from interface org.codehaus.xfire.handler.Handler |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REQUEST_HEADER_KEY
public static final java.lang.String REQUEST_HEADER_KEY
- See Also:
- Constant Field Values
RESPONSE_HEADER_KEY
public static final java.lang.String RESPONSE_HEADER_KEY
- See Also:
- Constant Field Values
SoapHandler
public SoapHandler(EndpointHandler bodyHandler)
invoke
public void invoke(MessageContext context)
throws java.lang.Exception
- Invoke the Header and Body Handlers for the SOAP message.
- Throws:
java.lang.Exception
handleFault
public void handleFault(XFireFault fault,
MessageContext context)
- Description copied from interface:
Handler
- Handles faults that occur in this handler. This is not responsible for
actually writing the fault response message.
- Specified by:
handleFault
in interface Handler
- Overrides:
handleFault
in class AbstractHandler
- See Also:
org.codehaus.xfire.handler.Handler#handleFault(java.lang.Exception, org.codehaus.xfire.MessageContext)
invokeRequestPipeline
protected void invokeRequestPipeline(java.util.Stack handlerStack,
MessageContext context)
throws java.lang.Exception
- Throws:
java.lang.Exception
invokeResponsePipeline
protected void invokeResponsePipeline(java.util.Stack handlerStack,
MessageContext context)
throws java.lang.Exception
- Throws:
java.lang.Exception
invokePipeline
protected void invokePipeline(HandlerPipeline pipeline,
java.util.Stack handlerStack,
MessageContext context)
throws java.lang.Exception
- Throws:
java.lang.Exception
readHeaders
protected void readHeaders(MessageContext context)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
writeHeaders
protected void writeHeaders(MessageContext context,
javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
validateHeaders
protected void validateHeaders(MessageContext context)
Copyright © 2004-2005 Codehaus. All Rights Reserved.