com.sun.xml.ws.tx.coordinator
Interface CoordinationContextInterface

All Known Implementing Classes:
CoordinationContext200410, CoordinationContext200603, CoordinationContextBase

public interface CoordinationContextInterface

This interface hides the differences between the 2004/10 member submission and then 2006/03 OASIS versions of CoordinationContext

Since:
1.0

Method Summary
 java.lang.String getCoordinationType()
          Gets the value of the coordinationType property.
 long getExpires()
          Gets the value of the expires property in milliseconds.
 java.lang.String getIdentifier()
          Gets the value of the identifier property.
 java.util.Map<javax.xml.namespace.QName,java.lang.String> getOtherAttributes()
          Gets the underlying map that contains attributes that aren't bound to any typed property.
 javax.xml.ws.EndpointReference getRegistrationService()
          Gets the value of the registrationService property.
 javax.xml.ws.EndpointReference getRootRegistrationService()
          Get the root registration service EPR
 java.lang.Object getValue()
          Return the underlying JAXB generated coordination context type.
 void setCoordinationType(java.lang.String coordinationType)
          Sets the value of the coordinationType property.
 void setExpires(long expires)
          Sets the value of the expires property in milliseconds.
 void setIdentifier(java.lang.String identifier)
          Sets the value of the identifier property.
 void setRegistrationService(javax.xml.ws.EndpointReference registrationService)
          Sets the value of the registrationService property.
 void setRootCoordinatorRegistrationService(javax.xml.ws.EndpointReference rootRegistrationService)
          Set the root registration service EPR for this coordination context
 

Method Detail

getIdentifier

java.lang.String getIdentifier()
Gets the value of the identifier property.

Returns:
the identifier value

setIdentifier

void setIdentifier(java.lang.String identifier)
Sets the value of the identifier property.

Parameters:
identifier - the identifier value

getExpires

long getExpires()
Gets the value of the expires property in milliseconds.

Returns:
the value of the expires property in milliseconds

setExpires

void setExpires(long expires)
Sets the value of the expires property in milliseconds.

The expires value can not be negative. Calling setExpires(0L) unsets the underlying Expires element in the CoordinationContext.

Parameters:
expires - the expires value in milliseconds

getCoordinationType

java.lang.String getCoordinationType()
Gets the value of the coordinationType property.

Returns:
the value of the coordinationType

setCoordinationType

void setCoordinationType(java.lang.String coordinationType)
Sets the value of the coordinationType property.

Parameters:
coordinationType - either Constants.WSAT_2004_PROTOCOL or Constants.WSAT_OASIS_NSURI

getRegistrationService

javax.xml.ws.EndpointReference getRegistrationService()
Gets the value of the registrationService property.

Returns:
the EndpointReference of the registration service

setRegistrationService

void setRegistrationService(javax.xml.ws.EndpointReference registrationService)
Sets the value of the registrationService property.

Parameters:
registrationService - the EndpointReference of the registration service

getValue

java.lang.Object getValue()
Return the underlying JAXB generated coordination context type.

This will either be a (@link com.sun.xml.ws.tx.webservice.member.coord.CoordinationContext} or a OASIS CoordinationContext.

Returns:
Return the underlying JAXB generated coordination context type

getOtherAttributes

java.util.Map<javax.xml.namespace.QName,java.lang.String> getOtherAttributes()
Gets the underlying map that contains attributes that aren't bound to any typed property.

the map is keyed by the name of the attribute and the value is the string value of the attribute.

the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.

Returns:
always non-null

setRootCoordinatorRegistrationService

void setRootCoordinatorRegistrationService(javax.xml.ws.EndpointReference rootRegistrationService)
Set the root registration service EPR for this coordination context

Parameters:
rootRegistrationService -

getRootRegistrationService

javax.xml.ws.EndpointReference getRootRegistrationService()
Get the root registration service EPR

Returns:
the root registration service epr