servlet-api-3.0

16:52:50.056 INFO  jd.cli.Main - Decompiling servlet-api-3.0.jar
package javax.servlet;

public abstract interface AsyncContext
{
  public static final String ASYNC_REQUEST_URI = "javax.servlet.async.request_uri";
  public static final String ASYNC_CONTEXT_PATH = "javax.servlet.async.context_path";
  public static final String ASYNC_PATH_INFO = "javax.servlet.async.path_info";
  public static final String ASYNC_SERVLET_PATH = "javax.servlet.async.servlet_path";
  public static final String ASYNC_QUERY_STRING = "javax.servlet.async.query_string";
  
  public abstract ServletRequest getRequest();
  
  public abstract ServletResponse getResponse();
  
  public abstract boolean hasOriginalRequestAndResponse();
  
  public abstract void dispatch();
  
  public abstract void dispatch(String paramString);
  
  public abstract void dispatch(ServletContext paramServletContext, String paramString);
  
  public abstract void complete();
  
  public abstract void start(Runnable paramRunnable);
  
  public abstract void addListener(AsyncListener paramAsyncListener);
  
  public abstract void addListener(AsyncListener paramAsyncListener, ServletRequest paramServletRequest, ServletResponse paramServletResponse);
  
  public abstract <T extends AsyncListener> T createListener(Class<T> paramClass)
    throws ServletException;
  
  public abstract long getTimeout();
  
  public abstract void setTimeout(long paramLong);
}

