Package com.saperion.rs.common
Class AbstractFreemarkerResource
- java.lang.Object
-
- com.saperion.rs.RestService
-
- com.saperion.rs.common.AbstractFreemarkerResource
-
- Direct Known Subclasses:
DefinitionInfoResource,RepositoryResource,WelcomeResource
public abstract class AbstractFreemarkerResource extends RestService
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanautoRefreshstatic java.lang.StringHTML_ENCODINGprotected intrefreshTimeoutstatic java.lang.StringUTF8_ENCODINGstatic FreemarkerUtilUTIL-
Fields inherited from class com.saperion.rs.RestService
LOGGER
-
-
Constructor Summary
Constructors Constructor Description AbstractFreemarkerResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.ws.rs.core.Response.ResponseBuildercreateResponseBuilder(java.lang.String template, java.util.Map<java.lang.String,java.lang.Object> parameters, java.lang.String encoding, boolean reload)protected javax.ws.rs.core.ResponsereturnAsHtml(java.lang.String template, java.util.Map<java.lang.String,java.lang.Object> parameters, javax.ws.rs.core.UriInfo info, boolean reload)protected javax.ws.rs.core.ResponsereturnGeneric(java.lang.String template, java.util.Map<java.lang.String,java.lang.Object> parameters, java.lang.String encoding, boolean reload)protected javax.ws.rs.core.ResponsereturnGeneric(java.lang.String template, javax.ws.rs.core.MediaType type, java.util.Map<java.lang.String,java.lang.Object> parameters, javax.ws.rs.core.UriInfo info, boolean reload)-
Methods inherited from class com.saperion.rs.RestService
checkConnection, getConnection
-
-
-
-
Field Detail
-
UTF8_ENCODING
public static final java.lang.String UTF8_ENCODING
- See Also:
- Constant Field Values
-
HTML_ENCODING
public static final java.lang.String HTML_ENCODING
- See Also:
- Constant Field Values
-
UTIL
public static final FreemarkerUtil UTIL
-
autoRefresh
protected boolean autoRefresh
-
refreshTimeout
protected int refreshTimeout
-
-
Method Detail
-
createResponseBuilder
protected javax.ws.rs.core.Response.ResponseBuilder createResponseBuilder(java.lang.String template, java.util.Map<java.lang.String,java.lang.Object> parameters, java.lang.String encoding, boolean reload) throws java.lang.Exception- Throws:
java.lang.Exception
-
returnGeneric
protected javax.ws.rs.core.Response returnGeneric(java.lang.String template, javax.ws.rs.core.MediaType type, java.util.Map<java.lang.String,java.lang.Object> parameters, javax.ws.rs.core.UriInfo info, boolean reload)
-
returnGeneric
protected javax.ws.rs.core.Response returnGeneric(java.lang.String template, java.util.Map<java.lang.String,java.lang.Object> parameters, java.lang.String encoding, boolean reload)
-
returnAsHtml
protected javax.ws.rs.core.Response returnAsHtml(java.lang.String template, java.util.Map<java.lang.String,java.lang.Object> parameters, javax.ws.rs.core.UriInfo info, boolean reload)
-
-