org.slim3.commons.web
Class WebLocator

java.lang.Object
  extended by org.slim3.commons.web.WebLocator

public final class WebLocator
extends Object

The locator for web.

Since:
3.0
Author:
higa

Method Summary
static HttpServletRequest getRequest()
          Returns the current request.
static HttpServletResponse getResponse()
          Returns the current response.
static ServletContext getServletContext()
          Returns the servlet context.
static void setRequest(HttpServletRequest request)
          Sets the current request.
static void setResponse(HttpServletResponse response)
          Sets the current response.
static void setServletContext(ServletContext servletContext)
          Sets the servlet context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRequest

public static HttpServletRequest getRequest()
Returns the current request.

Returns:
the current request

setRequest

public static void setRequest(HttpServletRequest request)
Sets the current request.

Parameters:
request - the current request

getResponse

public static HttpServletResponse getResponse()
Returns the current response.

Returns:
the current response

setResponse

public static void setResponse(HttpServletResponse response)
Sets the current response.

Parameters:
response - the current response

getServletContext

public static ServletContext getServletContext()
Returns the servlet context.

Returns:
the servlet context

setServletContext

public static void setServletContext(ServletContext servletContext)
Sets the servlet context.

Parameters:
servletContext - the servlet context


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.