- java.lang.Object
-
- swim.http.HttpPayload<T>
-
- Direct Known Subclasses:
HttpBody
,HttpChunked
,HttpValue
public abstract class HttpPayload<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpPayload()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <T> HttpPayload<T>
empty()
<T2> Encoder<?,HttpMessage<T2>>
encodeHttp(OutputBuffer<?> output, HttpMessage<T2> message)
abstract <T2> Encoder<?,HttpMessage<T2>>
encodeHttp(OutputBuffer<?> output, HttpMessage<T2> message, HttpWriter http)
abstract T
get()
abstract FingerTrieSeq<HttpHeader>
headers()
<T2> Encoder<?,HttpMessage<T2>>
httpEncoder(HttpMessage<T2> message)
abstract <T2> Encoder<?,HttpMessage<T2>>
httpEncoder(HttpMessage<T2> message, HttpWriter http)
abstract boolean
isDefined()
abstract MediaType
mediaType()
abstract FingerTrieSeq<TransferCoding>
transferCodings()
-
-
-
Method Detail
-
isDefined
public abstract boolean isDefined()
-
get
public abstract T get()
-
mediaType
public abstract MediaType mediaType()
-
transferCodings
public abstract FingerTrieSeq<TransferCoding> transferCodings()
-
headers
public abstract FingerTrieSeq<HttpHeader> headers()
-
httpEncoder
public abstract <T2> Encoder<?,HttpMessage<T2>> httpEncoder(HttpMessage<T2> message, HttpWriter http)
-
httpEncoder
public <T2> Encoder<?,HttpMessage<T2>> httpEncoder(HttpMessage<T2> message)
-
encodeHttp
public abstract <T2> Encoder<?,HttpMessage<T2>> encodeHttp(OutputBuffer<?> output, HttpMessage<T2> message, HttpWriter http)
-
encodeHttp
public <T2> Encoder<?,HttpMessage<T2>> encodeHttp(OutputBuffer<?> output, HttpMessage<T2> message)
-
empty
public static <T> HttpPayload<T> empty()
-
-