- 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()
void
debug(Output<?> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.static ContentCoding
deflate()
boolean
equals(Object other)
static ContentCoding
from(String name)
static ContentCoding
from(String name, float weight)
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
-
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()
-
from
public static ContentCoding from(String name, float weight)
-
from
public static ContentCoding from(String name)
-
parse
public static ContentCoding parse(String string)
-
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 void debug(Output<?> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
-