public interface MessageHeaders
Message
Modifier and Type | Method and Description |
---|---|
boolean |
add(Header header) |
boolean |
addOrReplace(Header header)
|
Header |
get(QName name,
boolean markAsUnderstood) |
Header |
get(String nsUri,
String localName,
boolean markAsUnderstood) |
Iterator<Header> |
getHeaders() |
Iterator<Header> |
getHeaders(QName headerName,
boolean markAsUnderstood) |
Iterator<Header> |
getHeaders(String nsUri,
boolean markAsUnderstood)
Get all headers in specified namespace
|
Iterator<Header> |
getHeaders(String nsUri,
String localName,
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 in
|
Set<QName> |
getUnderstoodHeaders()
Return a Set of QNames of headers that have been explicitly marked as understood.
|
boolean |
isUnderstood(Header header)
True if the header has been explicitly marked understood, false otherwise
|
boolean |
isUnderstood(QName name)
True if the header has been explicitly marked understood, false otherwise
|
boolean |
isUnderstood(String nsUri,
String localName)
True if the header has been explicitly marked understood, false otherwise
|
Header |
remove(QName name) |
Header |
remove(String nsUri,
String localName) |
void |
understood(Header header) |
void |
understood(QName name) |
void |
understood(String nsUri,
String localName) |
void understood(Header header)
void understood(QName name)
Iterator<Header> getHeaders(String nsUri, boolean markAsUnderstood)
nsUri
- markAsUnderstood
- boolean add(Header header)
boolean addOrReplace(Header header)
Header
or adds a new Header
.
Order doesn't matter in headers, so this method does not make any guarantee as to where the new header is inserted.
Set<QName> getUnderstoodHeaders()
Set<QName> getNotUnderstoodHeaders(Set<String> roles, Set<QName> knownHeaders, WSBinding binding)
roles
- knownHeaders
- binding
- boolean isUnderstood(Header header)
header
- boolean isUnderstood(QName name)
header
- Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.