- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.TransferCoding
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransferCoding
chunked()
static TransferCoding
compress()
static TransferCoding
create(String name)
static TransferCoding
create(String name, HashTrieMap<String,String> params)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.static TransferCoding
deflate()
boolean
equals(Object other)
String
getParam(String key)
static TransferCoding
gzip()
int
hashCode()
Writer<?,?>
httpWriter(HttpWriter http)
boolean
isChunked()
boolean
isCompress()
boolean
isDeflate()
boolean
isGzip()
String
name()
TransferCoding
param(String key, String value)
HashTrieMap<String,String>
params()
static TransferCoding
parse(String string)
String
toString()
Writer<?,?>
writeHttp(Output<?> output, HttpWriter http)
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
name
public String name()
-
params
public HashTrieMap<String,String> params()
-
param
public TransferCoding param(String key, String value)
-
isChunked
public boolean isChunked()
-
isCompress
public boolean isCompress()
-
isDeflate
public boolean isDeflate()
-
isGzip
public boolean isGzip()
-
httpWriter
public Writer<?,?> httpWriter(HttpWriter http)
- Specified by:
httpWriter
in classHttpPart
-
writeHttp
public Writer<?,?> writeHttp(Output<?> output, HttpWriter http)
-
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
.
-
chunked
public static TransferCoding chunked()
-
compress
public static TransferCoding compress()
-
deflate
public static TransferCoding deflate()
-
gzip
public static TransferCoding gzip()
-
create
public static TransferCoding create(String name, HashTrieMap<String,String> params)
-
create
public static TransferCoding create(String name)
-
parse
public static TransferCoding parse(String string)
-
-