FileDocCategorySizeDatePackage
PageContextImpl.javaAPI DocGlassfish v2 API8542Sat May 05 19:17:50 BST 2007org.apache.taglibs.standard.lang.jstl.test

PageContextImpl

public class PageContextImpl extends javax.servlet.jsp.PageContext

This is a "dummy" implementation of PageContext whose only purpose is to serve the attribute getter/setter API's.

author
Nathan Abramson - Art Technology Group
version
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: tcfujii $

Fields Summary
Map
mPage
Map
mRequest
Map
mSession
Map
mApp
Constructors Summary
public PageContextImpl()
Constructor


  //-------------------------------------
      
    
  
  
Methods Summary
public java.lang.ObjectfindAttribute(java.lang.String name)

    if (mPage.containsKey (name)) {
      return mPage.get (name);
    }
    else if (mRequest.containsKey (name)) {
      return mRequest.get (name);
    }
    else if (mSession.containsKey (name)) {
      return mSession.get (name);
    }
    else if (mApp.containsKey (name)) {
      return mApp.get (name);
    }
    else {
      return null;
    }
  
public voidforward(java.lang.String path)

  
public java.lang.ObjectgetAttribute(java.lang.String name)

    return mPage.get (name);
  
public java.lang.ObjectgetAttribute(java.lang.String name, int scope)

    switch (scope) {
    case PAGE_SCOPE:
      return mPage.get (name);
    case REQUEST_SCOPE:
      return mRequest.get (name);
    case SESSION_SCOPE:
      return mSession.get (name);
    case APPLICATION_SCOPE:
      return mApp.get (name);
    default:
      throw new IllegalArgumentException  ("Bad scope " + scope);
    }
  
public java.util.EnumerationgetAttributeNamesInScope(int scope)

    return null;
  
public intgetAttributesScope(java.lang.String name)

    if (mPage.containsKey (name)) {
      return PAGE_SCOPE;
    }
    else if (mRequest.containsKey (name)) {
      return REQUEST_SCOPE;
    }
    else if (mSession.containsKey (name)) {
      return SESSION_SCOPE;
    }
    else if (mApp.containsKey (name)) {
      return APPLICATION_SCOPE;
    }
    else {
      return 0;
    }
  
public javax.el.ELContextgetELContext()

 return null; 
public java.lang.ExceptiongetException()

    return null;
  
public javax.servlet.jsp.el.ExpressionEvaluatorgetExpressionEvaluator()

 return null; 
public javax.servlet.jsp.JspWritergetOut()

    return null;
  
public java.lang.ObjectgetPage()

    return null;
  
public javax.servlet.ServletRequestgetRequest()

    return null;
  
public javax.servlet.ServletResponsegetResponse()

    return null;
  
public javax.servlet.ServletConfiggetServletConfig()

    return null;
  
public javax.servlet.ServletContextgetServletContext()

    return null;
  
public javax.servlet.http.HttpSessiongetSession()

    return null;
  
public javax.servlet.jsp.el.VariableResolvergetVariableResolver()

 return null; 
public voidhandlePageException(java.lang.Exception exc)

  
public voidhandlePageException(java.lang.Throwable exc)

  
public voidinclude(java.lang.String path)

  
public voidinclude(java.lang.String relativeUrlPath, boolean flush)

public voidinitialize(javax.servlet.Servlet servlet, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, java.lang.String errorPageURL, boolean needSession, int bufferSize, boolean autoFlush)

  
public voidrelease()

  
public voidremoveAttribute(java.lang.String name, int scope)

    switch (scope) {
    case PAGE_SCOPE:
      mPage.remove (name);
      break;
    case REQUEST_SCOPE:
      mRequest.remove (name);
      break;
    case SESSION_SCOPE:
      mSession.remove (name);
      break;
    case APPLICATION_SCOPE:
      mApp.remove (name);
      break;
    default:
      throw new IllegalArgumentException  ("Bad scope " + scope);
    }
  
public voidremoveAttribute(java.lang.String name)

    if (mPage.containsKey (name)) {
      mPage.remove (name);
    }
    else if (mRequest.containsKey (name)) {
      mRequest.remove (name);
    }
    else if (mSession.containsKey (name)) {
      mSession.remove (name);
    }
    else if (mApp.containsKey (name)) {
      mApp.remove (name);
    }
  
public voidsetAttribute(java.lang.String name, java.lang.Object attribute)

    mPage.put (name, attribute);
  
public voidsetAttribute(java.lang.String name, java.lang.Object attribute, int scope)

    switch (scope) {
    case PAGE_SCOPE:
      mPage.put (name, attribute);
      break;
    case REQUEST_SCOPE:
      mRequest.put (name, attribute);
      break;
    case SESSION_SCOPE:
      mSession.put (name, attribute);
      break;
    case APPLICATION_SCOPE:
      mApp.put (name, attribute);
      break;
    default:
      throw new IllegalArgumentException  ("Bad scope " + scope);
    }