- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpMessage<T>
-
- Direct Known Subclasses:
HttpRequest
,HttpResponse
public abstract class HttpMessage<T> extends HttpPart
-
-
Constructor Summary
Constructors Constructor Description HttpMessage()
-
Method Summary
-
Methods inherited from class swim.http.HttpPart
httpWriter, httpWriter, toHttp, writeHttp, writeHttp
-
-
-
-
Method Detail
-
version
public abstract HttpVersion version()
-
headers
public abstract FingerTrieSeq<HttpHeader> headers()
-
getHeader
public HttpHeader getHeader(String name)
-
getHeader
public <H extends HttpHeader> H getHeader(Class<H> headerClass)
-
headers
public abstract HttpMessage<T> headers(FingerTrieSeq<HttpHeader> headers)
-
headers
public abstract HttpMessage<T> headers(HttpHeader... headers)
-
appendedHeaders
public abstract HttpMessage<T> appendedHeaders(FingerTrieSeq<HttpHeader> newHeaders)
-
appendedHeaders
public abstract HttpMessage<T> appendedHeaders(HttpHeader... newHeaders)
-
appendedHeader
public abstract HttpMessage<T> appendedHeader(HttpHeader newHeader)
-
updatedHeaders
public abstract HttpMessage<T> updatedHeaders(FingerTrieSeq<HttpHeader> newHeaders)
-
updatedHeaders
public abstract HttpMessage<T> updatedHeaders(HttpHeader... newHeaders)
-
updatedHeader
public abstract HttpMessage<T> updatedHeader(HttpHeader newHeader)
-
payload
public abstract HttpPayload<T> payload()
-
payload
public abstract <T2> HttpMessage<T2> payload(HttpPayload<T2> payload)
-
content
public abstract <T2> HttpMessage<T2> content(HttpPayload<T2> payload)
-
body
public abstract HttpMessage<String> body(String content, MediaType mediaType)
-
body
public abstract HttpMessage<String> body(String content)
-
payloadDecoder
public <T2> Decoder<? extends HttpMessage<T2>> payloadDecoder(Decoder<T2> contentDecoder)
-
httpEncoder
public Encoder<?,? extends HttpMessage<T>> httpEncoder(HttpWriter http)
-
httpEncoder
public Encoder<?,? extends HttpMessage<T>> httpEncoder()
-
encodeHttp
public Encoder<?,? extends HttpMessage<T>> encodeHttp(OutputBuffer<?> output, HttpWriter http)
-
encodeHttp
public Encoder<?,? extends HttpMessage<T>> encodeHttp(OutputBuffer<?> output)
-
-