com.cc.framework.http
Interface HttpContext

All Known Subinterfaces:
ActionContext, ControlActionContext, ControlRequestContext, FormActionContext, PainterContext, RequestContext
All Known Implementing Classes:
ActionContextWrapper, CellPainterContext, ConcreteActionContext, ConcreteControlActionContext, ConcreteFormActionContext, PageContextAdapter, PainterContextImp, PainterContextWrapper

public interface HttpContext

Interface for accessing HTTP context objects

Author:
Harald Schulz

Method Summary
 java.lang.Object getAttribute(java.lang.String name, HttpScope scope)
          Returns the attribute with the given name from the specified scope
 javax.servlet.ServletContext getServletContext()
          Returns the Servlet Context
 javax.servlet.http.HttpServletRequest request()
          Returns the HTTP Request
 javax.servlet.http.HttpServletResponse response()
          Returns the HTTP Response
 javax.servlet.http.HttpSession session()
          Gets the session object
 

Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String name,
                                     HttpScope scope)
Returns the attribute with the given name from the specified scope

Parameters:
name - the attribute name
scope - the scope to search
Returns:
attribute value or null

getServletContext

public javax.servlet.ServletContext getServletContext()
Returns the Servlet Context

Returns:
ServletContext

request

public javax.servlet.http.HttpServletRequest request()
Returns the HTTP Request

Returns:
the HttpServletRequest

response

public javax.servlet.http.HttpServletResponse response()
Returns the HTTP Response

Returns:
the HttpServletResponse

session

public javax.servlet.http.HttpSession session()
Gets the session object

Returns:
HttpSession


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.