net.spy.jwebkit
Class AjaxInPlaceEditServlet.Handler
java.lang.Object
net.spy.SpyObject
net.spy.jwebkit.AjaxInPlaceEditServlet.Handler
- Enclosing class:
- AjaxInPlaceEditServlet
public abstract static class AjaxInPlaceEditServlet.Handler
- extends net.spy.SpyObject
Individual request 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 |
AjaxInPlaceEditServlet.Handler
public AjaxInPlaceEditServlet.Handler()
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 requestrequest - 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 objectn - the name of the parameterminLength - 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 objectn - the name of the parameter
- Returns:
- the integer value of this parameter
Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.