javax.servlet.jsp_2.2.0.v201112011158

16:37:08.832 INFO  jd.cli.Main - Decompiling javax.servlet.jsp_2.2.0.v201112011158.jar
package javax.servlet.jsp;

public final class ErrorData
{
  private Throwable throwable;
  private int statusCode;
  private String uri;
  private String servletName;
  
  public ErrorData(Throwable throwable, int statusCode, String uri, String servletName)
  {
    this.throwable = throwable;
    this.statusCode = statusCode;
    this.uri = uri;
    this.servletName = servletName;
  }
  
  public Throwable getThrowable()
  {
    return throwable;
  }
  
  public int getStatusCode()
  {
    return statusCode;
  }
  
  public String getRequestURI()
  {
    return uri;
  }
  
  public String getServletName()
  {
    return servletName;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.ErrorData
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public abstract interface HttpJspPage
  extends JspPage
{
  public abstract void _jspService(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse)
    throws ServletException, IOException;
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.HttpJspPage
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp;

import javax.el.ELContextListener;
import javax.el.ELResolver;
import javax.el.ExpressionFactory;

public abstract interface JspApplicationContext
{
  public abstract void addELResolver(ELResolver paramELResolver);
  
  public abstract ExpressionFactory getExpressionFactory();
  
  public abstract void addELContextListener(ELContextListener paramELContextListener);
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.JspApplicationContext
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp;

import java.io.Writer;
import java.util.Enumeration;
import javax.el.ELContext;
import javax.servlet.jsp.el.ExpressionEvaluator;
import javax.servlet.jsp.el.VariableResolver;

public abstract class JspContext
{
  public abstract void setAttribute(String paramString, Object paramObject);
  
  public abstract void setAttribute(String paramString, Object paramObject, int paramInt);
  
  public abstract Object getAttribute(String paramString);
  
  public abstract Object getAttribute(String paramString, int paramInt);
  
  public abstract Object findAttribute(String paramString);
  
  public abstract void removeAttribute(String paramString);
  
  public abstract void removeAttribute(String paramString, int paramInt);
  
  public abstract int getAttributesScope(String paramString);
  
  public abstract Enumeration<String> getAttributeNamesInScope(int paramInt);
  
  public abstract JspWriter getOut();
  
  /**
   * @deprecated
   */
  public abstract ExpressionEvaluator getExpressionEvaluator();
  
  /**
   * @deprecated
   */
  public abstract VariableResolver getVariableResolver();
  
  public abstract ELContext getELContext();
  
  public JspWriter pushBody(Writer writer)
  {
    return null;
  }
  
  public JspWriter popBody()
  {
    return null;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.JspContext
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp;

public abstract class JspEngineInfo
{
  public abstract String getSpecificationVersion();
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.JspEngineInfo
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp;

public class JspException
  extends Exception
{
  public JspException() {}
  
  public JspException(String msg)
  {
    super(msg);
  }
  
  public JspException(String message, Throwable cause)
  {
    super(message, cause);
  }
  
  public JspException(Throwable cause)
  {
    super(cause);
  }
  
  /**
   * @deprecated
   */
  public Throwable getRootCause()
  {
    return getCause();
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.JspException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp;

import javax.servlet.Servlet;
import javax.servlet.ServletContext;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public abstract class JspFactory
{
  private static JspFactory deflt = null;
  
  public static synchronized void setDefaultFactory(JspFactory deflt)
  {
    deflt = deflt;
  }
  
  public static synchronized JspFactory getDefaultFactory()
  {
    if (deflt == null) {
      try
      {
        Class factory = Class.forName("org.apache.jasper.runtime.JspFactoryImpl");
        if (factory != null) {
          deflt = (JspFactory)factory.newInstance();
        }
      }
      catch (Exception ex) {}
    }
    return deflt;
  }
  
  public abstract PageContext getPageContext(Servlet paramServlet, ServletRequest paramServletRequest, ServletResponse paramServletResponse, String paramString, boolean paramBoolean1, int paramInt, boolean paramBoolean2);
  
  public abstract void releasePageContext(PageContext paramPageContext);
  
  public abstract JspEngineInfo getEngineInfo();
  
  public abstract JspApplicationContext getJspApplicationContext(ServletContext paramServletContext);
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.JspFactory
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp;

import javax.servlet.Servlet;

public abstract interface JspPage
  extends Servlet
{
  public abstract void jspInit();
  
  public abstract void jspDestroy();
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.JspPage
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp;

public class JspTagException
  extends JspException
{
  public JspTagException(String msg)
  {
    super(msg);
  }
  
  public JspTagException() {}
  
  public JspTagException(String message, Throwable rootCause)
  {
    super(message, rootCause);
  }
  
  public JspTagException(Throwable rootCause)
  {
    super(rootCause);
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.JspTagException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp;

import java.io.IOException;
import java.io.Writer;

public abstract class JspWriter
  extends Writer
{
  public static final int NO_BUFFER = 0;
  public static final int DEFAULT_BUFFER = -1;
  public static final int UNBOUNDED_BUFFER = -2;
  protected int bufferSize;
  protected boolean autoFlush;
  
  protected JspWriter(int bufferSize, boolean autoFlush)
  {
    this.bufferSize = bufferSize;
    this.autoFlush = autoFlush;
  }
  
  public abstract void newLine()
    throws IOException;
  
  public abstract void print(boolean paramBoolean)
    throws IOException;
  
  public abstract void print(char paramChar)
    throws IOException;
  
  public abstract void print(int paramInt)
    throws IOException;
  
  public abstract void print(long paramLong)
    throws IOException;
  
  public abstract void print(float paramFloat)
    throws IOException;
  
  public abstract void print(double paramDouble)
    throws IOException;
  
  public abstract void print(char[] paramArrayOfChar)
    throws IOException;
  
  public abstract void print(String paramString)
    throws IOException;
  
  public abstract void print(Object paramObject)
    throws IOException;
  
  public abstract void println()
    throws IOException;
  
  public abstract void println(boolean paramBoolean)
    throws IOException;
  
  public abstract void println(char paramChar)
    throws IOException;
  
  public abstract void println(int paramInt)
    throws IOException;
  
  public abstract void println(long paramLong)
    throws IOException;
  
  public abstract void println(float paramFloat)
    throws IOException;
  
  public abstract void println(double paramDouble)
    throws IOException;
  
  public abstract void println(char[] paramArrayOfChar)
    throws IOException;
  
  public abstract void println(String paramString)
    throws IOException;
  
  public abstract void println(Object paramObject)
    throws IOException;
  
  public abstract void clear()
    throws IOException;
  
  public abstract void clearBuffer()
    throws IOException;
  
  public abstract void flush()
    throws IOException;
  
  public abstract void close()
    throws IOException;
  
  public int getBufferSize()
  {
    return bufferSize;
  }
  
  public abstract int getRemaining();
  
  public boolean isAutoFlush()
  {
    return autoFlush;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.JspWriter
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp;

import java.io.IOException;
import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.tagext.BodyContent;

public abstract class PageContext
  extends JspContext
{
  public static final int PAGE_SCOPE = 1;
  public static final int REQUEST_SCOPE = 2;
  public static final int SESSION_SCOPE = 3;
  public static final int APPLICATION_SCOPE = 4;
  public static final String PAGE = "javax.servlet.jsp.jspPage";
  public static final String PAGECONTEXT = "javax.servlet.jsp.jspPageContext";
  public static final String REQUEST = "javax.servlet.jsp.jspRequest";
  public static final String RESPONSE = "javax.servlet.jsp.jspResponse";
  public static final String CONFIG = "javax.servlet.jsp.jspConfig";
  public static final String SESSION = "javax.servlet.jsp.jspSession";
  public static final String OUT = "javax.servlet.jsp.jspOut";
  public static final String APPLICATION = "javax.servlet.jsp.jspApplication";
  public static final String EXCEPTION = "javax.servlet.jsp.jspException";
  
  public abstract void initialize(Servlet paramServlet, ServletRequest paramServletRequest, ServletResponse paramServletResponse, String paramString, boolean paramBoolean1, int paramInt, boolean paramBoolean2)
    throws IOException, IllegalStateException, IllegalArgumentException;
  
  public abstract void release();
  
  public abstract HttpSession getSession();
  
  public abstract Object getPage();
  
  public abstract ServletRequest getRequest();
  
  public abstract ServletResponse getResponse();
  
  public abstract Exception getException();
  
  public abstract ServletConfig getServletConfig();
  
  public abstract ServletContext getServletContext();
  
  public abstract void forward(String paramString)
    throws ServletException, IOException;
  
  public abstract void include(String paramString)
    throws ServletException, IOException;
  
  public abstract void include(String paramString, boolean paramBoolean)
    throws ServletException, IOException;
  
  public abstract void handlePageException(Exception paramException)
    throws ServletException, IOException;
  
  public abstract void handlePageException(Throwable paramThrowable)
    throws ServletException, IOException;
  
  public BodyContent pushBody()
  {
    return null;
  }
  
  public ErrorData getErrorData()
  {
    return new ErrorData((Throwable)getRequest().getAttribute("javax.servlet.error.exception"), ((Integer)getRequest().getAttribute("javax.servlet.error.status_code")).intValue(), (String)getRequest().getAttribute("javax.servlet.error.request_uri"), (String)getRequest().getAttribute("javax.servlet.error.servlet_name"));
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.PageContext
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp;

public class SkipPageException
  extends JspException
{
  public SkipPageException() {}
  
  public SkipPageException(String message)
  {
    super(message);
  }
  
  public SkipPageException(String message, Throwable rootCause)
  {
    super(message, rootCause);
  }
  
  public SkipPageException(Throwable rootCause)
  {
    super(rootCause);
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.SkipPageException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

/**
 * @deprecated
 */
public class ELException
  extends Exception
{
  private Throwable mRootCause;
  
  public ELException() {}
  
  public ELException(String pMessage)
  {
    super(pMessage);
  }
  
  public ELException(Throwable pRootCause)
  {
    super(pRootCause.getLocalizedMessage());
    mRootCause = pRootCause;
  }
  
  public ELException(String pMessage, Throwable pRootCause)
  {
    super(pMessage);
    mRootCause = pRootCause;
  }
  
  public Throwable getRootCause()
  {
    return mRootCause;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ELException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

/**
 * @deprecated
 */
public class ELParseException
  extends ELException
{
  public ELParseException() {}
  
  public ELParseException(String pMessage)
  {
    super(pMessage);
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ELParseException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

/**
 * @deprecated
 */
public abstract class Expression
{
  public abstract Object evaluate(VariableResolver paramVariableResolver)
    throws ELException;
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.Expression
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

/**
 * @deprecated
 */
public abstract class ExpressionEvaluator
{
  public abstract Expression parseExpression(String paramString, Class paramClass, FunctionMapper paramFunctionMapper)
    throws ELException;
  
  public abstract Object evaluate(String paramString, Class paramClass, VariableResolver paramVariableResolver, FunctionMapper paramFunctionMapper)
    throws ELException;
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ExpressionEvaluator
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.lang.reflect.Method;

/**
 * @deprecated
 */
public abstract interface FunctionMapper
{
  public abstract Method resolveFunction(String paramString1, String paramString2);
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.FunctionMapper
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

class ImplicitObjectELResolver$1 {}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ImplicitObjectELResolver.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.util.Collection;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

abstract class ImplicitObjectELResolver$EnumeratedMap
  implements Map
{
  Map mMap;
  
  public void clear()
  {
    throw new UnsupportedOperationException();
  }
  
  public boolean containsKey(Object pKey)
  {
    return getValue(pKey) != null;
  }
  
  public boolean containsValue(Object pValue)
  {
    return getAsMap().containsValue(pValue);
  }
  
  public Set entrySet()
  {
    return getAsMap().entrySet();
  }
  
  public Object get(Object pKey)
  {
    return getValue(pKey);
  }
  
  public boolean isEmpty()
  {
    return !enumerateKeys().hasMoreElements();
  }
  
  public Set keySet()
  {
    return getAsMap().keySet();
  }
  
  public Object put(Object pKey, Object pValue)
  {
    throw new UnsupportedOperationException();
  }
  
  public void putAll(Map pMap)
  {
    throw new UnsupportedOperationException();
  }
  
  public Object remove(Object pKey)
  {
    throw new UnsupportedOperationException();
  }
  
  public int size()
  {
    return getAsMap().size();
  }
  
  public Collection values()
  {
    return getAsMap().values();
  }
  
  public abstract Enumeration enumerateKeys();
  
  public abstract boolean isMutable();
  
  public abstract Object getValue(Object paramObject);
  
  public Map getAsMap()
  {
    if (mMap != null) {
      return mMap;
    }
    Map m = convertToMap();
    if (!isMutable()) {
      mMap = m;
    }
    return m;
  }
  
  Map convertToMap()
  {
    Map ret = new HashMap();
    for (Enumeration e = enumerateKeys(); e.hasMoreElements();)
    {
      Object key = e.nextElement();
      Object value = getValue(key);
      ret.put(key, value);
    }
    return ret;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ImplicitObjectELResolver.EnumeratedMap
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.util.Enumeration;
import javax.servlet.jsp.PageContext;

final class ImplicitObjectELResolver$ImplicitObjects$1
  extends ImplicitObjectELResolver.EnumeratedMap
{
  ImplicitObjectELResolver$ImplicitObjects$1(PageContext paramPageContext)
  {
    super(null);
  }
  
  public Enumeration enumerateKeys()
  {
    return val$context.getAttributeNamesInScope(1);
  }
  
  public Object getValue(Object pKey)
  {
    if ((pKey instanceof String)) {
      return val$context.getAttribute((String)pKey, 1);
    }
    return null;
  }
  
  public boolean isMutable()
  {
    return true;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ImplicitObjectELResolver.ImplicitObjects.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.util.Enumeration;
import javax.servlet.jsp.PageContext;

final class ImplicitObjectELResolver$ImplicitObjects$2
  extends ImplicitObjectELResolver.EnumeratedMap
{
  ImplicitObjectELResolver$ImplicitObjects$2(PageContext paramPageContext)
  {
    super(null);
  }
  
  public Enumeration enumerateKeys()
  {
    return val$context.getAttributeNamesInScope(2);
  }
  
  public Object getValue(Object pKey)
  {
    if ((pKey instanceof String)) {
      return val$context.getAttribute((String)pKey, 2);
    }
    return null;
  }
  
  public boolean isMutable()
  {
    return true;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ImplicitObjectELResolver.ImplicitObjects.2
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.util.Enumeration;
import javax.servlet.jsp.PageContext;

final class ImplicitObjectELResolver$ImplicitObjects$3
  extends ImplicitObjectELResolver.EnumeratedMap
{
  ImplicitObjectELResolver$ImplicitObjects$3(PageContext paramPageContext)
  {
    super(null);
  }
  
  public Enumeration enumerateKeys()
  {
    return val$context.getAttributeNamesInScope(3);
  }
  
  public Object getValue(Object pKey)
  {
    if ((pKey instanceof String)) {
      return val$context.getAttribute((String)pKey, 3);
    }
    return null;
  }
  
  public boolean isMutable()
  {
    return true;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ImplicitObjectELResolver.ImplicitObjects.3
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.util.Enumeration;
import javax.servlet.jsp.PageContext;

final class ImplicitObjectELResolver$ImplicitObjects$4
  extends ImplicitObjectELResolver.EnumeratedMap
{
  ImplicitObjectELResolver$ImplicitObjects$4(PageContext paramPageContext)
  {
    super(null);
  }
  
  public Enumeration enumerateKeys()
  {
    return val$context.getAttributeNamesInScope(4);
  }
  
  public Object getValue(Object pKey)
  {
    if ((pKey instanceof String)) {
      return val$context.getAttribute((String)pKey, 4);
    }
    return null;
  }
  
  public boolean isMutable()
  {
    return true;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ImplicitObjectELResolver.ImplicitObjects.4
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.util.Enumeration;
import javax.servlet.http.HttpServletRequest;

final class ImplicitObjectELResolver$ImplicitObjects$5
  extends ImplicitObjectELResolver.EnumeratedMap
{
  ImplicitObjectELResolver$ImplicitObjects$5(HttpServletRequest paramHttpServletRequest)
  {
    super(null);
  }
  
  public Enumeration enumerateKeys()
  {
    return val$request.getParameterNames();
  }
  
  public Object getValue(Object pKey)
  {
    if ((pKey instanceof String)) {
      return val$request.getParameter((String)pKey);
    }
    return null;
  }
  
  public boolean isMutable()
  {
    return false;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ImplicitObjectELResolver.ImplicitObjects.5
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.util.Enumeration;
import javax.servlet.http.HttpServletRequest;

final class ImplicitObjectELResolver$ImplicitObjects$6
  extends ImplicitObjectELResolver.EnumeratedMap
{
  ImplicitObjectELResolver$ImplicitObjects$6(HttpServletRequest paramHttpServletRequest)
  {
    super(null);
  }
  
  public Enumeration enumerateKeys()
  {
    return val$request.getParameterNames();
  }
  
  public Object getValue(Object pKey)
  {
    if ((pKey instanceof String)) {
      return val$request.getParameterValues((String)pKey);
    }
    return null;
  }
  
  public boolean isMutable()
  {
    return false;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ImplicitObjectELResolver.ImplicitObjects.6
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.util.Enumeration;
import javax.servlet.http.HttpServletRequest;

final class ImplicitObjectELResolver$ImplicitObjects$7
  extends ImplicitObjectELResolver.EnumeratedMap
{
  ImplicitObjectELResolver$ImplicitObjects$7(HttpServletRequest paramHttpServletRequest)
  {
    super(null);
  }
  
  public Enumeration enumerateKeys()
  {
    return val$request.getHeaderNames();
  }
  
  public Object getValue(Object pKey)
  {
    if ((pKey instanceof String)) {
      return val$request.getHeader((String)pKey);
    }
    return null;
  }
  
  public boolean isMutable()
  {
    return false;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ImplicitObjectELResolver.ImplicitObjects.7
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

final class ImplicitObjectELResolver$ImplicitObjects$8
  extends ImplicitObjectELResolver.EnumeratedMap
{
  ImplicitObjectELResolver$ImplicitObjects$8(HttpServletRequest paramHttpServletRequest)
  {
    super(null);
  }
  
  public Enumeration enumerateKeys()
  {
    return val$request.getHeaderNames();
  }
  
  public Object getValue(Object pKey)
  {
    if ((pKey instanceof String))
    {
      List l = new ArrayList();
      Enumeration e = val$request.getHeaders((String)pKey);
      if (e != null) {
        while (e.hasMoreElements()) {
          l.add(e.nextElement());
        }
      }
      String[] ret = (String[])l.toArray(new String[l.size()]);
      return ret;
    }
    return null;
  }
  
  public boolean isMutable()
  {
    return false;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ImplicitObjectELResolver.ImplicitObjects.8
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.util.Enumeration;
import javax.servlet.ServletContext;

final class ImplicitObjectELResolver$ImplicitObjects$9
  extends ImplicitObjectELResolver.EnumeratedMap
{
  ImplicitObjectELResolver$ImplicitObjects$9(ServletContext paramServletContext)
  {
    super(null);
  }
  
  public Enumeration enumerateKeys()
  {
    return val$context.getInitParameterNames();
  }
  
  public Object getValue(Object pKey)
  {
    if ((pKey instanceof String)) {
      return val$context.getInitParameter((String)pKey);
    }
    return null;
  }
  
  public boolean isMutable()
  {
    return false;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ImplicitObjectELResolver.ImplicitObjects.9
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletContext;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.PageContext;

class ImplicitObjectELResolver$ImplicitObjects
{
  static final String sAttributeName = "org.apache.taglibs.standard.ImplicitObjects";
  PageContext mContext;
  Map mPage;
  Map mRequest;
  Map mSession;
  Map mApplication;
  Map mParam;
  Map mParams;
  Map mHeader;
  Map mHeaders;
  Map mInitParam;
  Map mCookie;
  
  public ImplicitObjectELResolver$ImplicitObjects(PageContext pContext)
  {
    mContext = pContext;
  }
  
  public static ImplicitObjects getImplicitObjects(PageContext pContext)
  {
    ImplicitObjects objs = (ImplicitObjects)pContext.getAttribute("org.apache.taglibs.standard.ImplicitObjects", 1);
    if (objs == null)
    {
      objs = new ImplicitObjects(pContext);
      pContext.setAttribute("org.apache.taglibs.standard.ImplicitObjects", objs, 1);
    }
    return objs;
  }
  
  public Map getPageScopeMap()
  {
    if (mPage == null) {
      mPage = createPageScopeMap(mContext);
    }
    return mPage;
  }
  
  public Map getRequestScopeMap()
  {
    if (mRequest == null) {
      mRequest = createRequestScopeMap(mContext);
    }
    return mRequest;
  }
  
  public Map getSessionScopeMap()
  {
    if (mSession == null) {
      mSession = createSessionScopeMap(mContext);
    }
    return mSession;
  }
  
  public Map getApplicationScopeMap()
  {
    if (mApplication == null) {
      mApplication = createApplicationScopeMap(mContext);
    }
    return mApplication;
  }
  
  public Map getParamMap()
  {
    if (mParam == null) {
      mParam = createParamMap(mContext);
    }
    return mParam;
  }
  
  public Map getParamsMap()
  {
    if (mParams == null) {
      mParams = createParamsMap(mContext);
    }
    return mParams;
  }
  
  public Map getHeaderMap()
  {
    if (mHeader == null) {
      mHeader = createHeaderMap(mContext);
    }
    return mHeader;
  }
  
  public Map getHeadersMap()
  {
    if (mHeaders == null) {
      mHeaders = createHeadersMap(mContext);
    }
    return mHeaders;
  }
  
  public Map getInitParamMap()
  {
    if (mInitParam == null) {
      mInitParam = createInitParamMap(mContext);
    }
    return mInitParam;
  }
  
  public Map getCookieMap()
  {
    if (mCookie == null) {
      mCookie = createCookieMap(mContext);
    }
    return mCookie;
  }
  
  public static Map createPageScopeMap(PageContext pContext)
  {
    PageContext context = pContext;
    new ImplicitObjectELResolver.EnumeratedMap(context)
    {
      public Enumeration enumerateKeys()
      {
        return val$context.getAttributeNamesInScope(1);
      }
      
      public Object getValue(Object pKey)
      {
        if ((pKey instanceof String)) {
          return val$context.getAttribute((String)pKey, 1);
        }
        return null;
      }
      
      public boolean isMutable()
      {
        return true;
      }
    };
  }
  
  public static Map createRequestScopeMap(PageContext pContext)
  {
    PageContext context = pContext;
    new ImplicitObjectELResolver.EnumeratedMap(context)
    {
      public Enumeration enumerateKeys()
      {
        return val$context.getAttributeNamesInScope(2);
      }
      
      public Object getValue(Object pKey)
      {
        if ((pKey instanceof String)) {
          return val$context.getAttribute((String)pKey, 2);
        }
        return null;
      }
      
      public boolean isMutable()
      {
        return true;
      }
    };
  }
  
  public static Map createSessionScopeMap(PageContext pContext)
  {
    PageContext context = pContext;
    new ImplicitObjectELResolver.EnumeratedMap(context)
    {
      public Enumeration enumerateKeys()
      {
        return val$context.getAttributeNamesInScope(3);
      }
      
      public Object getValue(Object pKey)
      {
        if ((pKey instanceof String)) {
          return val$context.getAttribute((String)pKey, 3);
        }
        return null;
      }
      
      public boolean isMutable()
      {
        return true;
      }
    };
  }
  
  public static Map createApplicationScopeMap(PageContext pContext)
  {
    PageContext context = pContext;
    new ImplicitObjectELResolver.EnumeratedMap(context)
    {
      public Enumeration enumerateKeys()
      {
        return val$context.getAttributeNamesInScope(4);
      }
      
      public Object getValue(Object pKey)
      {
        if ((pKey instanceof String)) {
          return val$context.getAttribute((String)pKey, 4);
        }
        return null;
      }
      
      public boolean isMutable()
      {
        return true;
      }
    };
  }
  
  public static Map createParamMap(PageContext pContext)
  {
    HttpServletRequest request = (HttpServletRequest)pContext.getRequest();
    
    new ImplicitObjectELResolver.EnumeratedMap(request)
    {
      public Enumeration enumerateKeys()
      {
        return val$request.getParameterNames();
      }
      
      public Object getValue(Object pKey)
      {
        if ((pKey instanceof String)) {
          return val$request.getParameter((String)pKey);
        }
        return null;
      }
      
      public boolean isMutable()
      {
        return false;
      }
    };
  }
  
  public static Map createParamsMap(PageContext pContext)
  {
    HttpServletRequest request = (HttpServletRequest)pContext.getRequest();
    
    new ImplicitObjectELResolver.EnumeratedMap(request)
    {
      public Enumeration enumerateKeys()
      {
        return val$request.getParameterNames();
      }
      
      public Object getValue(Object pKey)
      {
        if ((pKey instanceof String)) {
          return val$request.getParameterValues((String)pKey);
        }
        return null;
      }
      
      public boolean isMutable()
      {
        return false;
      }
    };
  }
  
  public static Map createHeaderMap(PageContext pContext)
  {
    HttpServletRequest request = (HttpServletRequest)pContext.getRequest();
    
    new ImplicitObjectELResolver.EnumeratedMap(request)
    {
      public Enumeration enumerateKeys()
      {
        return val$request.getHeaderNames();
      }
      
      public Object getValue(Object pKey)
      {
        if ((pKey instanceof String)) {
          return val$request.getHeader((String)pKey);
        }
        return null;
      }
      
      public boolean isMutable()
      {
        return false;
      }
    };
  }
  
  public static Map createHeadersMap(PageContext pContext)
  {
    HttpServletRequest request = (HttpServletRequest)pContext.getRequest();
    
    new ImplicitObjectELResolver.EnumeratedMap(request)
    {
      public Enumeration enumerateKeys()
      {
        return val$request.getHeaderNames();
      }
      
      public Object getValue(Object pKey)
      {
        if ((pKey instanceof String))
        {
          List l = new ArrayList();
          Enumeration e = val$request.getHeaders((String)pKey);
          if (e != null) {
            while (e.hasMoreElements()) {
              l.add(e.nextElement());
            }
          }
          String[] ret = (String[])l.toArray(new String[l.size()]);
          return ret;
        }
        return null;
      }
      
      public boolean isMutable()
      {
        return false;
      }
    };
  }
  
  public static Map createInitParamMap(PageContext pContext)
  {
    ServletContext context = pContext.getServletContext();
    new ImplicitObjectELResolver.EnumeratedMap(context)
    {
      public Enumeration enumerateKeys()
      {
        return val$context.getInitParameterNames();
      }
      
      public Object getValue(Object pKey)
      {
        if ((pKey instanceof String)) {
          return val$context.getInitParameter((String)pKey);
        }
        return null;
      }
      
      public boolean isMutable()
      {
        return false;
      }
    };
  }
  
  public static Map createCookieMap(PageContext pContext)
  {
    HttpServletRequest request = (HttpServletRequest)pContext.getRequest();
    Cookie[] cookies = request.getCookies();
    Map ret = new HashMap();
    for (int i = 0; (cookies != null) && (i < cookies.length); i++)
    {
      Cookie cookie = cookies[i];
      if (cookie != null)
      {
        String name = cookie.getName();
        if (!ret.containsKey(name)) {
          ret.put(name, cookie);
        }
      }
    }
    return ret;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.jsp.el.ImplicitObjectELResolver.ImplicitObjects
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet.jsp.el;

import java.beans.FeatureDescriptor;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.el.ELContext;
import javax.el.ELResolver;
import javax.el.PropertyNotWritableException;
import javax.servlet.ServletContext;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspContext;
import javax.servlet.jsp.PageContext;

public class ImplicitObjectELResolver
  extends ELResolver
{
  public Object getValue(ELContext context, Object base, Object property)
  {
    if (context == null) {
      throw new NullPointerException();
    }
    if (base != null) {
      return null;
    }
    PageContext ctxt = (PageContext)context.getContext(JspContext.class);
    if ("pageContext".equals(property))
    {
      context.setPropertyResolved(true);
      return ctxt;
    }
    ImplicitObjects implicitObjects = ImplicitObjects.getImplicitObjects(ctxt);
    if ("pageScope".equals(property))
    {
      context.setPropertyResolved(true);
      return implicitObjects.getPageScopeMap();
    }
    if ("requestScope".equals(property))
    {
      context.setPropertyResolved(true);
      return implicitObjects.getRequestScopeMap();
    }
    if ("sessionScope".equals(property))
    {
      context.setPropertyResolved(true);
      return implicitObjects.getSessionScopeMap();
    }
    if ("applicationScope".equals(property))
    {
      context.setPropertyResolved(true);
      return implicitObjects.getApplicationScopeMap();
    }
    if ("param".equals(property))
    {
      context.setPropertyResolved(true);
      return implicitObjects.getParamMap();
    }
    if ("paramValues".equals(property))
    {
      context.setPropertyResolved(true);
      return implicitObjects.getParamsMap();
    }
    if ("header".equals(property))
    {
      context.setPropertyResolved(true);
      return implicitObjects.getHeaderMap();
    }
    if ("headerValues".equals(property))
    {
      context.setPropertyResolved(true);
      return implicitObjects.getHeadersMap();
    }
    if ("initParam".equals(property))
    {
      context.setPropertyResolved(true);
      return implicitObjects.getInitParamMap();
    }
    if ("cookie".equals(property))
    {
      context.setPropertyResolved(true);
      return implicitObjects.getCookieMap();
    }
    return null;
  }
  
  public Class getType(ELContext context, Object base, Object property)
  {
    if (context == null) {
      throw new NullPointerException();
    }
    if (((base == null) && (("pageContext".equals(property)) || ("pageScope".equals(property)))) || ("requestScope".equals(property)) || ("sessionScope".equals(property)) || ("applicationScope".equals(property)) || ("param".equals(property)) || ("paramValues".equals(property)) || ("header".equals(property)) || ("headerValues".equals(property)) || ("initParam".equals(property)) || ("cookie".equals(property))) {
      context.setPropertyResolved(true);
    }
    return null;
  }
  
  public void setValue(ELContext context, Object base, Object property, Object val)
  {
    if (context == null) {
      throw new NullPointerException();
    }
    if (((base == null) && (("pageContext".equals(property)) || ("pageScope".equals(property)))) || ("requestScope".equals(property)) || ("sessionScope".equals(property)) || ("applicationScope".equals(property)) || ("param".equals(property)) || ("paramValues".equals(property)) || ("header".equals(property)) || ("headerValues".equals(property)) || ("initParam".equals(property)) || ("cookie".equals(property))) {
      throw new PropertyNotWritableException();
    }
  }
  
  public boolean isReadOnly(ELContext context, Object base, Object property)
  {
    if (context == null) {
      throw new NullPointerException();
    }
    if (((base == null) && (("pageContext".equals(property)) || ("pageScope".equals(property)))) || ("requestScope".equals(property)) || ("sessionScope".equals(property)) || ("applicationScope".equals(property)) || ("param".equals(property)) || ("paramValues".equals(property)) || ("header".equals(property)) || ("headerValues".equals(property)) || ("initParam".equals(property)) || ("cookie".equals(property)))
    {
      context.setPropertyResolved(true);
      return true;
    }
    return false;
  }
  
  public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base)
  {
    ArrayList<FeatureDescriptor> list = new ArrayList(11);
    
    FeatureDescriptor descriptor = new FeatureDescriptor();
    descriptor.setName("pageContext");
    descriptor.setDisplayName("pageContext");
    
    descriptor.setExpert(false);
    descriptor.setHidden(false);
    descriptor.setPreferred(true);
    descriptor.setValue("type", PageContext.class);
    descriptor.setValue("resolvableAtDesignTime", Boolean.TRUE);
    list.add(descriptor);
    
    descriptor = new FeatureDescriptor();
    descriptor.setName("pageScope");
    descriptor.setDisplayName("pageScope");
    
    descriptor.setExpert(false);
    descriptor.setHidden(false);
    descriptor.setPreferred(true);
    descriptor.setValue("type", Map.class);
    descriptor.setValue("resolvableAtDesignTime", Boolean.TRUE);
    list.add(descriptor);
    
    descriptor = new FeatureDescriptor();
    descriptor.setName("requestScope");
    descriptor.setDisplayName("requestScope");
    
    descriptor.setExpert(false);
    descriptor.setHidden(false);
    descriptor.setPreferred(true);
    descriptor.setValue("type", Map.class);
    descriptor.setValue("resolvableAtDesignTime", Boolean.TRUE);
    list.add(descriptor);
    
    descriptor = new FeatureDescriptor();
    descriptor.setName("sessionScope");
    descriptor.setDisplayName("sessionScope");
    
    descriptor.setExpert(false);
    descriptor.setHidden(false);
    descriptor.setPreferred(true);
    descriptor.setValue("type", Map.class);
    descriptor.setValue("resolvableAtDesignTime", Boolean.TRUE);
    list.add(descriptor);
    
    descriptor = new FeatureDescriptor();
    descriptor.setName("applicationScope");
    descriptor.setDisplayName("applicationScope");
    
    descriptor.setExpert(false);
    descriptor.setHidden(false);
    descriptor.setPreferred(true);
    descriptor.setValue("type", Map.class);
    descriptor.setValue("resolvableAtDesignTime", Boolean.TRUE);
    list.add(descriptor);
    
    descriptor = new FeatureDescriptor();
    descriptor.setName("param");
    descriptor.setDisplayName("param");
    
    descriptor.setExpert(false);
    descriptor.setHidden(false);
    descriptor.setPreferred(true);
    descriptor.setValue("type", Map.class);
    descriptor.setValue("resolvableAtDesignTime", Boolean.TRUE);
    list.add(descriptor);
    
    descriptor = new FeatureDescriptor();
    descriptor.setName("paramValues");
    descriptor.se
1 2 3

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd