|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.faunos.util.net.http.CannedResponses
public class CannedResponses
A collection of canned HTTP responses. The buffer fields are read-only.
ImmutableBuffer
Constructor Summary | |
---|---|
protected |
CannedResponses(String version)
|
Method Summary | |
---|---|
static ImmutableBuffer |
createBuffer(String content)
|
Map<String,ImmutableBuffer> |
getNameMap()
|
Map<String,ImmutableBuffer> |
getValueMap()
|
static CannedResponses |
newHttp10()
|
static CannedResponses |
newHttp11()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final ImmutableBuffer okay
public final ImmutableBuffer notImplemented
public final ImmutableBuffer notFound
public final ImmutableBuffer badRequest
public final ImmutableBuffer requestUriTooLong
public final ImmutableBuffer methodNotAllowed
public final ImmutableBuffer forbidden
public final ImmutableBuffer serverError
public final ImmutableBuffer allowGetHead
public final ImmutableBuffer connectionClose
public final ImmutableBuffer contentType
public final ImmutableBuffer contentLength
public final ImmutableBuffer allow
public final ImmutableBuffer server
public final ImmutableBuffer contentLocation
public final ImmutableBuffer contentBase
public final ImmutableBuffer location
public final ImmutableBuffer textHtml
public final ImmutableBuffer textCss
public final ImmutableBuffer textXml
public final ImmutableBuffer plainText
public final ImmutableBuffer appOctet
public final ImmutableBuffer imagePng
public final ImmutableBuffer imageGif
public final ImmutableBuffer imageJpeg
public final ImmutableBuffer imageIco
public final ImmutableBuffer emptyLine
Constructor Detail |
---|
protected CannedResponses(String version)
Method Detail |
---|
public final Map<String,ImmutableBuffer> getNameMap()
public final Map<String,ImmutableBuffer> getValueMap()
public static CannedResponses newHttp11()
public static CannedResponses newHttp10()
public static ImmutableBuffer createBuffer(String content)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |