nu.staldal.lsp.framework
Class RestfulDispatcherServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by nu.staldal.lsp.framework.DispatcherServlet
              extended by nu.staldal.lsp.framework.RestfulDispatcherServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class RestfulDispatcherServlet
extends DispatcherServlet

Dispatcher Servlet for LSP framework with RESTful dispatching. Will be available in ServletContext under the key nu.staldal.lsp.framework.DispatcherServlet.

Author:
Mikael Ståldal
See Also:
Serialized Form

Field Summary
static java.lang.String EXTRA_ARGS
           
 
Constructor Summary
RestfulDispatcherServlet()
           
 
Method Summary
 java.lang.String dispatchService(javax.servlet.http.HttpServletRequest request)
          Strip leading '/' and extension, apply defaultService.
protected  boolean useTemplateIfServiceIsNotFound()
           
 
Methods inherited from class nu.staldal.lsp.framework.DispatcherServlet
destroy, doDelete, doGet, doPost, doPut, executeService, init, lookupService
 
Methods inherited from class javax.servlet.http.HttpServlet
doHead, doOptions, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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
 

Field Detail

EXTRA_ARGS

public static final java.lang.String EXTRA_ARGS
See Also:
Constant Field Values
Constructor Detail

RestfulDispatcherServlet

public RestfulDispatcherServlet()
Method Detail

useTemplateIfServiceIsNotFound

protected boolean useTemplateIfServiceIsNotFound()
Overrides:
useTemplateIfServiceIsNotFound in class DispatcherServlet

dispatchService

public java.lang.String dispatchService(javax.servlet.http.HttpServletRequest request)
Description copied from class: DispatcherServlet
Strip leading '/' and extension, apply defaultService.

Overrides:
dispatchService in class DispatcherServlet
Parameters:
request - the HtthServletRequest
Returns:
never return null