|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
groovy.servlet.AbstractHttpServlet
A common ground dealing with the http servlet API wrinkles.
Field Summary | |
static String |
CONTENT_TYPE_TEXT_HTML
Content type of the HTTP response. |
static String |
INC_PATH_INFO
Servlet API include key name: path_info |
static String |
INC_SERVLET_PATH
Servlet API include key name: servlet_path |
protected javax.servlet.ServletContext |
servletContext
Servlet (or the web application) context. |
Constructor Summary | |
AbstractHttpServlet()
Initializes all fields. |
Method Summary | |
URLConnection |
getResourceConnection(String name)
Interface method for ResourceContainer. |
protected String |
getScriptUri(javax.servlet.http.HttpServletRequest request)
Returns the include-aware uri of the script or template file. |
protected File |
getScriptUriAsFile(javax.servlet.http.HttpServletRequest request)
Parses the http request for the real script or template source file. |
void |
init(javax.servlet.ServletConfig config)
Overrides the generic init method. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CONTENT_TYPE_TEXT_HTML
public static final String INC_PATH_INFO
public static final String INC_SERVLET_PATH
protected javax.servlet.ServletContext servletContext
Constructor Detail |
public AbstractHttpServlet()
Method Detail |
public URLConnection getResourceConnection(String name) throws ResourceException
getResourceConnection
in interface ResourceConnector
ResourceException
protected String getScriptUri(javax.servlet.http.HttpServletRequest request)
request
- the http request to analyze
protected File getScriptUriAsFile(javax.servlet.http.HttpServletRequest request)
request
- the http request to analyze
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
http://jira.codehaus.org/browse/GROOVY-861
for details.
init
in interface javax.servlet.Servlet
config
- the servlet coniguration provided by the container
javax.servlet.ServletException
- if init() method defined in super class
javax.servlet.GenericServlet throws it
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |