public interface TemplateHandlerDelegate
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<String,Object> |
getDataForRequest(org.eclipse.jetty.server.Request baseRequest) |
String |
getTemplateForRequest(org.eclipse.jetty.server.Request baseRequest) |
URL |
getTemplateGroup() |
URL getTemplateGroup()
String getTemplateForRequest(org.eclipse.jetty.server.Request baseRequest)
baseRequest
- Request that will be served by this handler. This gives the handler the
opportunity to return a different template based on the data in the request.@Nullable com.google.common.collect.ImmutableMap<String,Object> getDataForRequest(org.eclipse.jetty.server.Request baseRequest) throws IOException
baseRequest
- Request that will be served by this handler.getTemplateForRequest(Request)
. If
the request is malformed, then return null
in this method to indicate an error.IOException