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 com.sun.xml.ws.message.DOMHeader |
equals, getAttribute, getLocalPart, getNamespaceURI, getStringContent, getWrappedNode, hashCode, readAsJAXB, readAsJAXB, readHeader, writeTo, writeTo, writeTo |
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.
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.