/* Location:
 * Qualified Name:     javax.servlet.AsyncContext
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

public class AsyncEvent
{
  private AsyncContext context;
  private ServletRequest request;
  private ServletResponse response;
  private Throwable throwable;
  
  public AsyncEvent(AsyncContext context)
  {
    this.context = context;
  }
  
  public AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response)
  {
    this.context = context;
    this.request = request;
    this.response = response;
  }
  
  public AsyncEvent(AsyncContext context, Throwable throwable)
  {
    this.context = context;
    this.throwable = throwable;
  }
  
  public AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response, Throwable throwable)
  {
    this.context = context;
    this.request = request;
    this.response = response;
    this.throwable = throwable;
  }
  
  public AsyncContext getAsyncContext()
  {
    return context;
  }
  
  public ServletRequest getSuppliedRequest()
  {
    return request;
  }
  
  public ServletResponse getSuppliedResponse()
  {
    return response;
  }
  
  public Throwable getThrowable()
  {
    return throwable;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.AsyncEvent
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.IOException;
import java.util.EventListener;

public abstract interface AsyncListener
  extends EventListener
{
  public abstract void onComplete(AsyncEvent paramAsyncEvent)
    throws IOException;
  
  public abstract void onTimeout(AsyncEvent paramAsyncEvent)
    throws IOException;
  
  public abstract void onError(AsyncEvent paramAsyncEvent)
    throws IOException;
  
  public abstract void onStartAsync(AsyncEvent paramAsyncEvent)
    throws IOException;
}

/* Location:
 * Qualified Name:     javax.servlet.AsyncListener
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

public enum DispatcherType
{
  FORWARD,  INCLUDE,  REQUEST,  ASYNC,  ERROR;
  
  private DispatcherType() {}
}

/* Location:
 * Qualified Name:     javax.servlet.DispatcherType
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.IOException;

public abstract interface Filter
{
  public abstract void init(FilterConfig paramFilterConfig)
    throws ServletException;
  
  public abstract void doFilter(ServletRequest paramServletRequest, ServletResponse paramServletResponse, FilterChain paramFilterChain)
    throws IOException, ServletException;
  
  public abstract void destroy();
}

/* Location:
 * Qualified Name:     javax.servlet.Filter
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.IOException;

public abstract interface FilterChain
{
  public abstract void doFilter(ServletRequest paramServletRequest, ServletResponse paramServletResponse)
    throws IOException, ServletException;
}

/* Location:
 * Qualified Name:     javax.servlet.FilterChain
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.Enumeration;

public abstract interface FilterConfig
{
  public abstract String getFilterName();
  
  public abstract ServletContext getServletContext();
  
  public abstract String getInitParameter(String paramString);
  
  public abstract Enumeration<String> getInitParameterNames();
}

/* Location:
 * Qualified Name:     javax.servlet.FilterConfig
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

public abstract interface FilterRegistration$Dynamic
  extends FilterRegistration, Registration.Dynamic
{}

/* Location:
 * Qualified Name:     javax.servlet.FilterRegistration.Dynamic
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.Collection;
import java.util.EnumSet;

public abstract interface FilterRegistration
  extends Registration
{
  public abstract void addMappingForServletNames(EnumSet<DispatcherType> paramEnumSet, boolean paramBoolean, String... paramVarArgs);
  
  public abstract Collection<String> getServletNameMappings();
  
  public abstract void addMappingForUrlPatterns(EnumSet<DispatcherType> paramEnumSet, boolean paramBoolean, String... paramVarArgs);
  
  public abstract Collection<String> getUrlPatternMappings();
  
  public static abstract interface Dynamic
    extends FilterRegistration, Registration.Dynamic
  {}
}

/* Location:
 * Qualified Name:     javax.servlet.FilterRegistration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.IOException;
import java.io.Serializable;
import java.util.Enumeration;

public abstract class GenericServlet
  implements Servlet, ServletConfig, Serializable
{
  private transient ServletConfig config;
  
  public void destroy() {}
  
  public String getInitParameter(String name)
  {
    return getServletConfig().getInitParameter(name);
  }
  
  public Enumeration<String> getInitParameterNames()
  {
    return getServletConfig().getInitParameterNames();
  }
  
  public ServletConfig getServletConfig()
  {
    return config;
  }
  
  public ServletContext getServletContext()
  {
    return getServletConfig().getServletContext();
  }
  
  public String getServletInfo()
  {
    return "";
  }
  
  public void init(ServletConfig config)
    throws ServletException
  {
    this.config = config;
    init();
  }
  
  public void init()
    throws ServletException
  {}
  
  public void log(String msg)
  {
    getServletContext().log(getServletName() + ": " + msg);
  }
  
  public void log(String message, Throwable t)
  {
    getServletContext().log(getServletName() + ": " + message, t);
  }
  
  public abstract void service(ServletRequest paramServletRequest, ServletResponse paramServletResponse)
    throws ServletException, IOException;
  
  public String getServletName()
  {
    return config.getServletName();
  }
}

/* Location:
 * Qualified Name:     javax.servlet.GenericServlet
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.ResourceBundle;
import javax.servlet.annotation.ServletSecurity.EmptyRoleSemantic;
import javax.servlet.annotation.ServletSecurity.TransportGuarantee;

public class HttpConstraintElement
{
  private static final String LSTRING_FILE = "javax.servlet.LocalStrings";
  private static final ResourceBundle lStrings = ResourceBundle.getBundle("javax.servlet.LocalStrings");
  private ServletSecurity.EmptyRoleSemantic emptyRoleSemantic = ServletSecurity.EmptyRoleSemantic.PERMIT;
  private ServletSecurity.TransportGuarantee transportGuarantee = ServletSecurity.TransportGuarantee.NONE;
  private String[] rolesAllowed = new String[0];
  
  public HttpConstraintElement() {}
  
  public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic)
  {
    this.emptyRoleSemantic = emptyRoleSemantic;
  }
  
  public HttpConstraintElement(ServletSecurity.TransportGuarantee transportGuarantee, String... rolesAllowed)
  {
    this.transportGuarantee = transportGuarantee;
    this.rolesAllowed = rolesAllowed;
  }
  
  public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic, ServletSecurity.TransportGuarantee transportGuarantee, String... rolesAllowed)
  {
    if ((rolesAllowed != null) && (rolesAllowed.length > 0) && (ServletSecurity.EmptyRoleSemantic.DENY.equals(emptyRoleSemantic))) {
      throw new IllegalArgumentException(lStrings.getString("httpConstraintElement.invalidRolesDeny"));
    }
    this.emptyRoleSemantic = emptyRoleSemantic;
    this.transportGuarantee = transportGuarantee;
    this.rolesAllowed = rolesAllowed;
  }
  
  public ServletSecurity.EmptyRoleSemantic getEmptyRoleSemantic()
  {
    return emptyRoleSemantic;
  }
  
  public ServletSecurity.TransportGuarantee getTransportGuarantee()
  {
    return transportGuarantee;
  }
  
  public String[] getRolesAllowed()
  {
    return rolesAllowed;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.HttpConstraintElement
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.ResourceBundle;

public class HttpMethodConstraintElement
  extends HttpConstraintElement
{
  private static final String LSTRING_FILE = "javax.servlet.LocalStrings";
  private static final ResourceBundle lStrings = ResourceBundle.getBundle("javax.servlet.LocalStrings");
  private String methodName;
  
  public HttpMethodConstraintElement(String methodName)
  {
    if ((methodName == null) || (methodName.length() == 0)) {
      throw new IllegalArgumentException(lStrings.getString("httpMethodConstraintElement.invalidMethod"));
    }
    this.methodName = methodName;
  }
  
  public HttpMethodConstraintElement(String methodName, HttpConstraintElement constraint)
  {
    super(constraint.getEmptyRoleSemantic(), constraint.getTransportGuarantee(), constraint.getRolesAllowed());
    if ((methodName == null) || (methodName.length() == 0)) {
      throw new IllegalArgumentException(lStrings.getString("httpMethodConstraintElement.invalidMethod"));
    }
    this.methodName = methodName;
  }
  
  public String getMethodName()
  {
    return methodName;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.HttpMethodConstraintElement
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import javax.servlet.annotation.MultipartConfig;

public class MultipartConfigElement
{
  private String location = "";
  private long maxFileSize = -1L;
  private long maxRequestSize = -1L;
  private int fileSizeThreshold = 0;
  
  public MultipartConfigElement(String location)
  {
    if (location != null) {
      this.location = location;
    }
  }
  
  public MultipartConfigElement(String location, long maxFileSize, long maxRequestSize, int fileSizeThreshold)
  {
    if (location != null) {
      this.location = location;
    }
    this.maxFileSize = maxFileSize;
    this.maxRequestSize = maxRequestSize;
    this.fileSizeThreshold = fileSizeThreshold;
  }
  
  public MultipartConfigElement(MultipartConfig annotation)
  {
    location = annotation.location();
    maxFileSize = annotation.maxFileSize();
    maxRequestSize = annotation.maxRequestSize();
    fileSizeThreshold = annotation.fileSizeThreshold();
  }
  
  public String getLocation()
  {
    return location;
  }
  
  public long getMaxFileSize()
  {
    return maxFileSize;
  }
  
  public long getMaxRequestSize()
  {
    return maxRequestSize;
  }
  
  public int getFileSizeThreshold()
  {
    return fileSizeThreshold;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.MultipartConfigElement
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

public abstract interface Registration$Dynamic
  extends Registration
{
  public abstract void setAsyncSupported(boolean paramBoolean);
}

/* Location:
 * Qualified Name:     javax.servlet.Registration.Dynamic
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.Map;
import java.util.Set;

public abstract interface Registration
{
  public abstract String getName();
  
  public abstract String getClassName();
  
  public abstract boolean setInitParameter(String paramString1, String paramString2);
  
  public abstract String getInitParameter(String paramString);
  
  public abstract Set<String> setInitParameters(Map<String, String> paramMap);
  
  public abstract Map<String, String> getInitParameters();
  
  public static abstract interface Dynamic
    extends Registration
  {
    public abstract void setAsyncSupported(boolean paramBoolean);
  }
}

/* Location:
 * Qualified Name:     javax.servlet.Registration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.IOException;

public abstract interface RequestDispatcher
{
  public static final String ERROR_EXCEPTION = "javax.servlet.error.exception";
  public static final String ERROR_EXCEPTION_TYPE = "javax.servlet.error.exception_type";
  public static final String ERROR_MESSAGE = "javax.servlet.error.message";
  public static final String ERROR_REQUEST_URI = "javax.servlet.error.request_uri";
  public static final String ERROR_SERVLET_NAME = "javax.servlet.error.servlet_name";
  public static final String ERROR_STATUS_CODE = "javax.servlet.error.status_code";
  public static final String FORWARD_CONTEXT_PATH = "javax.servlet.forward.context_path";
  public static final String FORWARD_PATH_INFO = "javax.servlet.forward.path_info";
  public static final String FORWARD_QUERY_STRING = "javax.servlet.forward.query_string";
  public static final String FORWARD_REQUEST_URI = "javax.servlet.forward.request_uri";
  public static final String FORWARD_SERVLET_PATH = "javax.servlet.forward.servlet_path";
  public static final String INCLUDE_CONTEXT_PATH = "javax.servlet.include.context_path";
  public static final String INCLUDE_PATH_INFO = "javax.servlet.include.path_info";
  public static final String INCLUDE_QUERY_STRING = "javax.servlet.include.query_string";
  public static final String INCLUDE_REQUEST_URI = "javax.servlet.include.request_uri";
  public static final String INCLUDE_SERVLET_PATH = "javax.servlet.include.servlet_path";
  
  public abstract void forward(ServletRequest paramServletRequest, ServletResponse paramServletResponse)
    throws ServletException, IOException;
  
  public abstract void include(ServletRequest paramServletRequest, ServletResponse paramServletResponse)
    throws ServletException, IOException;
}

/* Location:
 * Qualified Name:     javax.servlet.RequestDispatcher
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.IOException;

public abstract interface Servlet
{
  public abstract void init(ServletConfig paramServletConfig)
    throws ServletException;
  
  public abstract ServletConfig getServletConfig();
  
  public abstract void service(ServletRequest paramServletRequest, ServletResponse paramServletResponse)
    throws ServletException, IOException;
  
  public abstract String getServletInfo();
  
  public abstract void destroy();
}

/* Location:
 * Qualified Name:     javax.servlet.Servlet
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.Enumeration;

public abstract interface ServletConfig
{
  public abstract String getServletName();
  
  public abstract ServletContext getServletContext();
  
  public abstract String getInitParameter(String paramString);
  
  public abstract Enumeration<String> getInitParameterNames();
}

/* Location:
 * Qualified Name:     javax.servlet.ServletConfig
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.Set;

public abstract interface ServletContainerInitializer
{
  public abstract void onStartup(Set<Class<?>> paramSet, ServletContext paramServletContext)
    throws ServletException;
}

/* Location:
 * Qualified Name:     javax.servlet.ServletContainerInitializer
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Enumeration;
import java.util.EventListener;
import java.util.Map;
import java.util.Set;
import javax.servlet.descriptor.JspConfigDescriptor;

public abstract interface ServletContext
{
  public static final String TEMPDIR = "javax.servlet.context.tempdir";
  public static final String ORDERED_LIBS = "javax.servlet.context.orderedLibs";
  
  public abstract ServletContext getContext(String paramString);
  
  public abstract String getContextPath();
  
  public abstract int getMajorVersion();
  
  public abstract int getMinorVersion();
  
  public abstract int getEffectiveMajorVersion();
  
  public abstract int getEffectiveMinorVersion();
  
  public abstract String getMimeType(String paramString);
  
  public abstract Set<String> getResourcePaths(String paramString);
  
  public abstract URL getResource(String paramString)
    throws MalformedURLException;
  
  public abstract InputStream getResourceAsStream(String paramString);
  
  public abstract RequestDispatcher getRequestDispatcher(String paramString);
  
  public abstract RequestDispatcher getNamedDispatcher(String paramString);
  
  /**
   * @deprecated
   */
  public abstract Servlet getServlet(String paramString)
    throws ServletException;
  
  /**
   * @deprecated
   */
  public abstract Enumeration<Servlet> getServlets();
  
  /**
   * @deprecated
   */
  public abstract Enumeration<String> getServletNames();
  
  public abstract void log(String paramString);
  
  /**
   * @deprecated
   */
  public abstract void log(Exception paramException, String paramString);
  
  public abstract void log(String paramString, Throwable paramThrowable);
  
  public abstract String getRealPath(String paramString);
  
  public abstract String getServerInfo();
  
  public abstract String getInitParameter(String paramString);
  
  public abstract Enumeration<String> getInitParameterNames();
  
  public abstract boolean setInitParameter(String paramString1, String paramString2);
  
  public abstract Object getAttribute(String paramString);
  
  public abstract Enumeration<String> getAttributeNames();
  
  public abstract void setAttribute(String paramString, Object paramObject);
  
  public abstract void removeAttribute(String paramString);
  
  public abstract String getServletContextName();
  
  public abstract ServletRegistration.Dynamic addServlet(String paramString1, String paramString2);
  
  public abstract ServletRegistration.Dynamic addServlet(String paramString, Servlet paramServlet);
  
  public abstract ServletRegistration.Dynamic addServlet(String paramString, Class<? extends Servlet> paramClass);
  
  public abstract <T extends Servlet> T createServlet(Class<T> paramClass)
    throws ServletException;
  
  public abstract ServletRegistration getServletRegistration(String paramString);
  
  public abstract Map<String, ? extends ServletRegistration> getServletRegistrations();
  
  public abstract FilterRegistration.Dynamic addFilter(String paramString1, String paramString2);
  
  public abstract FilterRegistration.Dynamic addFilter(String paramString, Filter paramFilter);
  
  public abstract FilterRegistration.Dynamic addFilter(String paramString, Class<? extends Filter> paramClass);
  
  public abstract <T extends Filter> T createFilter(Class<T> paramClass)
    throws ServletException;
  
  public abstract FilterRegistration getFilterRegistration(String paramString);
  
  public abstract Map<String, ? extends FilterRegistration> getFilterRegistrations();
  
  public abstract SessionCookieConfig getSessionCookieConfig();
  
  public abstract void setSessionTrackingModes(Set<SessionTrackingMode> paramSet)
    throws IllegalStateException, IllegalArgumentException;
  
  public abstract Set<SessionTrackingMode> getDefaultSessionTrackingModes();
  
  public abstract Set<SessionTrackingMode> getEffectiveSessionTrackingModes();
  
  public abstract void addListener(Class<? extends EventListener> paramClass);
  
  public abstract void addListener(String paramString);
  
  public abstract <T extends EventListener> void addListener(T paramT);
  
  public abstract <T extends EventListener> T createListener(Class<T> paramClass)
    throws ServletException;
  
  public abstract void declareRoles(String... paramVarArgs);
  
  public abstract ClassLoader getClassLoader();
  
  public abstract JspConfigDescriptor getJspConfigDescriptor();
}

