com.dyuproject.web.rest.service
Class AbstractResource

java.lang.Object
  extended by com.dyuproject.web.rest.service.AbstractResource
All Implemented Interfaces:
Resource

public abstract class AbstractResource
extends Object
implements Resource

Base resource to handle requests

Author:
David Yu

Field Summary
 
Fields inherited from interface com.dyuproject.web.rest.service.Resource
DELETE, GET, POST, PUT
 
Constructor Summary
AbstractResource()
           
 
Method Summary
protected  void destroy()
           
 void destroy(WebContext webContext)
           
 WebContext getWebContext()
           
protected abstract  void init()
           
 void init(WebContext webContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.dyuproject.web.rest.service.Resource
getHttpMethod, handle
 

Constructor Detail

AbstractResource

public AbstractResource()
Method Detail

init

public final void init(WebContext webContext)
Specified by:
init in interface Resource

destroy

public final void destroy(WebContext webContext)
Specified by:
destroy in interface Resource

init

protected abstract void init()

destroy

protected void destroy()

getWebContext

public WebContext getWebContext()


Copyright © 2013. All Rights Reserved.