public abstract class MsgHeader extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
protected void |
addStandardNamespaces(Element element)
Deprecated.
Adds standard namespace declarations like xmlns:env and xmlns:wsu.
|
protected String |
getCurrentSoapEnvelopeNamespace()
Deprecated.
The current SOAP envelope namespace in force during the writeToParent
method invocation.
|
abstract QName |
getName()
Deprecated.
Gets the name of the header
|
String |
getRole()
Deprecated.
Gets the role targeted by this header.
|
abstract MsgHeaderType |
getType()
Deprecated.
Gets the type of message header
|
boolean |
hasDuplicated()
Deprecated.
Has duplicated header or not.
|
boolean |
isMultiple()
Deprecated.
Determines if this header can appear multiple times in SOAP header.
|
boolean |
isMustUnderstand()
Deprecated.
Determines if this header must be understood by the received node
|
boolean |
isRefParam()
Deprecated.
Determines if this header is a reference parameter
|
abstract void |
read(Element element)
Deprecated.
Reads the header
|
void |
setDuplicated(boolean duplicated)
Deprecated.
Set duplicated flag marks this header is duplicated, so we can detect it
later and throw standard WS-Addressing exception instead of throwing
duplicated header exception when parsing headers.
|
void |
setMustUnderstand(boolean mustUnderstand)
Deprecated.
Marks whether this header must be understood by the receiving node
|
void |
setRefParam(boolean refParam)
Deprecated.
Marks whether this header is a reference parameter
|
void |
setRole(String role)
Deprecated.
Sets the role targeted by this header.
|
String |
toString()
Deprecated.
|
void |
toString(ToStringWriter writer)
Deprecated.
|
abstract void |
write(Element element)
Deprecated.
Writes the header
|
Element |
writeToParent(Element parentElt)
Deprecated.
Writes the header
|
public abstract MsgHeaderType getType()
public abstract QName getName()
public abstract void read(Element element) throws MsgHeaderException
element
- The XML element containing the header dataMsgHeaderException
public abstract void write(Element element) throws MsgHeaderException
element
- The XML element to contain the header dataMsgHeaderException
public boolean isMultiple()
protected String getCurrentSoapEnvelopeNamespace()
public Element writeToParent(Element parentElt) throws MsgHeaderException
parentElt
- The parent XML elementMsgHeaderException
protected void addStandardNamespaces(Element element)
public void setMustUnderstand(boolean mustUnderstand)
mustUnderstand
- true if this header must be understoodpublic boolean isMustUnderstand()
public void setRefParam(boolean refParam)
refParam
- true if this header is a reference parameterpublic boolean isRefParam()
public void setDuplicated(boolean duplicated)
duplicated
- public boolean hasDuplicated()
public String getRole()
public void setRole(String role)
role
- The role targeted by this headerpublic void toString(ToStringWriter writer)