Class ClientSecurityPipe
- All Implemented Interfaces:
Pipe
,SecureConversationInitiator
-
Field Summary
Fields inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterPipeImpl
next
-
Constructor Summary
ModifierConstructorDescriptionprotected
ClientSecurityPipe
(ClientSecurityPipe that, PipeCloner cloner) ClientSecurityPipe
(Map<Object, Object> props, Pipe next) -
Method Summary
Modifier and TypeMethodDescriptionfinal Pipe
copy
(PipeCloner cloner) Creates an identical clone of thisPipe
.void
Invoked before the last copy of the pipeline is about to be discarded, to givePipe
s a chance to clean up any resources.javax.xml.bind.JAXBElement
startSecureConversation
(Packet packet)
-
Field Details
-
helper
-
log
-
-
Constructor Details
-
ClientSecurityPipe
-
ClientSecurityPipe
-
-
Method Details
-
preDestroy
public void preDestroy()Description copied from interface:Pipe
Invoked before the last copy of the pipeline is about to be discarded, to givePipe
s a chance to clean up any resources.This can be used to invoke
PreDestroy
lifecycle 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.
- Specified by:
preDestroy
in interfacePipe
- Overrides:
preDestroy
in classAbstractFilterPipeImpl
-
copy
Description copied from interface:Pipe
Creates an identical clone of thisPipe
.This method creates an identical pipeline that can be used concurrently with this pipeline. When the caller of a pipeline is multi-threaded and need concurrent use of the same pipeline, it can do so by creating copies through this method.
Implementation Note
It is the implementation's responsibility to call
PipeCloner.add(Pipe,Pipe)
to register the copied pipe with the original. This is required before you start copying the otherPipe
references you have, or else there's a risk of infinite recursion.For most
Pipe
implementations that delegate to anotherPipe
, this method requires that you also copy thePipe
that you delegate to.For limited number of
Pipe
s that do not maintain any thread unsafe resource, it is allowed to simply returnthis
from this method (notice that even if you are stateless, if you got a delegatingPipe
and that one isn't stateless, you still have to copy yourself.)Note that this method might be invoked by one thread while another thread is executing the
Pipe.process(Packet)
method. See theCodec.copy()
for more discussion about this.- Specified by:
copy
in interfacePipe
- Parameters:
cloner
- Use this object (in particular itsPipeCloner.copy(Pipe)
method to clone other pipe references you have in your pipe. SeePipeCloner
for more discussion about why.- Returns:
- always non-null
Pipe
.
-
getPipeHelper
-
process
Description copied from interface:Pipe
- Specified by:
process
in interfacePipe
- Overrides:
process
in classAbstractFilterPipeImpl
- Parameters:
request
- The packet that represents a request message. Must not be null. 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:
- The packet that represents a response message. Must not be null.
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 as a parameter.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.
-
startSecureConversation
public javax.xml.bind.JAXBElement startSecureConversation(Packet packet) throws WSSecureConversationException - Specified by:
startSecureConversation
in interfaceSecureConversationInitiator
- Throws:
WSSecureConversationException
-