/* Location:
 * Qualified Name:     javax.servlet.ServletContext
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

public class ServletContextAttributeEvent
  extends ServletContextEvent
{
  private String name;
  private Object value;
  
  public ServletContextAttributeEvent(ServletContext source, String name, Object value)
  {
    super(source);
    this.name = name;
    this.value = value;
  }
  
  public String getName()
  {
    return name;
  }
  
  public Object getValue()
  {
    return value;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.ServletContextAttributeEvent
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.EventListener;

public abstract interface ServletContextAttributeListener
  extends EventListener
{
  public abstract void attributeAdded(ServletContextAttributeEvent paramServletContextAttributeEvent);
  
  public abstract void attributeRemoved(ServletContextAttributeEvent paramServletContextAttributeEvent);
  
  public abstract void attributeReplaced(ServletContextAttributeEvent paramServletContextAttributeEvent);
}

/* Location:
 * Qualified Name:     javax.servlet.ServletContextAttributeListener
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.EventObject;

public class ServletContextEvent
  extends EventObject
{
  public ServletContextEvent(ServletContext source)
  {
    super(source);
  }
  
  public ServletContext getServletContext()
  {
    return (ServletContext)super.getSource();
  }
}

/* Location:
 * Qualified Name:     javax.servlet.ServletContextEvent
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.EventListener;

public abstract interface ServletContextListener
  extends EventListener
{
  public abstract void contextInitialized(ServletContextEvent paramServletContextEvent);
  
  public abstract void contextDestroyed(ServletContextEvent paramServletContextEvent);
}

/* Location:
 * Qualified Name:     javax.servlet.ServletContextListener
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

public class ServletException
  extends Exception
{
  public ServletException() {}
  
  public ServletException(String message)
  {
    super(message);
  }
  
  public ServletException(String message, Throwable rootCause)
  {
    super(message, rootCause);
  }
  
  public ServletException(Throwable rootCause)
  {
    super(rootCause);
  }
  
  public Throwable getRootCause()
  {
    return getCause();
  }
}

/* Location:
 * Qualified Name:     javax.servlet.ServletException
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.IOException;
import java.io.InputStream;

public abstract class ServletInputStream
  extends InputStream
{
  public int readLine(byte[] b, int off, int len)
    throws IOException
  {
    if (len <= 0) {
      return 0;
    }
    int count = 0;
    int c;
    while ((c = read()) != -1)
    {
      b[(off++)] = ((byte)c);
      count++;
      if (c != 10) {
        if (count == len) {
          break;
        }
      }
    }
    return count > 0 ? count : -1;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.ServletInputStream
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.CharConversionException;
import java.io.IOException;
import java.io.OutputStream;
import java.text.MessageFormat;
import java.util.ResourceBundle;

public abstract class ServletOutputStream
  extends OutputStream
{
  private static final String LSTRING_FILE = "javax.servlet.LocalStrings";
  private static final ResourceBundle lStrings = ResourceBundle.getBundle("javax.servlet.LocalStrings");
  
  public void print(String s)
    throws IOException
  {
    if (s == null) {
      s = "null";
    }
    int len = s.length();
    for (int i = 0; i < len; i++)
    {
      char c = s.charAt(i);
      if ((c & 0xFF00) != 0)
      {
        String errMsg = lStrings.getString("err.not_iso8859_1");
        Object[] errArgs = new Object[1];
        errArgs[0] = new Character(c);
        errMsg = MessageFormat.format(errMsg, errArgs);
        throw new CharConversionException(errMsg);
      }
      write(c);
    }
  }
  
  public void print(boolean b)
    throws IOException
  {
    String msg;
    String msg;
    if (b) {
      msg = lStrings.getString("value.true");
    } else {
      msg = lStrings.getString("value.false");
    }
    print(msg);
  }
  
  public void print(char c)
    throws IOException
  {
    print(String.valueOf(c));
  }
  
  public void print(int i)
    throws IOException
  {
    print(String.valueOf(i));
  }
  
  public void print(long l)
    throws IOException
  {
    print(String.valueOf(l));
  }
  
  public void print(float f)
    throws IOException
  {
    print(String.valueOf(f));
  }
  
  public void print(double d)
    throws IOException
  {
    print(String.valueOf(d));
  }
  
  public void println()
    throws IOException
  {
    print("\r\n");
  }
  
  public void println(String s)
    throws IOException
  {
    print(s);
    println();
  }
  
  public void println(boolean b)
    throws IOException
  {
    print(b);
    println();
  }
  
  public void println(char c)
    throws IOException
  {
    print(c);
    println();
  }
  
  public void println(int i)
    throws IOException
  {
    print(i);
    println();
  }
  
  public void println(long l)
    throws IOException
  {
    print(l);
    println();
  }
  
  public void println(float f)
    throws IOException
  {
    print(f);
    println();
  }
  
  public void println(double d)
    throws IOException
  {
    print(d);
    println();
  }
}

/* Location:
 * Qualified Name:     javax.servlet.ServletOutputStream
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.Set;

public abstract interface ServletRegistration$Dynamic
  extends ServletRegistration, Registration.Dynamic
{
  public abstract void setLoadOnStartup(int paramInt);
  
  public abstract void setMultipartConfig(MultipartConfigElement paramMultipartConfigElement);
  
  public abstract void setRunAsRole(String paramString);
  
  public abstract Set<String> setServletSecurity(ServletSecurityElement paramServletSecurityElement);
}

/* Location:
 * Qualified Name:     javax.servlet.ServletRegistration.Dynamic
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.Collection;
import java.util.Set;

public abstract interface ServletRegistration
  extends Registration
{
  public abstract Set<String> addMapping(String... paramVarArgs);
  
  public abstract Collection<String> getMappings();
  
  public abstract String getRunAsRole();
  
  public static abstract interface Dynamic
    extends ServletRegistration, Registration.Dynamic
  {
    public abstract void setLoadOnStartup(int paramInt);
    
    public abstract void setMultipartConfig(MultipartConfigElement paramMultipartConfigElement);
    
    public abstract void setRunAsRole(String paramString);
    
    public abstract Set<String> setServletSecurity(ServletSecurityElement paramServletSecurityElement);
  }
}

/* Location:
 * Qualified Name:     javax.servlet.ServletRegistration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Enumeration;
import java.util.Locale;
import java.util.Map;

public abstract interface ServletRequest
{
  public abstract Object getAttribute(String paramString);
  
  public abstract Enumeration<String> getAttributeNames();
  
  public abstract String getCharacterEncoding();
  
  public abstract void setCharacterEncoding(String paramString)
    throws UnsupportedEncodingException;
  
  public abstract int getContentLength();
  
  public abstract String getContentType();
  
  public abstract ServletInputStream getInputStream()
    throws IOException;
  
  public abstract String getParameter(String paramString);
  
  public abstract Enumeration<String> getParameterNames();
  
  public abstract String[] getParameterValues(String paramString);
  
  public abstract Map<String, String[]> getParameterMap();
  
  public abstract String getProtocol();
  
  public abstract String getScheme();
  
  public abstract String getServerName();
  
  public abstract int getServerPort();
  
  public abstract BufferedReader getReader()
    throws IOException;
  
  public abstract String getRemoteAddr();
  
  public abstract String getRemoteHost();
  
  public abstract void setAttribute(String paramString, Object paramObject);
  
  public abstract void removeAttribute(String paramString);
  
  public abstract Locale getLocale();
  
  public abstract Enumeration<Locale> getLocales();
  
  public abstract boolean isSecure();
  
  public abstract RequestDispatcher getRequestDispatcher(String paramString);
  
  /**
   * @deprecated
   */
  public abstract String getRealPath(String paramString);
  
  public abstract int getRemotePort();
  
  public abstract String getLocalName();
  
  public abstract String getLocalAddr();
  
  public abstract int getLocalPort();
  
  public abstract ServletContext getServletContext();
  
  public abstract AsyncContext startAsync();
  
  public abstract AsyncContext startAsync(ServletRequest paramServletRequest, ServletResponse paramServletResponse);
  
  public abstract boolean isAsyncStarted();
  
  public abstract boolean isAsyncSupported();
  
  public abstract AsyncContext getAsyncContext();
  
  public abstract DispatcherType getDispatcherType();
}

