public abstract class Website extends java.lang.Object implements HandlerAdapter, ETag, LastModified
| Constructor and Description |
|---|
Website() |
| Modifier and Type | Method and Description |
|---|---|
abstract ResponseBody |
getBody(HttpRequest request,
HttpResponse response) |
java.lang.String |
getETag(HttpRequest request)
Get the
ETag requesting the specified resource. |
RequestHandler |
getHandler(HttpRequest request)
Get the handler that handles the current request.
|
long |
getLastModified(HttpRequest request)
The return value will be sent to the HTTP client as
Last-Modified header, and compared with If-Modified-Since headers that the client sends back. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinterceptpublic java.lang.String getETag(HttpRequest request) throws java.lang.Throwable
ETagETag requesting the specified resource.
Can simply return null if there's no support.
public long getLastModified(HttpRequest request) throws java.lang.Throwable
LastModifiedLast-Modified header, and compared with If-Modified-Since headers that the client sends back. The content will only get regenerated if there has been a
modification.getLastModified in interface LastModifiedrequest - current requestjava.lang.Throwablepublic RequestHandler getHandler(HttpRequest request)
HandlerAdaptergetHandler in interface HandlerAdapterrequest - current request.public abstract ResponseBody getBody(HttpRequest request, HttpResponse response) throws java.io.IOException
java.io.IOException