public class AdminFreemarkerTemplateProvider
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<com.sun.jersey.api.view.Viewable>
| Constructor and Description |
|---|
AdminFreemarkerTemplateProvider(AdminExplorerManager adminExplorerManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
commonConstruct() |
long |
getSize(com.sun.jersey.api.view.Viewable t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(com.sun.jersey.api.view.Viewable viewable,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream out)
Write the HTML by invoking the FTL template
Variables accessibile to the template
it - The 'model' provided by the controller
Explorer - IExplorerModule reference
Explorers - Map of all explorer modules
Global - Global variables from the ExploreModule manager
Request - The HTTPRequestHandler
Instance - Information about the running instance
Headers - HTTP headers
Parameters - HTTP parameters
|
@Inject public AdminFreemarkerTemplateProvider(AdminExplorerManager adminExplorerManager)
@PostConstruct public void commonConstruct()
public long getSize(com.sun.jersey.api.view.Viewable t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<com.sun.jersey.api.view.Viewable>public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<com.sun.jersey.api.view.Viewable>public void writeTo(com.sun.jersey.api.view.Viewable viewable,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream out)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<com.sun.jersey.api.view.Viewable>java.io.IOExceptionjavax.ws.rs.WebApplicationException