public class TinyServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE |
static String |
DEFAULT_CONTENT_TYPE |
static String |
DEFAULT_OUTPUT_ENCODING |
static String |
LAYOUT_EXT_NAME |
static String |
MACRO_LIBRARY_EXT_NAME |
static String |
REQUEST |
static String |
RESOURCE_SRC |
static String |
RESPONSE |
static String |
TEMPLATE_EXT_NAME |
| Constructor and Description |
|---|
TinyServlet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkResource(String viewPath) |
protected String |
chooseCharacterEncoding(javax.servlet.http.HttpServletRequest request) |
protected TemplateContext |
createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
error(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception cause) |
protected String |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
TemplateContext ctx) |
protected String |
handleRequest(TemplateContext ctx) |
void |
init(javax.servlet.ServletConfig config) |
protected void |
initTiny(javax.servlet.ServletConfig config) |
protected void |
mergeTemplate(String path,
TemplateContext context,
javax.servlet.http.HttpServletResponse response) |
protected void |
requestCleanup(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
TemplateContext context) |
protected void |
setContentType(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String TEMPLATE_EXT_NAME
public static final String LAYOUT_EXT_NAME
public static final String MACRO_LIBRARY_EXT_NAME
public static final String RESOURCE_SRC
public static final String REQUEST
public static final String RESPONSE
public static final String CONTENT_TYPE
public static final String DEFAULT_CONTENT_TYPE
public static final String DEFAULT_OUTPUT_ENCODING
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void initTiny(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected void requestCleanup(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
TemplateContext context)
protected void mergeTemplate(String path, TemplateContext context, javax.servlet.http.HttpServletResponse response) throws TemplateException, IOException
TemplateExceptionIOExceptionprotected void setContentType(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
protected String chooseCharacterEncoding(javax.servlet.http.HttpServletRequest request)
protected TemplateContext createContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected String handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, TemplateContext ctx) throws Exception
Exceptionprotected String handleRequest(TemplateContext ctx) throws Exception
Exceptionprotected void error(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception cause)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionCopyright © 2006–2018 TinyGroup. All rights reserved.