|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.message.addressing.util.AddressingUtils
public abstract class AddressingUtils
A set of WS-Addressing-related utility methods.
Field Summary |
---|
Constructor Summary | |
---|---|
protected |
AddressingUtils()
Hidden constructor. |
Method Summary | |
---|---|
static java.lang.String |
getAddressingNamespaceURI()
Deprecated. |
static java.lang.String |
getAddressingNamespaceURI(javax.xml.rpc.handler.MessageContext ctx)
Returns the namespace URI of the WSA version being used by the request in the specified message context. |
static AddressingVersion |
getAddressingVersion()
Gets an object describing the WS-Addressing specification represented by the namespace configured at the MessageContext or System level. |
static AddressingVersion |
getAddressingVersion(javax.xml.rpc.handler.MessageContext ctx)
Gets an object describing the WS-Addressing specification for which the specified message context is configured. |
static AddressingVersion |
getAddressingVersion(java.lang.String ns)
Gets an object describing the WS-Addressing specification represented by the specified namespace. |
static java.lang.String |
getAnonymousRoleURI()
Deprecated. |
static java.lang.String |
getAnonymousRoleURI(javax.xml.rpc.handler.MessageContext ctx)
Returns the anonymous target URI that is appropriate for the WSA version being used. |
static java.lang.String |
getFaultActionURI()
Deprecated. |
static java.lang.String |
getInputAction(javax.xml.namespace.QName portTypeQName,
javax.wsdl.Operation operation)
Gets input action. |
static java.lang.String |
getNamespacePrefix(javax.xml.soap.SOAPElement element,
java.lang.String namespace)
Gets prefix for a given namespace. |
static java.lang.String |
getOutputAction(javax.xml.namespace.QName portTypeQName,
javax.wsdl.Operation operation)
Gets output action. |
static AddressingHeaders |
getRequestHeaders(javax.xml.rpc.handler.MessageContext msgCtx)
Gets request AddressingHeaders associated with the specified
context. |
static AddressingHeaders |
getResponseHeaders(javax.xml.rpc.handler.MessageContext msgCtx)
Gets response AddressingHeaders associated with the
specified context. |
static javax.xml.namespace.QName |
getResponseRelationshipType()
Returns the response/reply relationship QName that is appropriate for the WSA version being used. |
static javax.xml.namespace.QName |
getResponseRelationshipType(javax.xml.rpc.handler.MessageContext ctx)
Returns the response/reply relationship QName that is appropriate for the WSA version being used. |
static boolean |
isAddressingNamespaceURI(java.lang.String uri)
Deprecated. |
static boolean |
isW3CAddressingNamespaceURI(java.lang.String uri)
Deprecated. |
static EndpointReference |
parseReference(java.lang.String epr)
Parses a string containing an End-point reference in XML format, and translates it into an EndpointReference bean. |
static void |
removeHeader(javax.xml.soap.SOAPHeader soapHeader,
java.lang.String actorURI,
java.lang.String headerName)
Removes all instances of a given header name in WSA namespace for a given actor. |
static void |
removeHeaders(javax.xml.soap.SOAPHeader soapHeader,
java.lang.String actorURI)
Removes all instances of all WSA headers for a given actor. |
static java.lang.String |
toString(EndpointReference epr,
boolean prettyPrint)
Converts an End-Point Reference into an XML String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AddressingUtils()
Method Detail |
---|
public static void removeHeader(javax.xml.soap.SOAPHeader soapHeader, java.lang.String actorURI, java.lang.String headerName)
soapHeader
- Header containing the element to removeactorURI
- Actor URIheaderName
- element namepublic static AddressingVersion getAddressingVersion(javax.xml.rpc.handler.MessageContext ctx)
ctx
- Message context
public static AddressingVersion getAddressingVersion(java.lang.String ns)
ns
- Addressing namespace URI
public static AddressingVersion getAddressingVersion()
public static boolean isAddressingNamespaceURI(java.lang.String uri)
uri
- a URI
public static boolean isW3CAddressingNamespaceURI(java.lang.String uri)
uri
- a URI
public static void removeHeaders(javax.xml.soap.SOAPHeader soapHeader, java.lang.String actorURI)
soapHeader
- header containeractorURI
- Actor URIpublic static AddressingHeaders getResponseHeaders(javax.xml.rpc.handler.MessageContext msgCtx)
AddressingHeaders
associated with the
specified context. If there are no AddressingHeaders
associated with the context, new reponse AddressingHeaders
are created and associated with the context.
msgCtx
- Context information
public static AddressingHeaders getRequestHeaders(javax.xml.rpc.handler.MessageContext msgCtx)
AddressingHeaders
associated with the specified
context. If there are no AddressingHeaders
associated with
the context, new request AddressingHeaders
are created and
associated with the context.
msgCtx
- Context information
public static java.lang.String getInputAction(javax.xml.namespace.QName portTypeQName, javax.wsdl.Operation operation)
portTypeQName
- Name of the port typeoperation
- Operation in the specified port type
public static java.lang.String getOutputAction(javax.xml.namespace.QName portTypeQName, javax.wsdl.Operation operation)
portTypeQName
- Name of the port typeoperation
- Operation in the specified port type
public static java.lang.String getNamespacePrefix(javax.xml.soap.SOAPElement element, java.lang.String namespace) throws javax.xml.soap.SOAPException
element
- Element where the prefix will be look upnamespace
- Namespace to look up
javax.xml.soap.SOAPException
public static java.lang.String getAddressingNamespaceURI()
public static java.lang.String getAddressingNamespaceURI(javax.xml.rpc.handler.MessageContext ctx)
ctx
- The message context
public static java.lang.String getFaultActionURI()
public static java.lang.String getAnonymousRoleURI()
public static java.lang.String getAnonymousRoleURI(javax.xml.rpc.handler.MessageContext ctx)
ctx
- Message Context
public static javax.xml.namespace.QName getResponseRelationshipType()
public static javax.xml.namespace.QName getResponseRelationshipType(javax.xml.rpc.handler.MessageContext ctx)
ctx
- Message context
public static EndpointReference parseReference(java.lang.String epr) throws java.lang.Exception
EndpointReference
bean.
epr
- End-point reference in XML format
java.lang.Exception
- If the XML parser fails to initialize, a syntax error
is detected in the input string, or a general error
occurs while constructing the beanpublic static java.lang.String toString(EndpointReference epr, boolean prettyPrint) throws java.lang.Exception
epr
- End-point referenceprettyPrint
- Whether to beautify the generated XML text
java.lang.Exception
- If an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |