Package com.sun.xml.rpc.server
Class StreamingHandler
java.lang.Object
com.sun.xml.rpc.server.StreamingHandler
- All Implemented Interfaces:
Handler,Handler,StreamingHandler
- Direct Known Subclasses:
TieBase
A base class for streaming-oriented handlers (such as ties).
- Author:
- JAX-RPC Development Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected booleanThis method has a number of different exit points.protected voidprotected StringgetActor()protected Stringprotected HandlerChainImplprotected StringgetMethodForOpcode(int opcode) protected String[]intintgetOpcodeForRequestMessage(javax.xml.soap.SOAPMessage request) intprotected StringQName[]protected XMLReaderFactoryReturn an FI reader if request is FIprotected XMLWriterFactoryReturn an FI writer if request is FI or FI is accept by clientvoidhandle(SOAPMessageContext spiContext) protected voidhandleEmptyBody(XMLReader reader, SOAPDeserializationContext deserializationContext, StreamingHandlerState state) protected voidpeekFirstBodyElement(XMLReader reader, SOAPDeserializationContext deserializationContext, StreamingHandlerState state) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected booleanprotected voidprotected voidprotected booleanprocessHeaderElement(XMLReader reader, SOAPDeserializationContext deserializationContext, StreamingHandlerState state) protected voidprocessHeaders(XMLReader reader, SOAPDeserializationContext deserializationContext, StreamingHandlerState state) protected voidprotected voidreadFirstBodyElement(XMLReader reader, SOAPDeserializationContext deserializationContext, StreamingHandlerState state) protected booleanreadHeaderElement(SOAPHeaderBlockInfo headerInfo, XMLReader reader, SOAPDeserializationContext deserializationContext, StreamingHandlerState state) protected voidreportFault(SOAPFaultInfo fault, StreamingHandlerState state) Note that a call toStreamingHandlerState.resetResponse()creates a new SAAJ SOAPMessage for the response with the FI flag based on the SOAPMessageContext state.booleanprotected void
-
Constructor Details
-
StreamingHandler
protected StreamingHandler()
-
-
Method Details
-
getActor
-
handle
-
processHeaders
protected void processHeaders(XMLReader reader, SOAPDeserializationContext deserializationContext, StreamingHandlerState state) throws Exception - Throws:
Exception
-
processHeaderElement
protected boolean processHeaderElement(XMLReader reader, SOAPDeserializationContext deserializationContext, StreamingHandlerState state) throws Exception - Throws:
Exception
-
readHeaderElement
protected boolean readHeaderElement(SOAPHeaderBlockInfo headerInfo, XMLReader reader, SOAPDeserializationContext deserializationContext, StreamingHandlerState state) throws Exception - Throws:
Exception
-
handleEmptyBody
protected void handleEmptyBody(XMLReader reader, SOAPDeserializationContext deserializationContext, StreamingHandlerState state) throws Exception - Throws:
Exception
-
peekFirstBodyElement
protected void peekFirstBodyElement(XMLReader reader, SOAPDeserializationContext deserializationContext, StreamingHandlerState state) throws Exception - Throws:
Exception
-
readFirstBodyElement
protected void readFirstBodyElement(XMLReader reader, SOAPDeserializationContext deserializationContext, StreamingHandlerState state) throws Exception - Throws:
Exception
-
getOpcodeForRequestMessage
public int getOpcodeForRequestMessage(javax.xml.soap.SOAPMessage request) - Specified by:
getOpcodeForRequestMessagein interfaceStreamingHandler
-
usesSOAPActionForDispatching
public boolean usesSOAPActionForDispatching() -
getOpcodeForFirstBodyElementName
-
getOpcodeForSOAPAction
-
getMethodForOpcode
- Specified by:
getMethodForOpcodein interfaceStreamingHandler- Throws:
ClassNotFoundExceptionNoSuchMethodException
-
getNamespaceDeclarations
-
getUnderstoodHeaders
-
getDefaultEnvelopeEncodingStyle
-
getImplicitEnvelopeEncodingStyle
-
getPreferredCharacterEncoding
-
writeResponse
- Throws:
Exception
-
preHandlingHook
- Throws:
Exception
-
postHandlingHook
- Throws:
Exception
-
preEnvelopeReadingHook
- Throws:
Exception
-
preHeaderReadingHook
- Throws:
Exception
-
postHeaderReadingHook
- Throws:
Exception
-
preBodyReadingHook
- Throws:
Exception
-
postBodyReadingHook
- Throws:
Exception
-
postEnvelopeReadingHook
- Throws:
Exception
-
processingHook
- Throws:
Exception
-
preResponseWritingHook
- Throws:
Exception
-
postResponseWritingHook
- Throws:
Exception
-
callFaultHandlers
- Throws:
Exception
-
callRequestHandlers
This method has a number of different exit points. For all of them, except whentrueis returned, FI content negotiation must be carried out.- Throws:
Exception
-
callResponseHandlers
- Throws:
Exception
-
getHandlerChain
-
getXMLReaderFactory
Return an FI reader if request is FI -
getXMLWriterFactory
Return an FI writer if request is FI or FI is accept by client -
reportFault
Note that a call toStreamingHandlerState.resetResponse()creates a new SAAJ SOAPMessage for the response with the FI flag based on the SOAPMessageContext state. This is needed for content negotiation.
-