Class WSATServerTube
- java.lang.Object
-
- com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl
-
- com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
-
- com.sun.xml.ws.tx.at.tube.WSATServerTube
-
- All Implemented Interfaces:
Pipe,Tube,WSATConstants
public class WSATServerTube extends AbstractFilterTubeImpl implements WSATConstants
Typical inbound message:<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://tem puri.org/IService/GetData</a:Action><a:MessageID>urn:uuid:353ec55b-3e04-4e13-9471-9652858f7680</a:MessageID><a:ReplyTo><a:Address>http://www.w3.org/2005/08/addr essing/anonymous</a:Address></a:ReplyTo> <CoordinationContext s:mustUnderstand="1" xmlns="http://schemas.xmlsoap.org/ws/2004/10/wscoor" xmlns:mstx="http://schema s.microsoft.com/ws/2006/02/transactions"><wscoor:Identifier xmlns:wscoor="http://schemas.xmlsoap.org/ws/2004/10/wscoor">urn:uuid:79c06523-2392-45d7-9b66-8cc06d0 07d2d</wscoor:Identifier><Expires>599552</Expires><CoordinationType>http://schemas.xmlsoap.org/ws/2004/10/wsat</CoordinationType> <RegistrationService><Address x mlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">https://pparkins-us:453/WsatService/Registration/Coordinator/</Address> <ReferenceParameters xmlns="http: //schemas.xmlsoap.org/ws/2004/08/addressing"><mstx:RegisterInfo><mstx:LocalTransactionId>79c06523-2392-45d7-9b66-8cc06d007d2d</mstx:LocalTransactionId></mstx:Re gisterInfo></ReferenceParameters> </RegistrationService> <mstx:IsolationLevel>0</mstx:IsolationLevel><mstx:LocalTransactionId>79c06523-2392-45d7-9b66-8cc06d007d2d </mstx:LocalTransactionId><PropagationToken xmlns="http://schemas.microsoft.com/ws/2006/02/tx/oletx">AQAAAAMAAAAjZcB5kiPXRZtmjMBtAH0tAAAQAAAAAACIAAAAAMToedzE6Hk 0W6xnBOupAC/M+Xk0W6xnUOypANwmcAFYCxcAlOupAGZjYThlYTc3LTYwYjQtNGEwNS1hODI0LWUxM2NjYjQ3MzVjYQABAAALAAAAZM1kzSEAAABQUEFSS0lOUy1VUwAYAAAAUABQAEEAUgBLAEkATgBTAC0AVQB TAAAAAQAAAAEAAAAeAAAAdGlwOi8vcHBhcmtpbnMtdXMubG9jYWxkb21haW4vAAA=</PropagationToken> </CoordinationContext> <a:To s:mustUnderstand="1">http://localhost:7001/Hello TXWeb/DataService</a:To></s:Header><s:Body><GetData xmlns="http://tempuri.org/"><value>1</value></GetData></s:Body></s:Envelope>--------------------
-
-
Field Summary
-
Fields inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
next
-
Fields inherited from interface com.sun.xml.ws.tx.at.WSATConstants
ABORTED, ACTION, ADDRESS, BRANCHQUAL, BRANCHQUAL_QNAME, COMMIT, COMMITTED, COORDINATION_CONTEXT, COORDINATION_TYPE, COORDINATOR_PROTOCOL_SERVICE, CURRENT_WSCOOR, DEBUG_WSAT, DURABLE_2PC, EXPIRES, FAULT_TO, FROM, HTTP_SCHEMAS_XMLSOAP_ORG_WS_2004_10_WSAT, HTTP_SCHEMAS_XMLSOAP_ORG_WS_2004_10_WSAT_DURABLE_2PC, HTTP_SCHEMAS_XMLSOAP_ORG_WS_2004_10_WSAT_VOLATILE_2PC, IDENTIFIER, MESSAGE_ID, MUST_UNDERSTAND, PARTICIPANT_PROTOCOL_SERVICE, PREPARE, PREPARED, PROTOCOL_IDENTIFIER, READONLY, REFERENCE_PARAMETERS, REGISTER, REGISTER_RESPONSE, REGISTRATION_SERVICE, REPLAY, REPLY_TO, ROLLBACK, ROUTING, ROUTING_QNAME, SOAP_ENVELOPE, TO, TXID, TXID_QNAME, TXPROP_WSAT_FOREIGN_RECOVERY_CONTEXT, VOLATILE_2PC, WLA_WSAT_NS_URI, WSA, WSADDRESSING_NS_URI, WSAT, WSAT_CONTEXT_ROOT, WSAT_COORDINATORPORTTYPEPORT, WSAT_PARTICIPANTPORTTYPEPORT, WSAT_REGISTRATIONCOORDINATORPORTTYPEPORT, WSAT_REGISTRATIONREQUESTERPORTTYPEPORT, WSAT_TRANSACTION, WSAT_TRANSACTION_XID, WSAT_WSAT, WSAT10_NS_URI, WSAT11_COORDINATORPORTTYPEPORT, WSAT11_DURABLE_2PC, WSAT11_NS_URI, WSAT11_PARTICIPANTPORTTYPEPORT, WSAT11_REGISTRATIONCOORDINATORPORTTYPEPORT, WSAT11_REGISTRATIONREQUESTERPORTTYPEPORT, WSAT11_VOLATILE_2PC, WSCOOR, WSCOOR_CONTEXT_QNAME, WSCOOR_REGISTER_QNAME, WSCOOR10_NS_URI, WSCOOR11_CONTEXT_QNAME, WSCOOR11_NS_URI, WSCOOR11_REGISTER_QNAME
-
-
Constructor Summary
Constructors Constructor Description WSATServerTube(Tube next, ServerTubelineAssemblyContext context, TransactionalFeature feature)WSATServerTube(WSATServerTube that, TubeCloner cloner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractTubeImplcopy(TubeCloner cloner)Creates an identical clone of thisTube.voidpreDestroy()Invoked before the last copy of the pipeline is about to be discarded, to giveTubes a chance to clean up any resources.NextActionprocessException(Throwable t)Default no-op implementation.NextActionprocessRequest(Packet request)Default no-op implementation.NextActionprocessResponse(Packet response)Default no-op implementation.-
Methods inherited from class com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl
copy, doInvoke, doInvokeAndForget, doReturnWith, doSuspend, doSuspend, doSuspend, doSuspend, doThrow, doThrow, process
-
-
-
-
Constructor Detail
-
WSATServerTube
public WSATServerTube(Tube next, ServerTubelineAssemblyContext context, TransactionalFeature feature)
-
WSATServerTube
public WSATServerTube(WSATServerTube that, TubeCloner cloner)
-
-
Method Detail
-
processRequest
@NotNull public NextAction processRequest(Packet request)
Description copied from class:AbstractFilterTubeImplDefault no-op implementation.- Specified by:
processRequestin interfaceTube- Overrides:
processRequestin classAbstractFilterTubeImpl- 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
@NotNull public NextAction processResponse(Packet response)
Description copied from class:AbstractFilterTubeImplDefault no-op implementation.- Specified by:
processResponsein interfaceTube- Overrides:
processResponsein classAbstractFilterTubeImpl- 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
@NotNull public NextAction processException(Throwable t)
Description copied from class:AbstractFilterTubeImplDefault no-op implementation.- Specified by:
processExceptionin interfaceTube- Overrides:
processExceptionin classAbstractFilterTubeImpl- 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.
- Specified by:
preDestroyin interfacePipe- Specified by:
preDestroyin interfaceTube- Overrides:
preDestroyin classAbstractFilterTubeImpl
-
copy
public AbstractTubeImpl copy(TubeCloner cloner)
Description copied from interface:TubeCreates an identical clone of thisTube.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
TubeCloner.add(Tube,Tube)to register the copied pipe with the original. This is required before you start copying the otherTubereferences you have, or else there's a risk of infinite recursion.For most
Tubeimplementations that delegate to anotherTube, this method requires that you also copy theTubethat you delegate to.For limited number of
Tubes that do not maintain any thread unsafe resource, it is allowed to simply returnthisfrom this method (notice that even if you are stateless, if you got a delegatingTubeand 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 other process method. See the
Codec.copy()for more discussion about this.- Specified by:
copyin interfaceTube- Specified by:
copyin classAbstractTubeImpl- Parameters:
cloner- Use this object (in particular itsTubeCloner.copy(Tube)method to clone other pipe references you have in your pipe. SeeTubeClonerfor more discussion about why.- Returns:
- always non-null
Tube.
-
-