|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.message.internal.HeadersFactory
public final class HeadersFactory
Utility class supporting the processing of message headers.
| Method Summary | ||
|---|---|---|
static AbstractMultivaluedMap<java.lang.String,java.lang.String> |
createInbound()
Create an empty inbound message headers container. |
|
static AbstractMultivaluedMap<java.lang.String,java.lang.String> |
createInbound(java.util.Map<java.lang.String,java.util.List<java.lang.String>> initial)
Create an inbound message headers container. |
|
static AbstractMultivaluedMap<java.lang.String,java.lang.String> |
createInbound(MultivaluedMap<java.lang.String,java.lang.String> initial)
Create an inbound message headers container. |
|
static AbstractMultivaluedMap<java.lang.String,java.lang.Object> |
createOutbound()
Create an empty outbound message headers container. |
|
static AbstractMultivaluedMap<java.lang.String,java.lang.Object> |
createOutbound(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> initial)
Create an outbound message headers container. |
|
static
|
empty()
Get immutable empty message headers container. |
|
static java.util.List<java.lang.String> |
toString(java.util.List<java.lang.Object> headerValues,
RuntimeDelegate rd)
|
|
static MultivaluedMap<java.lang.String,java.lang.String> |
toString(MultivaluedMap<java.lang.String,java.lang.Object> headers,
RuntimeDelegate rd)
|
|
static java.lang.String |
toString(java.lang.Object headerValue,
RuntimeDelegate rd)
Convert a message header value, represented as a general object, to it's string representation. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AbstractMultivaluedMap<java.lang.String,java.lang.String> createInbound()
public static AbstractMultivaluedMap<java.lang.String,java.lang.String> createInbound(MultivaluedMap<java.lang.String,java.lang.String> initial)
initial - initial collection of headers to be used to initialize the
created message headers container.
public static AbstractMultivaluedMap<java.lang.String,java.lang.String> createInbound(java.util.Map<java.lang.String,java.util.List<java.lang.String>> initial)
Map of String keys and List<String> values.
initial - initial collection of headers to be used to initialize the
created message headers container.
public static <V> MultivaluedMap<java.lang.String,V> empty()
V - header value type. Typically Object in case of the outbound
headers and String in case of the inbound headers.
public static AbstractMultivaluedMap<java.lang.String,java.lang.Object> createOutbound()
public static AbstractMultivaluedMap<java.lang.String,java.lang.Object> createOutbound(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> initial)
Map of String keys and List<String> values.
initial - initial collection of headers to be used to initialize the
created message headers container.
public static java.lang.String toString(java.lang.Object headerValue,
RuntimeDelegate rd)
This method defers to RuntimeDelegate.createHeaderDelegate(java.lang.Class to
obtain a RuntimeDelegate.HeaderDelegate to convert the value to a String.
If a RuntimeDelegate.HeaderDelegate is not found then the toString()
method on the header object is utilized.
headerValue - the header value represented as an object.rd - runtime delegate instance to be used for header delegate
retrieval. If null, a default RuntimeDelegate
instance will be obtained and
used.
public static java.util.List<java.lang.String> toString(java.util.List<java.lang.Object> headerValues,
RuntimeDelegate rd)
public static MultivaluedMap<java.lang.String,java.lang.String> toString(MultivaluedMap<java.lang.String,java.lang.Object> headers,
RuntimeDelegate rd)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||