This project has retired. For details please refer to its Attic page.
TilesDispatchServlet (Tiles 2 2.0.7 API)

org.apache.tiles.web.util
Class TilesDispatchServlet

Package class diagram package TilesDispatchServlet
java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.tiles.web.util.TilesDispatchServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class TilesDispatchServlet
extends HttpServlet

Tiles dispatching servlet. Used to invoke a definition directly.

See Also:
Serialized Form

Constructor Summary
TilesDispatchServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest req, HttpServletResponse res)
          
protected  void doPost(HttpServletRequest req, HttpServletResponse res)
          
protected  String getDefinitionName(HttpServletRequest request)
          Returns the called definition name for the given request.
 void init()
          
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TilesDispatchServlet

public TilesDispatchServlet()
Method Detail

init

public void init()
          throws ServletException

Overrides:
init in class GenericServlet
Throws:
ServletException

doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse res)
              throws ServletException,
                     IOException

Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

getDefinitionName

protected String getDefinitionName(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(HttpServletRequest req,
                      HttpServletResponse res)
               throws ServletException,
                      IOException

Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.