|
|||||||||
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
com.getsnappy.snappyj.ServletForwarder
public class ServletForwarder
This class is used to forward all web 2.0 requests to the
appropriate destination. If it is not configured in your
web.xml file, your application server will most likely get
a 404 on requests made through the web 2.0 loading methods.
Below I've included sample entries that need to be nested
directly underneath the web-app tag.
Web20Environment
,
Serialized FormNested Class Summary | |
---|---|
static class |
ServletForwarder.Parameters
|
Constructor Summary | |
---|---|
ServletForwarder()
This type of ServletForwarder will be use the request passed to doGet or doPost, and load the className from the parameter applicationClassName |
|
ServletForwarder(java.lang.Class httpServlet)
Define the ApplicationInstance or HttpServlet to forward. |
|
ServletForwarder(java.lang.String className)
Define the className to forward. |
Method Summary | |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Call doGet in the underlying servlet defined by the constructor or the one specified by the applicationClassName request parameter if the default contructor was used. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Call doPost in the underlying servlet defined by the constructor or the one specified by the applicationClassName request parameter if the default contructor was used. |
boolean |
outputHiddenIFrame(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
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 |
Constructor Detail |
---|
public ServletForwarder()
public ServletForwarder(java.lang.String className)
className
- public ServletForwarder(java.lang.Class httpServlet)
className
- Method Detail |
---|
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
java.io.IOException
javax.servlet.ServletException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
java.io.IOException
javax.servlet.ServletException
public boolean outputHiddenIFrame(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |