net.spy.jwebkit
Class AjaxInPlaceEditServlet.Handler

java.lang.Object
  extended by net.spy.SpyObject
      extended by net.spy.jwebkit.AjaxInPlaceEditServlet.Handler
Enclosing class:
AjaxInPlaceEditServlet

public abstract static class AjaxInPlaceEditServlet.Handler
extends net.spy.SpyObject

Individual request handler.


Constructor Summary
AjaxInPlaceEditServlet.Handler()
           
 
Method Summary
protected  int getIntParam(javax.servlet.http.HttpServletRequest request, java.lang.String n)
          Convenience method for getting an integer parameter.
protected  java.lang.String getStringParam(javax.servlet.http.HttpServletRequest request, java.lang.String n, int minLength)
          Convenience method for getting a somewhat validated string parameter.
abstract  java.lang.Object handle(java.security.Principal principal, javax.servlet.http.HttpServletRequest request)
          Handle the request.
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxInPlaceEditServlet.Handler

public AjaxInPlaceEditServlet.Handler()
Method Detail

handle

public abstract java.lang.Object handle(java.security.Principal principal,
                                        javax.servlet.http.HttpServletRequest request)
                                 throws java.lang.Exception
Handle the request.

Parameters:
principal - the principal that made the request
request - the request
Returns:
the value to be sent back to the client (SAXAble or String)
Throws:
java.lang.Exception - if there's a problem handling this request

getStringParam

protected java.lang.String getStringParam(javax.servlet.http.HttpServletRequest request,
                                          java.lang.String n,
                                          int minLength)
Convenience method for getting a somewhat validated string parameter.

Parameters:
request - request object
n - the name of the parameter
minLength - minimum length required for this parameter.
Returns:
the string

getIntParam

protected int getIntParam(javax.servlet.http.HttpServletRequest request,
                          java.lang.String n)
Convenience method for getting an integer parameter.

Parameters:
request - the request object
n - the name of the parameter
Returns:
the integer value of this parameter


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.