com.dyuproject.web.rest.service
Interface Resource

All Known Implementing Classes:
AbstractResource, AnnotatedMethodResource

public interface Resource

The REST resource.

Author:
David Yu

Field Summary
static String DELETE
           
static String GET
           
static String POST
           
static String PUT
           
 
Method Summary
 void destroy(WebContext webContext)
           
 String getHttpMethod()
           
 void handle()
           
 void init(WebContext webContext)
           
 

Field Detail

GET

static final String GET
See Also:
Constant Field Values

POST

static final String POST
See Also:
Constant Field Values

PUT

static final String PUT
See Also:
Constant Field Values

DELETE

static final String DELETE
See Also:
Constant Field Values
Method Detail

init

void init(WebContext webContext)

destroy

void destroy(WebContext webContext)

getHttpMethod

String getHttpMethod()

handle

void handle()
            throws ServletException,
                   IOException
Throws:
ServletException
IOException


Copyright © 2013. All Rights Reserved.