|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SoapHeader
Represents the Header
element in a SOAP message. A SOAP header contains SoapHeaderElement
s,
which represent the individual headers.
SoapHeaderElement
,
SoapEnvelope.getHeader()
Method Summary | |
---|---|
SoapHeaderElement |
addHeaderElement(QName name)
Adds a new SoapHeaderElement with the specified qualified name to this header. |
Iterator |
examineAllHeaderElements()
Returns an Iterator over all the SoapHeaderElement s in this header. |
Iterator |
examineMustUnderstandHeaderElements(String actorOrRole)
Returns an Iterator over all the SoapHeaderElement s that have the specified actor or
role and that have a MustUnderstand attribute whose value is equivalent to true . |
Result |
getResult()
Returns a Result that represents the concents of the header. |
void |
removeHeaderElement(QName name)
Removes the SoapHeaderElement with the specified qualified name from this header. |
Methods inherited from interface org.springframework.ws.soap.SoapElement |
---|
addAttribute, addNamespaceDeclaration, getAllAttributes, getAttributeValue, getName, getSource, removeAttribute |
Method Detail |
---|
Result getResult()
Result
that represents the concents of the header.
The result can be used for marshalling.
Result
of this elementSoapHeaderElement addHeaderElement(QName name) throws SoapHeaderException
SoapHeaderElement
with the specified qualified name to this header.
name
- the qualified name of the new header element
SoapHeaderElement
SoapHeaderException
- if the header cannot be createdvoid removeHeaderElement(QName name) throws SoapHeaderException
SoapHeaderElement
with the specified qualified name from this header.
This method will only remove the first child element with the specified name. If no element is found with the
specified name, this method has no effect.
name
- the qualified name of the header element to be removed
SoapHeaderException
- if the header cannot be removedIterator examineMustUnderstandHeaderElements(String actorOrRole) throws SoapHeaderException
Iterator
over all the SoapHeaderElement
s that have the specified actor or
role and that have a MustUnderstand
attribute whose value is equivalent to true
.
actorOrRole
- the actor (SOAP 1.1) or role (SOAP 1.2) for which to search
MustUnderstand
SoapHeaderException
- if the headers cannot be returnedSoapHeaderElement
Iterator examineAllHeaderElements() throws SoapHeaderException
Iterator
over all the SoapHeaderElement
s in this header.
SoapHeaderException
- if the header cannot be returnedSoapHeaderElement
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |