|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atomikos.icatch.jaxb.wsc.v200410.Utils
public final class Utils
Copyright © 2005, Atomikos. All rights reserved. Utilities for the WS-C and WS-T protocols. This class is in a separate package because it should work for both WS-AT and WS-BA.
Field Summary | |
---|---|
static String |
CONTEXT_HEADER_NAME
|
static String |
TYPE_ELEMENT_NAME
|
static String |
WSAT_DURABLE_2PC_PROTOCOL_URI_08_2005
|
static String |
WSAT_TYPE_URI
|
static String |
WSC_BASE_ACTION_URI
|
static String |
WSC_NAMESPACE_URI
|
Method Summary | |
---|---|
static Propagation |
extractPropagationFromHeader(javax.xml.soap.SOAPHeaderElement header,
String type,
Transport transport,
long defaultTimeout)
Extracts a propagation from the header |
static OutgoingAddressingHeaders |
extractRegistrationServiceAddress(javax.xml.soap.SOAPHeaderElement header)
Extracts a registration service address from a soap header element. |
static javax.xml.soap.SOAPHeaderElement |
findPropagationHeader(javax.xml.soap.SOAPMessage msg,
String type)
Finds a propagation header of the given WSC type. |
static void |
insertPropagationHeader(javax.xml.soap.SOAPMessage msg,
String root,
String tid,
long timeout,
String regServiceAddress,
String type)
Inserts a propagation of the given type into the message. |
static void |
registerAsParticipant(OutgoingAddressingHeaders registrationAddress,
String registrationRequesterAddress,
String localParticipantURI,
Transport t,
long timeout)
Registers as a subordinate with the remote coordination service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TYPE_ELEMENT_NAME
public static final String CONTEXT_HEADER_NAME
public static final String WSC_NAMESPACE_URI
public static final String WSC_BASE_ACTION_URI
public static final String WSAT_TYPE_URI
public static final String WSAT_DURABLE_2PC_PROTOCOL_URI_08_2005
Method Detail |
---|
public static Propagation extractPropagationFromHeader(javax.xml.soap.SOAPHeaderElement header, String type, Transport transport, long defaultTimeout) throws javax.xml.soap.SOAPException
header
- type
- The target coordination typetransport
- The transport to usedefaultTimeout
- The timeout if none in header
javax.xml.soap.SOAPException
public static OutgoingAddressingHeaders extractRegistrationServiceAddress(javax.xml.soap.SOAPHeaderElement header) throws javax.xml.soap.SOAPException
header
- The header
javax.xml.soap.SOAPException
public static void registerAsParticipant(OutgoingAddressingHeaders registrationAddress, String registrationRequesterAddress, String localParticipantURI, Transport t, long timeout) throws MalformedURLException, RemoteException, javax.xml.soap.SOAPException
registrationAddress
- The address where to registerregistrationRequesterAddress
- The address where the response should go tolocalParticipantURI
- The (GLOBALLY UNIQUE) URI of the participant to registert
- The transport to use (protocol specific)timeout
- The timeout in millis to wait for registration acknowledgement.
MalformedURLException
RemoteException
javax.xml.soap.SOAPException
public static void insertPropagationHeader(javax.xml.soap.SOAPMessage msg, String root, String tid, long timeout, String regServiceAddress, String type) throws javax.xml.soap.SOAPException
msg
- root
- tid
- timeout
- regServiceAddress
- type
-
javax.xml.soap.SOAPException
public static javax.xml.soap.SOAPHeaderElement findPropagationHeader(javax.xml.soap.SOAPMessage msg, String type) throws javax.xml.soap.SOAPException
msg
- The messagetype
- The coordination type
javax.xml.soap.SOAPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |