|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.types.ConversationID
public abstract class ConversationID
Utility class for handling EPRs. This class contains methods to create, update and query EPRs. In particular, it handles the label and resource ID elements used by the GRIA services.
| Field Summary | |
|---|---|
static QName |
BILLING_INFO
The name of the SOAP header containing an account or SLA. |
static String |
GRID_NS
XML namespace for some of our elements. |
static String |
GRID_NS_2007
|
static String |
GRID_NS_2008
|
static PrefixedQName |
ITI_CONVERSATION_NAME
The SOAP header element that identifies the primary context. |
static QName |
RESOURCE_JAVA_TYPE_LEGACY
In GRIA versions before 5.3, we stored the Java interface in the metadata. |
static QName |
RESOURCE_PARENT
|
static String |
XMLNS_OGSA_BP
OGSA Basic Profile. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String GRID_NS
public static final String GRID_NS_2007
public static final String GRID_NS_2008
public static final String XMLNS_OGSA_BP
public static final QName RESOURCE_PARENT
public static final QName RESOURCE_JAVA_TYPE_LEGACY
public static final QName BILLING_INFO
public static final PrefixedQName ITI_CONVERSATION_NAME
| Method Detail |
|---|
public static String getConversationFromEPR(org.apache.axis.message.addressing.EndpointReferenceType EPR)
public static String getURLFromEPR(org.apache.axis.message.addressing.EndpointReferenceType EPR)
public static String getURLReferenceFromEPR(org.apache.axis.message.addressing.EndpointReferenceType EPR)
public static String getConversationFromParameters(org.apache.axis.message.addressing.ReferenceParametersType refParams)
refParams - the reference parameters from an EPR to check
ITI_CONVERSATION_NAME reference parameter, or
null if there isn't onepublic static org.apache.axis.message.addressing.EndpointReferenceType getEPR(Element element)
deserialiseEPR(String).
element - the EPR in an XML Element
public static org.apache.axis.message.addressing.EndpointReferenceType getEPR(URL endpoint,
String conversationID)
endpoint - the service endpoint addressconversationID - the value for the resource ID reference parameter
public static org.apache.axis.message.addressing.EndpointReferenceType getEPR(String endpoint,
String conversationID)
endpoint - the service endpoint addressconversationID - the value for the resource ID reference parameter
public static org.apache.axis.message.addressing.EndpointReferenceType getEPR(org.apache.axis.message.addressing.AttributedURI endpoint,
String conversationID)
endpoint - the service endpoint addressconversationID - the value for the resource ID reference parameterpublic static org.apache.axis.message.addressing.EndpointReferenceType getEPR(String URLreference)
public static org.apache.axis.message.addressing.EndpointReferenceType getEPR(URL endpoint,
String conversationID,
String label)
endpoint - the address of the service endpointconversationID - the unique ID identifying this resourcelabel - a human-readable name for the resource, or null.public static org.apache.axis.message.addressing.EndpointReferenceType deserialiseEPR(String xml)
public static String getLabel(org.apache.axis.message.addressing.EndpointReferenceType EPR)
public static void setLabel(org.apache.axis.message.addressing.EndpointReferenceType EPR,
String label)
public static URL getParent(org.apache.axis.message.addressing.EndpointReferenceType EPR)
public static void setParent(org.apache.axis.message.addressing.EndpointReferenceType EPR,
URL parent)
RESOURCE_PARENT metadata element to this value.
Used by the GRIA client to record parent-child relationships between EPRs,
for example.
EPR - the EPR to modifyparent - the URL Reference of the parent (in the form "service#resource")getEPR(String)
public static void setParent(org.apache.axis.message.addressing.EndpointReferenceType EPR,
String parent)
RESOURCE_PARENT metadata element to this value.
Used by the GRIA client to record parent-child relationships between EPRs,
for example.
EPR - the EPR to modifyparent - the URL Reference of the parent (in the form "service#resource")getEPR(String)public static String getDefaultSLA(org.apache.axis.message.addressing.EndpointReferenceType EPR)
public static void setDefaultSLA(org.apache.axis.message.addressing.EndpointReferenceType EPR,
String sla)
public static String getResourceStatus(org.apache.axis.message.addressing.EndpointReferenceType EPR)
public static void setResourceStatus(org.apache.axis.message.addressing.EndpointReferenceType EPR,
String status)
public static String getResourceType(org.apache.axis.message.addressing.EndpointReferenceType EPR)
public static void setResourceType(org.apache.axis.message.addressing.EndpointReferenceType EPR,
String type)
public static String getManagingResource(org.apache.axis.message.addressing.EndpointReferenceType EPR)
public static void setManagingResource(org.apache.axis.message.addressing.EndpointReferenceType EPR,
String managingResource)
managingResource - the ID (in the form http://service/...#ConversationID) of the managing resource
public static X509Certificate getKeyInfo(org.apache.axis.message.addressing.EndpointReferenceType EPR)
throws org.apache.ws.security.WSSecurityException
org.apache.ws.security.WSSecurityExceptionpublic static MessageElement getKeyInfo(X509Certificate serverCert)
serverCert - the servers X509 Certificate
public static void addKeyInfo(org.apache.axis.message.addressing.EndpointReferenceType EPR,
X509Certificate serverCert)
public static String getPullPoint(org.apache.axis.message.addressing.EndpointReferenceType EPR)
public static void setPullPoint(org.apache.axis.message.addressing.EndpointReferenceType EPR,
String pullpoint)
public static Element getTokenSource(org.apache.axis.message.addressing.EndpointReferenceType EPR)
public static void setTokenSource(org.apache.axis.message.addressing.EndpointReferenceType EPR,
Element tokenSource)
tokenSource - a WS-Policy ElementWSTrustUtils.createTokenSourcePolicy(org.apache.axis.message.addressing.EndpointReferenceType)public static MessageElement[] getAdditionalTokens(org.apache.axis.message.addressing.EndpointReferenceType EPR)
AdditionalSecurityToken.ADDITIONAL_SECURITY_TOKEN.
addAdditionalToken(org.apache.axis.message.addressing.EndpointReferenceType, org.w3c.dom.Element)
public static void addAdditionalToken(org.apache.axis.message.addressing.EndpointReferenceType EPR,
Element token)
public static String getMeta(org.apache.axis.message.addressing.EndpointReferenceType EPR,
QName key)
EPR - the EPR to searchkey - the name of the meta-data element
public static boolean updateMetadata(org.apache.axis.message.addressing.EndpointReferenceType EPR,
org.apache.axis.message.addressing.EndpointReferenceType newEPR)
EPR - the EPR to updatenewEPR - the EndpointReferenceType with new values
public static void setMetaNode(org.apache.axis.message.addressing.EndpointReferenceType EPR,
QName key,
Node value)
EPR - the EPR to modifykey - the name of the meta-data element to create or updatevalue - the new value for the element
public static void setMeta(org.apache.axis.message.addressing.EndpointReferenceType EPR,
QName key,
String value)
EPR - the EPR to modifykey - the name of the meta-data element to create or updatevalue - the new value for the elementpublic static org.apache.axis.message.addressing.EndpointReferenceType sanitised(org.apache.axis.message.addressing.EndpointReferenceType source)
public static Class<?> getJavaType(org.apache.axis.message.addressing.EndpointReferenceType epr)
epr - the EPR for the remote resource, with the type in its metadata
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||