com.sun.xml.ws.message.saaj
Class SAAJHeader
java.lang.Object
com.sun.xml.ws.message.AbstractHeaderImpl
com.sun.xml.ws.message.DOMHeader<javax.xml.soap.SOAPHeaderElement>
com.sun.xml.ws.message.saaj.SAAJHeader
- All Implemented Interfaces:
- Header
public final class SAAJHeader
- extends DOMHeader<javax.xml.soap.SOAPHeaderElement>
Header
for SOAPHeaderElement
.
Fields inherited from class com.sun.xml.ws.message.DOMHeader |
node |
Method Summary |
String |
getRole(SOAPVersion soapVersion)
Gets the value of the soap:role attribute (or soap:actor for SOAP 1.1). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAAJHeader
public SAAJHeader(javax.xml.soap.SOAPHeaderElement header)
getRole
@NotNull
public String getRole(@NotNull
SOAPVersion soapVersion)
- Description copied from interface:
Header
- Gets the value of the soap:role attribute (or soap:actor for SOAP 1.1).
If the attribute is omitted, the value defaults to SOAPVersion.implicitRole
.
- Specified by:
getRole
in interface Header
- Overrides:
getRole
in class AbstractHeaderImpl
- Parameters:
soapVersion
- The caller specifies the SOAP version that the pipeline is working against.
Often each Header
implementation already knows the SOAP version
anyway, but this allows some Header
s to avoid keeping it.
That's why this redundant parameter is passed in.
- Returns:
- never null. This string need not be interned.