public class FreeMarkerResource extends ProtectedResource implements net.idea.restnet.i.freemarker.IFreeMarkerSupport
Modifier and Type | Field and Description |
---|---|
protected net.idea.restnet.i.freemarker.IFreeMarkerSupport |
fmSupport |
Constructor and Description |
---|
FreeMarkerResource() |
Modifier and Type | Method and Description |
---|---|
void |
configureTemplateMap(Map<String,Object> map,
org.restlet.Request request,
net.idea.restnet.i.freemarker.IFreeMarkerApplication app) |
protected org.restlet.representation.Representation |
get(org.restlet.representation.Variant variant) |
protected org.restlet.representation.Representation |
getHTMLByTemplate(org.restlet.representation.Variant variant) |
protected org.restlet.representation.Representation |
getRepresentation(org.restlet.representation.Variant variant) |
protected org.restlet.data.Reference |
getSearchReference(org.restlet.Context context,
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) |
cleanedResourceRef, doInit, doRelease, getAgent, getPassword, getResourceRef, getToken, getTokenFromCookies, getUserName, setCacheHeaders, setFrameOptions, setTokenCookies, useSecureCookie
delete, delete, describeVariants, doConditionalHandle, doHandle, doHandle, doNegotiatedHandle, get, getInfo, getInfo, getOnContinue, getOnSent, getPreferredVariant, getVariants, handle, head, head, isAnnotated, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setChallengeRequests, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnContinue, setOnSent, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
doCatch, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMetadataService, getMethod, getOriginalRef, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestEntity, getResponse, getResponseAttributes, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, release
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
htmlbyTemplate
- public String getTemplateName()
getTemplateName
in interface net.idea.restnet.i.freemarker.IFreeMarkerSupport
protected org.restlet.data.Reference getSearchReference(org.restlet.Context context, org.restlet.Request request, org.restlet.Response response) throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
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.representation.Variant variant) throws org.restlet.resource.ResourceException
variant
- org.restlet.resource.ResourceException
protected org.restlet.representation.Representation toRepresentation(Map<String,Object> map, String templateName, org.restlet.data.MediaType mediaType)
map
- templateName
- mediaType
- protected org.restlet.representation.Representation get(org.restlet.representation.Variant variant) throws org.restlet.resource.ResourceException
get
in class ProtectedResource
org.restlet.resource.ResourceException
protected org.restlet.representation.Representation getRepresentation(org.restlet.representation.Variant variant) throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.