public class FreeMarkerStatusService
extends org.restlet.service.StatusService
implements net.idea.restnet.i.freemarker.IFreeMarkerSupport
Modifier and Type | Class and Description |
---|---|
static class |
FreeMarkerStatusService.REPORT_LEVEL |
Modifier and Type | Field and Description |
---|---|
protected FreeMarkerApplication |
app |
protected net.idea.restnet.i.freemarker.IFreeMarkerSupport |
freeMarkerSupport |
protected Logger |
logger |
static String |
report_level |
protected FreeMarkerStatusService.REPORT_LEVEL |
reportLevel |
Constructor and Description |
---|
FreeMarkerStatusService(FreeMarkerApplication app,
FreeMarkerStatusService.REPORT_LEVEL level) |
Modifier and Type | Method and Description |
---|---|
void |
configureTemplateMap(Map<String,Object> map,
org.restlet.Request request,
net.idea.restnet.i.freemarker.IFreeMarkerApplication app) |
protected void |
finalize() |
protected org.restlet.representation.Representation |
getHTMLByTemplate(org.restlet.data.Status status,
String errName,
String errDescription,
String details,
org.restlet.Request request) |
org.restlet.representation.Representation |
getRepresentation(org.restlet.data.Status status,
org.restlet.Request request,
org.restlet.Response response) |
org.restlet.data.Status |
getStatus(Throwable throwable,
org.restlet.Request request,
org.restlet.Response response) |
String |
getTemplateName() |
boolean |
isHtmlbyTemplate() |
void |
setHtmlbyTemplate(boolean htmlbyTemplate) |
protected org.restlet.representation.Representation |
toRepresentation(Map<String,Object> map,
String templateName,
org.restlet.data.MediaType mediaType) |
createInboundFilter, getContactEmail, getHomeRef, getStatus, isOverwrite, isOverwriting, setContactEmail, setHomeRef, setOverwrite, setOverwriting
protected transient Logger logger
protected net.idea.restnet.i.freemarker.IFreeMarkerSupport freeMarkerSupport
protected FreeMarkerApplication app
protected FreeMarkerStatusService.REPORT_LEVEL reportLevel
public static final String report_level
public FreeMarkerStatusService(FreeMarkerApplication app, FreeMarkerStatusService.REPORT_LEVEL level)
public org.restlet.data.Status getStatus(Throwable throwable, org.restlet.Request request, org.restlet.Response response)
getStatus
in class org.restlet.service.StatusService
public String getTemplateName()
getTemplateName
in interface net.idea.restnet.i.freemarker.IFreeMarkerSupport
public boolean isHtmlbyTemplate()
isHtmlbyTemplate
in interface net.idea.restnet.i.freemarker.IFreeMarkerSupport
public void setHtmlbyTemplate(boolean htmlbyTemplate)
setHtmlbyTemplate
in interface net.idea.restnet.i.freemarker.IFreeMarkerSupport
public void configureTemplateMap(Map<String,Object> map, org.restlet.Request request, net.idea.restnet.i.freemarker.IFreeMarkerApplication app)
configureTemplateMap
in interface net.idea.restnet.i.freemarker.IFreeMarkerSupport
protected org.restlet.representation.Representation getHTMLByTemplate(org.restlet.data.Status status, String errName, String errDescription, String details, org.restlet.Request request) throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
protected org.restlet.representation.Representation toRepresentation(Map<String,Object> map, String templateName, org.restlet.data.MediaType mediaType)
public org.restlet.representation.Representation getRepresentation(org.restlet.data.Status status, org.restlet.Request request, org.restlet.Response response)
getRepresentation
in class org.restlet.service.StatusService
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.