/* Location:
 * Qualified Name:     javax.servlet.ServletRequest
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

public class ServletRequestAttributeEvent
  extends ServletRequestEvent
{
  private String name;
  private Object value;
  
  public ServletRequestAttributeEvent(ServletContext sc, ServletRequest request, String name, Object value)
  {
    super(sc, request);
    this.name = name;
    this.value = value;
  }
  
  public String getName()
  {
    return name;
  }
  
  public Object getValue()
  {
    return value;
  }
}

/* Location:
 * Qualified Name:     javax.servlet.ServletRequestAttributeEvent
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.EventListener;

public abstract interface ServletRequestAttributeListener
  extends EventListener
{
  public abstract void attributeAdded(ServletRequestAttributeEvent paramServletRequestAttributeEvent);
  
  public abstract void attributeRemoved(ServletRequestAttributeEvent paramServletRequestAttributeEvent);
  
  public abstract void attributeReplaced(ServletRequestAttributeEvent paramServletRequestAttributeEvent);
}

/* Location:
 * Qualified Name:     javax.servlet.ServletRequestAttributeListener
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.EventObject;

public class ServletRequestEvent
  extends EventObject
{
  private ServletRequest request;
  
  public ServletRequestEvent(ServletContext sc, ServletRequest request)
  {
    super(sc);
    this.request = request;
  }
  
  public ServletRequest getServletRequest()
  {
    return request;
  }
  
  public ServletContext getServletContext()
  {
    return (ServletContext)super.getSource();
  }
}

/* Location:
 * Qualified Name:     javax.servlet.ServletRequestEvent
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.util.EventListener;

public abstract interface ServletRequestListener
  extends EventListener
{
  public abstract void requestDestroyed(ServletRequestEvent paramServletRequestEvent);
  
  public abstract void requestInitialized(ServletRequestEvent paramServletRequestEvent);
}

/* Location:
 * Qualified Name:     javax.servlet.ServletRequestListener
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Enumeration;
import java.util.Locale;
import java.util.Map;

public class ServletRequestWrapper
  implements ServletRequest
{
  private ServletRequest request;
  
  public ServletRequestWrapper(ServletRequest request)
  {
    if (request == null) {
      throw new IllegalArgumentException("Request cannot be null");
    }
    this.request = request;
  }
  
  public ServletRequest getRequest()
  {
    return request;
  }
  
  public void setRequest(ServletRequest request)
  {
    if (request == null) {
      throw new IllegalArgumentException("Request cannot be null");
    }
    this.request = request;
  }
  
  public Object getAttribute(String name)
  {
    return request.getAttribute(name);
  }
  
  public Enumeration<String> getAttributeNames()
  {
    return request.getAttributeNames();
  }
  
  public String getCharacterEncoding()
  {
    return request.getCharacterEncoding();
  }
  
  public void setCharacterEncoding(String enc)
    throws UnsupportedEncodingException
  {
    request.setCharacterEncoding(enc);
  }
  
  public int getContentLength()
  {
    return request.getContentLength();
  }
  
  public String getContentType()
  {
    return request.getContentType();
  }
  
  public ServletInputStream getInputStream()
    throws IOException
  {
    return request.getInputStream();
  }
  
  public String getParameter(String name)
  {
    return request.getParameter(name);
  }
  
  public Map<String, String[]> getParameterMap()
  {
    return request.getParameterMap();
  }
  
  public Enumeration<String> getParameterNames()
  {
    return request.getParameterNames();
  }
  
  public String[] getParameterValues(String name)
  {
    return request.getParameterValues(name);
  }
  
  public String getProtocol()
  {
    return request.getProtocol();
  }
  
  public String getScheme()
  {
    return request.getScheme();
  }
  
  public String getServerName()
  {
    return request.getServerName();
  }
  
  public int getServerPort()
  {
    return request.getServerPort();
  }
  
  public BufferedReader getReader()
    throws IOException
  {
    return request.getReader();
  }
  
  public String getRemoteAddr()
  {
    return request.getRemoteAddr();
  }
  
  public String getRemoteHost()
  {
    return request.getRemoteHost();
  }
  
  public void setAttribute(String name, Object o)
  {
    request.setAttribute(name, o);
  }
  
  public void removeAttribute(String name)
  {
    request.removeAttribute(name);
  }
  
  public Locale getLocale()
  {
    return request.getLocale();
  }
  
  public Enumeration<Locale> getLocales()
  {
    return request.getLocales();
  }
  
  public boolean isSecure()
  {
    return request.isSecure();
  }
  
  public RequestDispatcher getRequestDispatcher(String path)
  {
    return request.getRequestDispatcher(path);
  }
  
  /**
   * @deprecated
   */
  public String getRealPath(String path)
  {
    return request.getRealPath(path);
  }
  
  public int getRemotePort()
  {
    return request.getRemotePort();
  }
  
  public String getLocalName()
  {
    return request.getLocalName();
  }
  
  public String getLocalAddr()
  {
    return request.getLocalAddr();
  }
  
  public int getLocalPort()
  {
    return request.getLocalPort();
  }
  
  public ServletContext getServletContext()
  {
    return request.getServletContext();
  }
  
  public AsyncContext startAsync()
  {
    return request.startAsync();
  }
  
  public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse)
    throws IllegalStateException
  {
    return request.startAsync(servletRequest, servletResponse);
  }
  
  public boolean isAsyncStarted()
  {
    return request.isAsyncStarted();
  }
  
  public boolean isAsyncSupported()
  {
    return request.isAsyncSupported();
  }
  
  public AsyncContext getAsyncContext()
  {
    return request.getAsyncContext();
  }
  
  public boolean isWrapperFor(ServletRequest wrapped)
  {
    if (request == wrapped) {
      return true;
    }
    if ((request instanceof ServletRequestWrapper)) {
      return ((ServletRequestWrapper)request).isWrapperFor(wrapped);
    }
    return false;
  }
  
  public boolean isWrapperFor(Class wrappedType)
  {
    if (wrappedType.isAssignableFrom(request.getClass())) {
      return true;
    }
    if ((request instanceof ServletRequestWrapper)) {
      return ((ServletRequestWrapper)request).isWrapperFor(wrappedType);
    }
    return false;
  }
  
  public DispatcherType getDispatcherType()
  {
    return request.getDispatcherType();
  }
}

