Package 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
-
-
Field Summary
-
Fields inherited from class com.sun.xml.ws.message.AbstractHeaderImpl
EMPTY_ATTS
-
-
Constructor Summary
Constructors Constructor Description SAAJHeader(javax.xml.soap.SOAPHeaderElement header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRole(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
-
Methods inherited from class com.sun.xml.ws.message.AbstractHeaderImpl
getAttribute, isIgnorable, isRelay, parseBool, readAsEPR, readAsJAXB, readAsJAXB
-
-
-
-
Method Detail
-
getRole
@NotNull public String getRole(@NotNull SOAPVersion soapVersion)
Description copied from interface:HeaderGets 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:
getRolein interfaceHeader- Overrides:
getRolein classAbstractHeaderImpl- Parameters:
soapVersion- The caller specifies the SOAP version that the pipeline is working against. Often eachHeaderimplementation already knows the SOAP version anyway, but this allows someHeaders to avoid keeping it. That's why this redundant parameter is passed in.- Returns:
- never null. This string need not be interned.
-
-