com.dyuproject.web.rest.mvc.controller
Class CRUDController

java.lang.Object
  extended by com.dyuproject.web.rest.mvc.AbstractController
      extended by com.dyuproject.web.rest.mvc.controller.VerbMappedController
          extended by com.dyuproject.web.rest.mvc.controller.CRUDController
All Implemented Interfaces:
Controller

Deprecated.

@Deprecated
public abstract class CRUDController
extends VerbMappedController

Helper controller for CRUD restful requests

Author:
David Yu
Date created:
May 22, 2008

Field Summary
static String DEFAULT_METHOD_PARAM
          Deprecated.  
 
Fields inherited from interface com.dyuproject.web.rest.mvc.Controller
DELETE, GET, POST, PUT
 
Constructor Summary
CRUDController()
          Deprecated.  
 
Method Summary
protected abstract  void create(HttpServletRequest request, HttpServletResponse response, String mime)
          Deprecated.  
protected abstract  void delete(HttpServletRequest request, HttpServletResponse response, String mime, String id)
          Deprecated.  
protected  void handleDefault(String id, String mime, HttpServletRequest request, HttpServletResponse response)
          Deprecated.  
protected  void init()
          Deprecated.  
 boolean isAllowMethodOverride()
          Deprecated.  
protected abstract  void read(HttpServletRequest request, HttpServletResponse response, String mime)
          Deprecated.  
protected abstract  void read(HttpServletRequest request, HttpServletResponse response, String mime, String id)
          Deprecated.  
 void setAllowMethodOverride(boolean allowMethodOverride)
          Deprecated.  
 void setMethodParam(String methodParam)
          Deprecated.  
protected abstract  void update(HttpServletRequest request, HttpServletResponse response, String mime, String id)
          Deprecated.  
 
Methods inherited from class com.dyuproject.web.rest.mvc.controller.VerbMappedController
handle
 
Methods inherited from class com.dyuproject.web.rest.mvc.AbstractController
destroy, destroy, getIdentifier, getIdentifierAttribute, getInterceptor, getVerbOrId, getWebContext, init, isInitialized, setIdentifier, setIdentifierAttribute, setInterceptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_METHOD_PARAM

public static final String DEFAULT_METHOD_PARAM
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

CRUDController

public CRUDController()
Deprecated. 
Method Detail

init

protected void init()
Deprecated. 
Overrides:
init in class VerbMappedController

setAllowMethodOverride

public void setAllowMethodOverride(boolean allowMethodOverride)
Deprecated. 

isAllowMethodOverride

public boolean isAllowMethodOverride()
Deprecated. 

setMethodParam

public void setMethodParam(String methodParam)
Deprecated. 

handleDefault

protected void handleDefault(String id,
                             String mime,
                             HttpServletRequest request,
                             HttpServletResponse response)
                      throws IOException,
                             ServletException
Deprecated. 
Specified by:
handleDefault in class VerbMappedController
Throws:
IOException
ServletException

create

protected abstract void create(HttpServletRequest request,
                               HttpServletResponse response,
                               String mime)
                        throws IOException,
                               ServletException
Deprecated. 
Throws:
IOException
ServletException

read

protected abstract void read(HttpServletRequest request,
                             HttpServletResponse response,
                             String mime)
                      throws IOException,
                             ServletException
Deprecated. 
Throws:
IOException
ServletException

read

protected abstract void read(HttpServletRequest request,
                             HttpServletResponse response,
                             String mime,
                             String id)
                      throws IOException,
                             ServletException
Deprecated. 
Throws:
IOException
ServletException

update

protected abstract void update(HttpServletRequest request,
                               HttpServletResponse response,
                               String mime,
                               String id)
                        throws IOException,
                               ServletException
Deprecated. 
Throws:
IOException
ServletException

delete

protected abstract void delete(HttpServletRequest request,
                               HttpServletResponse response,
                               String mime,
                               String id)
                        throws IOException,
                               ServletException
Deprecated. 
Throws:
IOException
ServletException


Copyright © 2008-2013. All Rights Reserved.