Package com.sun.xml.ws.message
Class RelatesToHeader
- 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
public final class RelatesToHeader extends StringHeader
WS-Addressing <RelatesTo$gt; header. Used for outbound only.- Author:
- Arun Gupta
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringtype-
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
Constructors Constructor Description RelatesToHeader(QName name, String mid)RelatesToHeader(QName name, String messageId, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()voidwriteTo(jakarta.xml.soap.SOAPMessage saaj)Writes out the header to the given SOAPMessage.voidwriteTo(XMLStreamWriter w)Writes out the header as a fragment.-
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, readAsJAXB, readAsJAXB
-
-
-
-
Field Detail
-
type
protected String type
-
-
Method Detail
-
getType
public String getType()
-
writeTo
public void writeTo(XMLStreamWriter w) throws XMLStreamException
Description copied from interface:HeaderWrites out the header as a fragment.- Specified by:
writeToin interfaceHeader- Overrides:
writeToin 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.SOAPExceptionDescription copied from interface:HeaderWrites out the header to the given SOAPMessage.Sometimes a
Messageneeds to produce itself asSOAPMessage, in which case each header needs to turn itself into a header.- Specified by:
writeToin interfaceHeader- Overrides:
writeToin classStringHeader- Throws:
jakarta.xml.soap.SOAPException- if the operation fails for some reason. This leaves the writer to an undefined state.
-
-