- java.lang.Object
-
- swim.http.HttpPayload<T>
-
- swim.http.HttpValue<T>
-
- All Implemented Interfaces:
Debug
public final class HttpValue<T> extends HttpPayload<T> implements Debug
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> HttpValue<T>
create(T payloadValue)
static <T> HttpValue<T>
create(T payloadValue, MediaType mediaType)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.<T2> Encoder<?,HttpMessage<T2>>
encodeHttp(OutputBuffer<?> output, HttpMessage<T2> message, HttpWriter http)
boolean
equals(Object other)
T
get()
int
hashCode()
FingerTrieSeq<HttpHeader>
headers()
<T2> Encoder<?,HttpMessage<T2>>
httpEncoder(HttpMessage<T2> message, HttpWriter http)
boolean
isDefined()
MediaType
mediaType()
String
toString()
FingerTrieSeq<TransferCoding>
transferCodings()
-
Methods inherited from class swim.http.HttpPayload
empty, encodeHttp, httpEncoder
-
-
-
-
Method Detail
-
isDefined
public boolean isDefined()
- Specified by:
isDefined
in classHttpPayload<T>
-
get
public T get()
- Specified by:
get
in classHttpPayload<T>
-
mediaType
public MediaType mediaType()
- Specified by:
mediaType
in classHttpPayload<T>
-
transferCodings
public FingerTrieSeq<TransferCoding> transferCodings()
- Specified by:
transferCodings
in classHttpPayload<T>
-
headers
public FingerTrieSeq<HttpHeader> headers()
- Specified by:
headers
in classHttpPayload<T>
-
httpEncoder
public <T2> Encoder<?,HttpMessage<T2>> httpEncoder(HttpMessage<T2> message, HttpWriter http)
- Specified by:
httpEncoder
in classHttpPayload<T>
-
encodeHttp
public <T2> Encoder<?,HttpMessage<T2>> encodeHttp(OutputBuffer<?> output, HttpMessage<T2> message, HttpWriter http)
- Specified by:
encodeHttp
in classHttpPayload<T>
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
create
public static <T> HttpValue<T> create(T payloadValue)
-
-