Package com.sun.xml.ws.api.message
Interface MessageHeaders
-
- All Known Implementing Classes:
HeaderList,SAAJMessageHeaders
public interface MessageHeadersInterface representing all the headers of aMessage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanadd(Header header)booleanaddOrReplace(Header header)List<Header>asList()ReturnsHeaderinstances in aList.Headerget(String nsUri, String localName, boolean markAsUnderstood)Headerget(QName name, boolean markAsUnderstood)Iterator<Header>getHeaders()Iterator<Header>getHeaders(String nsUri, boolean markAsUnderstood)Get all headers in specified namespaceIterator<Header>getHeaders(String nsUri, String localName, boolean markAsUnderstood)Iterator<Header>getHeaders(QName headerName, boolean markAsUnderstood)Set<QName>getNotUnderstoodHeaders(Set<String> roles, Set<QName> knownHeaders, WSBinding binding)Returns a Set of QNames of headers that satisfy ALL the following conditions: (a) Have mustUnderstand = true (b) have NOT been explicitly marked as understood (c) If roles argument is non-null, the header has isIgnorable = false for the roles argument and SOAP version (d) If non-null binding is passed in, are NOT understood by the binding (e) If (d) is met, the header is NOT in the knownHeaders list passed inSet<QName>getUnderstoodHeaders()Return a Set of QNames of headers that have been explicitly marked as understood.booleanhasHeaders()booleanisUnderstood(Header header)True if the header has been explicitly marked understood, false otherwisebooleanisUnderstood(String nsUri, String header)True if the header has been explicitly marked understood, false otherwisebooleanisUnderstood(QName header)True if the header has been explicitly marked understood, false otherwiseHeaderremove(String nsUri, String localName)Headerremove(QName name)voidreplace(Header old, Header header)voidunderstood(Header header)voidunderstood(String nsUri, String localName)voidunderstood(QName name)
-
-
-
Method Detail
-
understood
void understood(Header header)
-
understood
void understood(QName name)
-
getHeaders
Iterator<Header> getHeaders(String nsUri, boolean markAsUnderstood)
Get all headers in specified namespace- Parameters:
nsUri-markAsUnderstood-- Returns:
-
hasHeaders
boolean hasHeaders()
-
add
boolean add(Header header)
-
addOrReplace
boolean addOrReplace(Header header)
Replaces an existingHeaderor adds a newHeader.Order doesn't matter in headers, so this method does not make any guarantee as to where the new header is inserted.
- Returns:
- always true. Don't use the return value.
-
getUnderstoodHeaders
Set<QName> getUnderstoodHeaders()
Return a Set of QNames of headers that have been explicitly marked as understood. If none have been marked, this method could return null
-
getNotUnderstoodHeaders
Set<QName> getNotUnderstoodHeaders(Set<String> roles, Set<QName> knownHeaders, WSBinding binding)
Returns a Set of QNames of headers that satisfy ALL the following conditions: (a) Have mustUnderstand = true (b) have NOT been explicitly marked as understood (c) If roles argument is non-null, the header has isIgnorable = false for the roles argument and SOAP version (d) If non-null binding is passed in, are NOT understood by the binding (e) If (d) is met, the header is NOT in the knownHeaders list passed in- Parameters:
roles-knownHeaders-binding-- Returns:
-
isUnderstood
boolean isUnderstood(Header header)
True if the header has been explicitly marked understood, false otherwise- Parameters:
header-- Returns:
-
isUnderstood
boolean isUnderstood(QName header)
True if the header has been explicitly marked understood, false otherwise- Parameters:
header-- Returns:
-
isUnderstood
boolean isUnderstood(String nsUri, String header)
True if the header has been explicitly marked understood, false otherwise- Parameters:
header-- Returns:
-
-