- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.ContentCoding
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentCoding
compress()
static ContentCoding
create(String name)
static ContentCoding
create(String name, float weight)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.static ContentCoding
deflate()
boolean
equals(Object other)
static ContentCoding
gzip()
int
hashCode()
Writer<?,?>
httpWriter(HttpWriter http)
static ContentCoding
identity()
boolean
isCompress()
boolean
isDeflate()
boolean
isGzip()
boolean
isIdentity()
boolean
isStar()
String
name()
static ContentCoding
parse(String string)
static ContentCoding
star()
String
toString()
float
weight()
ContentCoding
weight(float weight)
Writer<?,?>
writeHttp(Output<?> output, HttpWriter http)
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
name
public String name()
-
weight
public float weight()
-
weight
public ContentCoding weight(float weight)
-
isStar
public boolean isStar()
-
isIdentity
public boolean isIdentity()
-
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
.
-
star
public static ContentCoding star()
-
identity
public static ContentCoding identity()
-
compress
public static ContentCoding compress()
-
deflate
public static ContentCoding deflate()
-
gzip
public static ContentCoding gzip()
-
create
public static ContentCoding create(String name, float weight)
-
create
public static ContentCoding create(String name)
-
parse
public static ContentCoding parse(String string)
-
-