Package org.apache.tiles.web.util
Class TilesDispatchServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.apache.tiles.web.util.TilesDispatchServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class TilesDispatchServlet extends javax.servlet.http.HttpServletTiles dispatching servlet. Used to invoke a definition directly.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTAINER_KEY_INIT_PARAMETERInit parameter to define the key of the container to use.
-
Constructor Summary
Constructors Constructor Description TilesDispatchServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)protected voiddoPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)protected StringgetDefinitionName(javax.servlet.http.HttpServletRequest request)Returns the called definition name for the given request.voidinit()-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
CONTAINER_KEY_INIT_PARAMETER
public static final String CONTAINER_KEY_INIT_PARAMETER
Init parameter to define the key of the container to use.- Since:
- 2.1.2
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
getDefinitionName
protected String getDefinitionName(javax.servlet.http.HttpServletRequest request)
Returns the called definition name for the given request.- Parameters:
request- The request to parse.- Returns:
- The definition name to render.
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
-