|
||||||||||
| 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
org.apache.commons.jelly.servlet.JellyServlet
public class JellyServlet
Servlet for handling display of Jelly-fied XML files. Modelled after VelocityServlet.
| Field Summary | |
|---|---|
static String |
REQUEST
The HTTP request object context key. |
static String |
RESPONSE
The HTTP response object context key. |
| Constructor Summary | |
|---|---|
JellyServlet()
|
|
| Method Summary | |
|---|---|
protected JellyContext |
createContext(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
doRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handles all requests |
protected void |
error(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception cause)
Invoked when there is an error thrown in any part of doRequest() processing. |
protected URL |
getScript(javax.servlet.http.HttpServletRequest req)
Either use the query parameter "script", or the URI itself to denote the script to run. |
protected void |
runScript(URL script,
JellyContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, 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 REQUEST
public static final String RESPONSE
| Constructor Detail |
|---|
public JellyServlet()
| Method Detail |
|---|
protected 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.ServletException
IOException
protected 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.ServletException
IOException
protected void doRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
req - HttpServletRequest object containing client requestres - HttpServletResponse object for the response
javax.servlet.ServletException
IOException
protected JellyContext createContext(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
req - res -
org.apache.velocity.servlet.VelocityServlet#createContext
protected URL getScript(javax.servlet.http.HttpServletRequest req)
throws MalformedURLException
Either use the query parameter "script", or the URI itself to denote the script to run.
Example: script=index.jelly or http://localhost:8080/foo/index.jelly.
req -
MalformedURLExceptionorg.apache.velocity.servlet.VelocityServlet#getTemplate
protected void runScript(URL script,
JellyContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
UnsupportedEncodingException,
JellyException
script - context - req - res -
IOException
UnsupportedEncodingException
JellyExceptionorg.apache.velocity.servlet.VelocityServlet#mergeTemplate
protected void error(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception cause)
throws javax.servlet.ServletException,
IOException
request - original HttpServletRequest from servlet container.response - HttpServletResponse object from servlet container.cause - Exception that was thrown by some other part of process.
javax.servlet.ServletException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||