public final class SAAJHeader extends DOMHeader<javax.xml.soap.SOAPHeaderElement>
Header
for SOAPHeaderElement
.EMPTY_ATTS
Constructor and Description |
---|
SAAJHeader(javax.xml.soap.SOAPHeaderElement header) |
Modifier and Type | Method and Description |
---|---|
String |
getRole(SOAPVersion soapVersion)
Gets the value of the soap:role attribute (or soap:actor for SOAP 1.1).
|
equals, getAttribute, getLocalPart, getNamespaceURI, getStringContent, getWrappedNode, hashCode, readAsJAXB, readAsJAXB, readHeader, writeTo, writeTo, writeTo
getAttribute, isIgnorable, isRelay, parseBool, readAsEPR, readAsJAXB, readAsJAXB
public SAAJHeader(javax.xml.soap.SOAPHeaderElement header)
@NotNull public String getRole(@NotNull SOAPVersion soapVersion)
Header
If the attribute is omitted, the value defaults to SOAPVersion.implicitRole
.
getRole
in interface Header
getRole
in class AbstractHeaderImpl
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.Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.