java.lang.Object
com.sun.xml.ws.message.AbstractHeaderImpl
com.sun.xml.ws.message.StringHeader
com.sun.xml.ws.message.RelatesToHeader
- All Implemented Interfaces:
Header
WS-Addressing <RelatesTo$gt; header.
Used for outbound only.
- Author:
- Arun Gupta
-
Field Summary
Fields inherited from class com.sun.xml.ws.message.StringHeader
MUST_UNDERSTAND, mustUnderstand, name, S11_MUST_UNDERSTAND_TRUE, S12_MUST_UNDERSTAND_TRUE, soapVersion, value
Fields inherited from class com.sun.xml.ws.message.AbstractHeaderImpl
EMPTY_ATTS
-
Constructor Summary
ConstructorDescriptionRelatesToHeader
(QName name, String mid) RelatesToHeader
(QName name, String messageId, String type) -
Method Summary
Methods inherited from class com.sun.xml.ws.message.StringHeader
getAttribute, getLocalPart, getNamespaceURI, readHeader, writeTo
Methods inherited from class com.sun.xml.ws.message.AbstractHeaderImpl
getAttribute, getRole, getStringContent, isIgnorable, isRelay, parseBool, readAsEPR, readAsJAXB, readAsJAXB
-
Field Details
-
type
-
-
Constructor Details
-
RelatesToHeader
-
RelatesToHeader
-
-
Method Details
-
getType
-
writeTo
Description copied from interface:Header
Writes out the header as a fragment.- Specified by:
writeTo
in interfaceHeader
- Overrides:
writeTo
in classStringHeader
- Throws:
XMLStreamException
- if the operation fails for some reason. This leaves the writer to an undefined state.
-
writeTo
public void writeTo(jakarta.xml.soap.SOAPMessage saaj) throws jakarta.xml.soap.SOAPException Description copied from interface:Header
Writes out the header to the given SOAPMessage.Sometimes a
Message
needs to produce itself asSOAPMessage
, in which case each header needs to turn itself into a header.- Specified by:
writeTo
in interfaceHeader
- Overrides:
writeTo
in classStringHeader
- Throws:
jakarta.xml.soap.SOAPException
- if the operation fails for some reason. This leaves the writer to an undefined state.
-