com.khubla.pragmatach.framework.api
Class Request

java.lang.Object
  extended by com.khubla.pragmatach.framework.api.Request

public class Request
extends Object

Author:
tome

Constructor Summary
Request(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, Route.HttpMethod method, javax.servlet.ServletConfig servletConfig)
          ctor
 
Method Summary
 Cookies getCookies()
           
 long getCreationTime()
           
 Headers getHeaders()
           
 javax.servlet.http.HttpServletRequest getHttpServletRequest()
           
 InputStream getInputStream()
           
 Route.HttpMethod getMethod()
           
 Map<String,String[]> getParameters()
          parameters
 String getPostBody()
          get the HTTP POST body
 String getResourcePath()
          get the resource path, taking off the servlet context path
 javax.servlet.ServletConfig getServletConfig()
           
 javax.servlet.ServletContext getServletContext()
          servlet context
 javax.servlet.http.HttpSession getSession()
          session
 String getURI()
          URI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Request

public Request(javax.servlet.http.HttpServletRequest httpServletRequest,
               javax.servlet.http.HttpServletResponse httpServletResponse,
               Route.HttpMethod method,
               javax.servlet.ServletConfig servletConfig)
ctor

Method Detail

getCookies

public Cookies getCookies()

getCreationTime

public long getCreationTime()

getHeaders

public Headers getHeaders()

getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest()

getInputStream

public InputStream getInputStream()
                           throws PragmatachException
Throws:
PragmatachException

getMethod

public Route.HttpMethod getMethod()

getParameters

public Map<String,String[]> getParameters()
parameters


getPostBody

public String getPostBody()
                   throws PragmatachException
get the HTTP POST body

Throws:
PragmatachException

getResourcePath

public String getResourcePath()
                       throws PragmatachException
get the resource path, taking off the servlet context path

Throws:
PragmatachException

getServletConfig

public javax.servlet.ServletConfig getServletConfig()

getServletContext

public javax.servlet.ServletContext getServletContext()
servlet context


getSession

public javax.servlet.http.HttpSession getSession()
session


getURI

public String getURI()
URI



Copyright © 2014 khubla.com. All rights reserved.