|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Headers
Jersey message headers internal contract.
| Nested Class Summary | |
|---|---|
static interface |
Headers.Builder<B extends Headers.Builder>
Jersey message headers builder internal contract. |
| Method Summary | |
|---|---|
java.lang.String |
header(java.lang.String name)
Get a HTTP header as a single string value. |
MultivaluedMap<java.lang.String,java.lang.String> |
headers()
Get the map of HTTP message header names to their respective values. |
java.util.List<java.lang.String> |
headerValues(java.lang.String name)
Get the values of a single HTTP message header. |
| Method Detail |
|---|
java.lang.String header(java.lang.String name)
RuntimeDelegate.HeaderDelegate if one is available
via RuntimeDelegate.createHeaderDelegate(java.lang.Class)
for the header value class or using its toString method if a header
delegate is not available.
name - the HTTP header.
null is returned. If the HTTP header is present but has no
value then the empty string is returned. If the HTTP header is present
more than once then the values of joined together and separated by a ','
character.headerValues(String),
headers()MultivaluedMap<java.lang.String,java.lang.String> headers()
RuntimeDelegate.HeaderDelegate if one is available
via RuntimeDelegate.createHeaderDelegate(java.lang.Class)
for the header value class or using its toString method if a header
delegate is not available.
java.lang.IllegalStateException - if called outside of the message processing scope.header(String),
headerValues(String)java.util.List<java.lang.String> headerValues(java.lang.String name)
headers().get(name).
Each single header value is converted to String using a
RuntimeDelegate.HeaderDelegate if one is available
via RuntimeDelegate.createHeaderDelegate(java.lang.Class)
for the header value class or using its toString method if a header
delegate is not available.
name - the header name, case insensitive.
null if no header value exists
for the header name.
java.lang.IllegalStateException - if called outside of the message processing scope.headers(),
header(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||