com.dyuproject.web.rest
Class RequestContext

java.lang.Object
  extended by com.dyuproject.web.rest.RequestContext

public final class RequestContext
extends Object

Wraps the request and response plus the bits and pieces needed in handling a REST requset.

Author:
David Yu
Date created:
Dec 4, 2008

Nested Class Summary
static class RequestContext.Local
           
 
Constructor Summary
RequestContext()
           
 
Method Summary
 ValidatingConsumer getConsumer()
           
 String getMime()
           
 String getPathElement(int idx)
           
 String[] getPathInfo()
           
 HttpServletRequest getRequest()
           
 HttpServletResponse getResponse()
           
 void setConsumer(ValidatingConsumer consumer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestContext

public RequestContext()
Method Detail

getRequest

public HttpServletRequest getRequest()

getResponse

public HttpServletResponse getResponse()

getMime

public String getMime()

getPathInfo

public String[] getPathInfo()

getPathElement

public String getPathElement(int idx)

getConsumer

public ValidatingConsumer getConsumer()

setConsumer

public void setConsumer(ValidatingConsumer consumer)


Copyright © 2008-2013. All Rights Reserved.