Class AbstractFilterTubeImpl
- Direct Known Subclasses:
AbstractSchemaValidationTube,ClientMUTube,ClientSecurityTube,DumpTube,HandlerTube,LoggingDumpTube,McClientTube,McServerTube,MetadataServerPipe,SecurityTubeBase,ServerMUTube,ServerSecurityTube,ServerTube,WsaClientTube,WsaServerTube,WSATClientTube,WSATServerTube,XWSSClientTube,XWSSServerTube
Tube.
In this prototype, this is not that convenient, but in the real production
code where we have preDestroy() and clone(), this
is fairly handy.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFilterTubeImpl(AbstractFilterTubeImpl that, TubeCloner cloner) protectedAbstractFilterTubeImpl(Tube next) -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked before the last copy of the pipeline is about to be discarded, to giveTubes a chance to clean up any resources.Default no-op implementation.processRequest(Packet request) Default no-op implementation.processResponse(Packet response) Default no-op implementation.Methods inherited from class com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl
copy, copy, doInvoke, doInvokeAndForget, doReturnWith, doSuspend, doSuspend, doSuspend, doSuspend, doThrow, doThrow, process
-
Field Details
-
next
-
-
Constructor Details
-
AbstractFilterTubeImpl
-
AbstractFilterTubeImpl
-
-
Method Details
-
processRequest
Default no-op implementation.- Parameters:
request- The packet that represents a request message. If the packet has a non-null message, it must be a valid unconsumedMessage. 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)
- Returns:
- A
NextActionobject that represents the next action to be taken by the JAX-WS runtime.
-
processResponse
Default no-op implementation.- Parameters:
response- If the packet has a non-null message, it must be a valid unconsumedMessage. This message represents a response to the request message passed toTube.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
- Returns:
- A
NextActionobject that represents the next action to be taken by the JAX-WS runtime.
-
processException
Default no-op implementation.- Returns:
- A
NextActionobject that represents the next action to be taken by the JAX-WS runtime.
-
preDestroy
public void preDestroy()Description copied from interface:TubeInvoked before the last copy of the pipeline is about to be discarded, to giveTubes a chance to clean up any resources.This can be used to invoke
PreDestroylifecycle methods on user handler. The invocation of it is optional on the client side, but mandatory on the server side.When multiple copies of pipelines are created, this method is called only on one of them.
-