com.cc.framework.http
Class PageContextAdapter

java.lang.Object
  extended bycom.cc.framework.http.PageContextAdapter
All Implemented Interfaces:
HttpContext

public class PageContextAdapter
extends java.lang.Object
implements HttpContext

Adapts the PageContext to the HttpContext interface

Author:
Harald Schulz

Field Summary
private  javax.servlet.jsp.PageContext pageContext
          The JSP page context
 
Constructor Summary
PageContextAdapter(javax.servlet.jsp.PageContext pageContext)
          Constructor
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageContext

private javax.servlet.jsp.PageContext pageContext
The JSP page context

Constructor Detail

PageContextAdapter

public PageContextAdapter(javax.servlet.jsp.PageContext pageContext)
Constructor

Parameters:
pageContext - The JSP page context
Method Detail

getAttribute

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

Specified by:
getAttribute in interface HttpContext
Parameters:
name - the attribute name
scope - the scope to search
Returns:
attribute value or null
See Also:
HttpContext.getAttribute(java.lang.String, com.cc.framework.http.HttpScope)

getServletContext

public javax.servlet.ServletContext getServletContext()
Description copied from interface: HttpContext
Returns the Servlet Context

Specified by:
getServletContext in interface HttpContext
Returns:
ServletContext
See Also:
HttpContext.getServletContext()

request

public javax.servlet.http.HttpServletRequest request()
Description copied from interface: HttpContext
Returns the HTTP Request

Specified by:
request in interface HttpContext
Returns:
the HttpServletRequest
See Also:
HttpContext.request()

response

public javax.servlet.http.HttpServletResponse response()
Description copied from interface: HttpContext
Returns the HTTP Response

Specified by:
response in interface HttpContext
Returns:
the HttpServletResponse
See Also:
HttpContext.response()

session

public javax.servlet.http.HttpSession session()
Description copied from interface: HttpContext
Gets the session object

Specified by:
session in interface HttpContext
Returns:
HttpSession
See Also:
HttpContext.session()


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