public class WsrmUtils
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static boolean |
checkIsPiggyback(javax.xml.rpc.handler.soap.SOAPMessageContext smc,
WsrmConstants.Action action) |
Deprecated.
|
static void |
closeSequence(javax.xml.rpc.Stub stub) |
Deprecated.
This method is used to close a reliable sequence on the given stub.
|
static javax.xml.datatype.Duration |
getExpires(javax.xml.rpc.Stub stub) |
Deprecated.
This method gets the expiration time that was previously set on the reliable sequence.
|
static javax.xml.datatype.Duration |
getOfferExpires(javax.xml.rpc.Stub stub) |
Deprecated.
This method gets the expiration time that was previously set on the offered
reliable sequence.
|
static java.lang.String |
getSequenceId(javax.xml.rpc.Stub stub) |
Deprecated.
This method is to obtain the sequence id on a stub.
|
static boolean |
isAnonymousAck(javax.xml.rpc.Stub stub) |
Deprecated.
This method determines whether anonymous acknowledgement is used.
|
static boolean |
isFinalMessage(javax.xml.rpc.Stub stub) |
Deprecated.
This method determines whether the final message has been sent on the
sequence for this stub.
|
static boolean |
isLastMessage(javax.xml.rpc.Stub stub) |
Deprecated.
This method determines whether the last message property has been previously set.
|
static boolean |
isSequenceInitialized(javax.xml.rpc.Stub stub) |
Deprecated.
Convenience method to check if a given stub has had its
sequence created and fully initialized.
|
static void |
printSoapMsg(javax.xml.soap.SOAPMessage msg) |
Deprecated.
Dumps the contents of a SOAPMessage.
|
static void |
reset(javax.xml.rpc.Stub stub) |
Deprecated.
This method is used to clear any reliable sequence on the given stub, thus
allowing a new sequence to be started using this stub.
|
static void |
sendEmptyLastMessage(javax.xml.rpc.Stub stub) |
Deprecated.
This method is used to send an empty last message according to the WSRM spec.
|
static void |
setAnonymousAck(javax.xml.rpc.Stub stub) |
Deprecated.
This method allows to use anonymous acknowledgement according to the WSRM specification.
|
static void |
setExpires(javax.xml.rpc.Stub stub,
javax.xml.datatype.Duration duration) |
Deprecated.
This method sets the expiration time of the reliable sequence on the client side.
|
static void |
setFinalMessage(javax.xml.rpc.Stub stub) |
Deprecated.
Sets a flag on this service handle indicating that the next message sent
using the handle will be the 'final' request to be sent.
|
static void |
setLastMessage(javax.xml.rpc.Stub stub) |
Deprecated.
This method sets the next message sent to be the last message.
|
static void |
setOfferExpires(javax.xml.rpc.Stub stub,
javax.xml.datatype.Duration duration) |
Deprecated.
This method sets the expiration time of the offered reliable sequence.
|
static void |
terminateSequence(javax.xml.rpc.Stub stub) |
Deprecated.
This method is used to terminate a reliable sequence on the given stub.
|
static java.lang.String |
waitForSequenceInitialization(javax.xml.rpc.Stub stub,
long waitIntervalInMillis,
long maxWaitIntervals) |
Deprecated.
Convenience method to wait until a given stub has had its
sequence created and fully initialized.
|
public static boolean isSequenceInitialized(javax.xml.rpc.Stub stub)
stub
- The stub that carries the reliable sequence.public static java.lang.String waitForSequenceInitialization(javax.xml.rpc.Stub stub, long waitIntervalInMillis, long maxWaitIntervals)
stub
- The stub that carries the reliable sequence.waitIntervalInMillis
- The number of milliseconds to wait at each
interval (before checking the sequence again).maxWaitIntervals
- The maximum number of times to recheck the
sequence.isSequenceInitialized(javax.xml.rpc.Stub)
public static void sendEmptyLastMessage(javax.xml.rpc.Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.javax.xml.rpc.JAXRPCException
- This exception is thrown when there are errors in sending the
mesage.waitForSequenceInitialization(javax.xml.rpc.Stub, long, long)
public static void closeSequence(javax.xml.rpc.Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.javax.xml.rpc.JAXRPCException
- This exception is thrown when there are errors in
closing the sequence.public static void terminateSequence(javax.xml.rpc.Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.javax.xml.rpc.JAXRPCException
- This exception is thrown when there are errors in terminating
the sequence.waitForSequenceInitialization(javax.xml.rpc.Stub, long, long)
public static void reset(javax.xml.rpc.Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.javax.xml.rpc.JAXRPCException
- This exception is thrown when there are errors in
resetting the stub.public static java.lang.String getSequenceId(javax.xml.rpc.Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.javax.xml.rpc.JAXRPCException
- This exception is thrown when there are errors in getting the
reliable sequence id.public static void setExpires(javax.xml.rpc.Stub stub, javax.xml.datatype.Duration duration)
stub
- The jaxrpc stub that's used to carry the reliable sequence.duration
- The duration of the reliable sequence.public static javax.xml.datatype.Duration getExpires(javax.xml.rpc.Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.public static void setOfferExpires(javax.xml.rpc.Stub stub, javax.xml.datatype.Duration duration)
stub
- The jaxrpc stub that's used to carry the reliable sequence.duration
- The duration of the reliable sequence.public static javax.xml.datatype.Duration getOfferExpires(javax.xml.rpc.Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.public static void setAnonymousAck(javax.xml.rpc.Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.public static boolean isAnonymousAck(javax.xml.rpc.Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.public static void setLastMessage(javax.xml.rpc.Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.public static boolean isLastMessage(javax.xml.rpc.Stub stub)
stub
- The jaxrpc stub that's used to carry the reliable sequence.public static void setFinalMessage(javax.xml.rpc.Stub stub)
Setting this flag (and after sending the final message) will trigger the reliable messaging subsystem to start looking for acknowledgements for all messages up to and including the final message. When RM receives acknowledgements for all messages up to the final message, it will auto-terminate the sequence being maintained for this service handle. Note that auto-terminate will also auto-terminate any offer sequence (being used to send reliable responses to the requests sent by this service handle) once acknowlegements for all responses have been received.
stub
- The stub for a service that's used to carry the reliable
sequence.public static boolean isFinalMessage(javax.xml.rpc.Stub stub)
stub
- The stub for a service that's used to carry the reliable
sequence.setFinalMessage(javax.xml.rpc.Stub)
public static boolean checkIsPiggyback(javax.xml.rpc.handler.soap.SOAPMessageContext smc, WsrmConstants.Action action)
public static void printSoapMsg(javax.xml.soap.SOAPMessage msg)