- 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 ContentCodingcompress()static ContentCodingcreate(String name)static ContentCodingcreate(String name, float weight)<T> Output<T>debug(Output<T> output)Writes a developer readable, debug-formatted string representation of this object tooutput.static ContentCodingdeflate()booleanequals(Object other)static ContentCodinggzip()inthashCode()Writer<?,?>httpWriter(HttpWriter http)static ContentCodingidentity()booleanisCompress()booleanisDeflate()booleanisGzip()booleanisIdentity()booleanisStar()Stringname()static ContentCodingparse(String string)static ContentCodingstar()StringtoString()floatweight()ContentCodingweight(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:
httpWriterin classHttpPart
-
writeHttp
public Writer<?,?> writeHttp(Output<?> output, HttpWriter http)
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:DebugWrites 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)
-
-