/* Location:
 * Qualified Name:     javax.servlet.ServletRequestWrapper
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Locale;

public abstract interface ServletResponse
{
  public abstract String getCharacterEncoding();
  
  public abstract String getContentType();
  
  public abstract ServletOutputStream getOutputStream()
    throws IOException;
  
  public abstract PrintWriter getWriter()
    throws IOException;
  
  public abstract void setCharacterEncoding(String paramString);
  
  public abstract void setContentLength(int paramInt);
  
  public abstract void setContentType(String paramString);
  
  public abstract void setBufferSize(int paramInt);
  
  public abstract int getBufferSize();
  
  public abstract void flushBuffer()
    throws IOException;
  
  public abstract void resetBuffer();
  
  public abstract boolean isCommitted();
  
  public abstract void reset();
  
  public abstract void setLocale(Locale paramLocale);
  
  public abstract Locale getLocale();
}

/* Location:
 * Qualified Name:     javax.servlet.ServletResponse
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javax.servlet;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Locale;

public class ServletResponseWrapper
  implements ServletResponse
{
  private ServletResponse response;
  
  public ServletResponseWrapper(ServletResponse response)
  {
    if (response == null) {
      throw new IllegalArgumentException("Response cannot be null");
    }
    this.response = response;
  }
  
  public ServletResponse getResponse()
  {
    return response;
  }
  
  public void setResponse(ServletResponse response)
  {
    if (response == null) {
      throw new IllegalArgumentException("Response cannot be null");
    }
    this.response = response;
  }
  
  public void setCharacterEnc
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