|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.AbstractXFireComponent
org.codehaus.xfire.handler.AbstractHandler
org.codehaus.xfire.soap.SoapHandler
public class SoapHandler
Processes SOAP invocations. The process is as follows:
writeResponse
on the
EndpointHandler
Field Summary |
---|
Fields inherited from class org.codehaus.xfire.handler.AbstractHandler |
---|
STAX_WRITER_KEY |
Fields inherited from interface org.codehaus.xfire.handler.Handler |
---|
ROLE |
Constructor Summary | |
---|---|
SoapHandler(EndpointHandler bodyHandler)
|
Method Summary | |
---|---|
protected void |
assertUnderstandsHeader(MessageContext context,
javax.xml.namespace.QName name)
Assert that a service understands a particular header. |
protected void |
createResponseHeader(MessageContext context)
|
void |
handleFault(XFireFault fault,
MessageContext context)
Handles faults that occur in this handler. |
void |
invoke(MessageContext context)
Invoke the Header and Body Handlers for the SOAP message. |
protected void |
invokePipeline(HandlerPipeline pipeline,
java.util.Stack handlerStack,
MessageContext context)
|
protected void |
invokeRequestPipeline(java.util.Stack handlerStack,
MessageContext context)
|
protected void |
invokeResponsePipeline(java.util.Stack handlerStack,
MessageContext context)
|
protected void |
readHeaders(MessageContext context)
Read in the headers as a YOM Element and create a response Header. |
protected void |
validateHeaders(MessageContext context)
Validates that the mustUnderstand and role headers are processed correctly. |
protected void |
writeHeaders(MessageContext context,
javax.xml.stream.XMLStreamWriter writer)
|
protected void |
writeResponse(MessageContext context,
java.lang.String encoding,
java.util.Stack handlerStack)
Create a response envelope and write the response message. |
Methods inherited from class org.codehaus.xfire.handler.AbstractHandler |
---|
getRoles, getUnderstoodHeaders, getXMLStreamWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SoapHandler(EndpointHandler bodyHandler)
Method Detail |
---|
public void invoke(MessageContext context) throws java.lang.Exception
java.lang.Exception
protected void writeResponse(MessageContext context, java.lang.String encoding, java.util.Stack handlerStack) throws java.lang.Exception
context
- encoding
- handlerStack
-
java.lang.Exception
public void handleFault(XFireFault fault, MessageContext context)
Handler
handleFault
in interface Handler
handleFault
in class AbstractHandler
org.codehaus.xfire.handler.Handler#handleFault(java.lang.Exception, org.codehaus.xfire.MessageContext)
protected void invokeRequestPipeline(java.util.Stack handlerStack, MessageContext context) throws java.lang.Exception
java.lang.Exception
protected void invokeResponsePipeline(java.util.Stack handlerStack, MessageContext context) throws java.lang.Exception
java.lang.Exception
protected void invokePipeline(HandlerPipeline pipeline, java.util.Stack handlerStack, MessageContext context) throws java.lang.Exception
java.lang.Exception
protected void readHeaders(MessageContext context) throws javax.xml.stream.XMLStreamException
context
-
javax.xml.stream.XMLStreamException
protected void createResponseHeader(MessageContext context)
protected void validateHeaders(MessageContext context) throws XFireFault
context
-
XFireFault
protected void assertUnderstandsHeader(MessageContext context, javax.xml.namespace.QName name) throws XFireFault
context
- name
-
XFireFault
protected void writeHeaders(MessageContext context, javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |