- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.ContentCoding
-
- All Implemented Interfaces:
swim.codec.Debug
public final class ContentCoding extends HttpPart implements swim.codec.Debug
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentCodingcompress()static ContentCodingcreate(String name)static ContentCodingcreate(String name, float weight)<T> swim.codec.Output<T>debug(swim.codec.Output<T> output)static ContentCodingdeflate()booleanequals(Object other)static ContentCodinggzip()inthashCode()swim.codec.Writer<?,?>httpWriter(HttpWriter http)static ContentCodingidentity()booleanisCompress()booleanisDeflate()booleanisGzip()booleanisIdentity()booleanisStar()Stringname()static ContentCodingparse(String string)static ContentCodingstar()StringtoString()floatweight()ContentCodingweight(float weight)swim.codec.Writer<?,?>writeHttp(swim.codec.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 swim.codec.Writer<?,?> httpWriter(HttpWriter http)
- Specified by:
httpWriterin classHttpPart
-
writeHttp
public swim.codec.Writer<?,?> writeHttp(swim.codec.Output<?> output, HttpWriter http)
-
debug
public <T> swim.codec.Output<T> debug(swim.codec.Output<T> output)
- Specified by:
debugin interfaceswim.codec.Debug
-
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)
-
-