|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.api.pipe.helper.AbstractTubeImpl
com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
com.sun.xml.ws.handler.HandlerTube
public abstract class HandlerTube
Nested Class Summary | |
---|---|
(package private) static class |
HandlerTube.HandlerTubeExchange
This class is used primarily to exchange information or status between LogicalHandlerTube and SOAPHandlerTube |
Field Summary | |
---|---|
(package private) HandlerTube |
cousinTube
handle hold reference to other Tube for inter-tube communication |
protected List<javax.xml.ws.handler.Handler> |
handlers
|
(package private) Packet |
packet
|
protected WSDLPort |
port
|
(package private) HandlerProcessor |
processor
|
(package private) boolean |
remedyActionTaken
|
(package private) boolean |
requestProcessingSucessful
|
Fields inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl |
---|
next |
Constructor Summary | |
---|---|
protected |
HandlerTube(HandlerTube that,
TubeCloner cloner)
Copy constructor for Tube.copy(TubeCloner) . |
|
HandlerTube(Tube next,
HandlerTube cousinTube)
|
|
HandlerTube(Tube next,
WSDLPort port)
|
Method Summary | |
---|---|
(package private) abstract boolean |
callHandlersOnRequest(MessageUpdatableContext context,
boolean oneWay)
|
(package private) abstract void |
callHandlersOnResponse(MessageUpdatableContext context,
boolean handleFault)
|
void |
close(javax.xml.ws.handler.MessageContext msgContext)
Calls close on previously invoked handlers. |
protected void |
closeClientsideHandlers(javax.xml.ws.handler.MessageContext msgContext)
Called by close(MessageContext mc) in a Client Handlertube |
(package private) abstract void |
closeHandlers(javax.xml.ws.handler.MessageContext mc)
On Client, Override by calling #closeClientHandlers(MessageContext mc) On Server, Override by calling #closeServerHandlers(MessageContext mc) The difference is the order in which they are closed. |
protected void |
closeServersideHandlers(javax.xml.ws.handler.MessageContext msgContext)
Called by close(MessageContext mc) in a Server Handlertube |
(package private) abstract MessageUpdatableContext |
getContext(Packet p)
|
protected void |
initiateClosing(javax.xml.ws.handler.MessageContext mc)
Must be overridden by HandlerTube that drives other handler tubes for processing a message. |
boolean |
isHandlerChainEmpty()
|
NextAction |
processException(Throwable t)
Default no-op implementation. |
NextAction |
processRequest(Packet request)
Default no-op implementation. |
NextAction |
processResponse(Packet response)
Default no-op implementation. |
(package private) void |
setHandleFalse()
|
(package private) void |
setHandleFault()
|
(package private) abstract void |
setUpProcessor()
|
Methods inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl |
---|
preDestroy |
Methods inherited from class com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl |
---|
copy, copy, doInvoke, doInvokeAndForget, doReturnWith, doSuspend, doThrow, process |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
HandlerTube cousinTube
protected List<javax.xml.ws.handler.Handler> handlers
HandlerProcessor processor
boolean remedyActionTaken
@Nullable protected final WSDLPort port
boolean requestProcessingSucessful
Packet packet
Constructor Detail |
---|
public HandlerTube(Tube next, WSDLPort port)
public HandlerTube(Tube next, HandlerTube cousinTube)
protected HandlerTube(HandlerTube that, TubeCloner cloner)
Tube.copy(TubeCloner)
.
Method Detail |
---|
public NextAction processRequest(Packet request)
AbstractFilterTubeImpl
processRequest
in interface Tube
processRequest
in class AbstractFilterTubeImpl
request
- The packet that represents a request message.
If the packet has a non-null message, it must be a valid
unconsumed Message
. This message represents the
SOAP message to be sent as a request.
The packet is also allowed to carry no message, which indicates that this is an output-only request. (that's called "solicit", right? - KK)
NextAction
object that represents the next action
to be taken by the JAX-WS runtime.public NextAction processResponse(Packet response)
AbstractFilterTubeImpl
processResponse
in interface Tube
processResponse
in class AbstractFilterTubeImpl
response
- If the packet has a non-null message, it must be
a valid unconsumed Message
. This message represents
a response to the request message passed to
Tube.processRequest(Packet)
earlier.
The packet is also allowed to carry no message, which indicates that there was no response. This is used for things like one-way message and/or one-way transports. TODO: exception handling semantics need more discussion
NextAction
object that represents the next action
to be taken by the JAX-WS runtime.public NextAction processException(Throwable t)
AbstractFilterTubeImpl
processException
in interface Tube
processException
in class AbstractFilterTubeImpl
NextAction
object that represents the next action
to be taken by the JAX-WS runtime.protected void initiateClosing(javax.xml.ws.handler.MessageContext mc)
public final void close(javax.xml.ws.handler.MessageContext msgContext)
abstract void closeHandlers(javax.xml.ws.handler.MessageContext mc)
mc
- protected void closeClientsideHandlers(javax.xml.ws.handler.MessageContext msgContext)
protected void closeServersideHandlers(javax.xml.ws.handler.MessageContext msgContext)
abstract void callHandlersOnResponse(MessageUpdatableContext context, boolean handleFault)
abstract boolean callHandlersOnRequest(MessageUpdatableContext context, boolean oneWay)
abstract void setUpProcessor()
public final boolean isHandlerChainEmpty()
abstract MessageUpdatableContext getContext(Packet p)
final void setHandleFault()
final void setHandleFalse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |