public abstract class Result extends FastRuntimeException
Modifier and Type | Method and Description |
---|---|
abstract void |
apply(Http.Request request,
Http.Response response) |
protected String |
getEncoding()
The encoding that should be used when writing this response to the client
|
protected void |
setContentTypeIfNotSet(Http.Response response,
String contentType) |
fillInStackTrace
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Result()
public Result(String description)
public abstract void apply(Http.Request request, Http.Response response)
protected void setContentTypeIfNotSet(Http.Response response, String contentType)
protected String getEncoding()
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly