| biz.hammurapi.web.StylingServlet biz.hammurapi.web.DispatchingServlet
All known Subclasses: biz.hammurapi.web.ActionServlet, biz.hammurapi.web.SelfDispatchingServlet,
DispatchingServlet | abstract public class DispatchingServlet extends StylingServlet (Code) | | Dispatching servlet dispatches requests to action methods. Action method is any method which takes 3 parameters:
HttpServletRequest, HttpServletResponse, DispatchingServlet or two parameters HttpServletRequest and HttpServletResponse.
Return value of action method is processed in the following way:
a) If it is instance of Forward then forward is performed
b) If it is instance of String then it is gets written to response output stream.
c) Otherwise it is XML-ized and then styled.
|
Method Summary | |
protected void | doGet(HttpServletRequest request, HttpServletResponse response) Handles the HTTP GET method. | protected void | doPost(HttpServletRequest request, HttpServletResponse response) Handles the HTTP POST method. | public String | executeAction(String pathInfo, Context ctx) | abstract protected Object | getActionInstance(String path) Extracts instance name from the path and returns instance for the path. | abstract protected String | getActionName(String path) | protected CompositeDomSerializer | getDomSerializer() Override this method to return custom serializer if needed. | public void | init(ServletConfig config) | protected void | processRequest(HttpServletRequest request, HttpServletResponse response) | public void | style(Object ret, String styleName, HttpServletRequest request, HttpServletResponse response) | public void | style(Object ret, String styleName, Context context, Result result) | abstract protected int | styleSeparatorPosition() | protected void | verifyMethod(Method method) Subclasses can override this method and throw an exception of methods
which are not supposed to be dispatched to. |
getDomSerializer | protected CompositeDomSerializer getDomSerializer()(Code) | | Override this method to return custom serializer if needed.
DomSerializer |
styleSeparatorPosition | abstract protected int styleSeparatorPosition()(Code) | | Position of "/" in the servlet path info which separates action name from style info. |
|
|