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, service
public 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.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void initTiny(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
protected 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
TemplateException
IOException
protected 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
Exception
protected String handleRequest(TemplateContext ctx) throws Exception
Exception
protected void error(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Exception cause) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
Copyright © 2006–2018 TinyGroup. All rights reserved.