link start!

This commit is contained in:
cherubin
2026-03-17 13:31:18 -07:00
commit 08abe87cfb
5910 changed files with 386288 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package javax.servlet;
import java.io.IOException;
public interface Filter {
void destroy();
void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException;
void init(FilterConfig filterConfig) throws ServletException;
}
@@ -0,0 +1,7 @@
package javax.servlet;
import java.io.IOException;
public interface FilterChain {
void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) throws IOException, ServletException;
}
@@ -0,0 +1,13 @@
package javax.servlet;
import java.util.Enumeration;
public interface FilterConfig {
String getFilterName();
String getInitParameter(String str);
Enumeration getInitParameterNames();
ServletContext getServletContext();
}
@@ -0,0 +1,9 @@
package javax.servlet;
import java.io.IOException;
public interface RequestDispatcher {
void forward(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException;
void include(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException;
}
+15
View File
@@ -0,0 +1,15 @@
package javax.servlet;
import java.io.IOException;
public interface Servlet {
void destroy();
ServletConfig getServletConfig();
String getServletInfo();
void init(ServletConfig servletConfig) throws ServletException;
void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException;
}
@@ -0,0 +1,13 @@
package javax.servlet;
import java.util.Enumeration;
public interface ServletConfig {
String getInitParameter(String str);
Enumeration getInitParameterNames();
ServletContext getServletContext();
String getServletName();
}
@@ -0,0 +1,57 @@
package javax.servlet;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Enumeration;
import java.util.Set;
public interface ServletContext {
Object getAttribute(String str);
Enumeration getAttributeNames();
ServletContext getContext(String str);
String getInitParameter(String str);
Enumeration getInitParameterNames();
int getMajorVersion();
String getMimeType(String str);
int getMinorVersion();
RequestDispatcher getNamedDispatcher(String str);
String getRealPath(String str);
RequestDispatcher getRequestDispatcher(String str);
URL getResource(String str) throws MalformedURLException;
InputStream getResourceAsStream(String str);
Set getResourcePaths(String str);
String getServerInfo();
Servlet getServlet(String str) throws ServletException;
String getServletContextName();
Enumeration getServletNames();
Enumeration getServlets();
void log(Exception exception, String str);
void log(String str);
void log(String str, Throwable th);
void removeAttribute(String str);
void setAttribute(String str, Object obj);
}
@@ -0,0 +1,11 @@
package javax.servlet;
import java.util.EventListener;
public interface ServletContextAttributeListener extends EventListener {
void attributeAdded(ServletContextAttributeEvent servletContextAttributeEvent);
void attributeRemoved(ServletContextAttributeEvent servletContextAttributeEvent);
void attributeReplaced(ServletContextAttributeEvent servletContextAttributeEvent);
}
@@ -0,0 +1,9 @@
package javax.servlet;
import java.util.EventListener;
public interface ServletContextListener extends EventListener {
void contextDestroyed(ServletContextEvent servletContextEvent);
void contextInitialized(ServletContextEvent servletContextEvent);
}
@@ -0,0 +1,68 @@
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 interface ServletRequest {
Object getAttribute(String str);
Enumeration getAttributeNames();
String getCharacterEncoding();
int getContentLength();
String getContentType();
ServletInputStream getInputStream() throws IOException;
String getLocalAddr();
String getLocalName();
int getLocalPort();
Locale getLocale();
Enumeration getLocales();
String getParameter(String str);
Map getParameterMap();
Enumeration getParameterNames();
String[] getParameterValues(String str);
String getProtocol();
BufferedReader getReader() throws IOException;
String getRealPath(String str);
String getRemoteAddr();
String getRemoteHost();
int getRemotePort();
RequestDispatcher getRequestDispatcher(String str);
String getScheme();
String getServerName();
int getServerPort();
boolean isSecure();
void removeAttribute(String str);
void setAttribute(String str, Object obj);
void setCharacterEncoding(String str) throws UnsupportedEncodingException;
}
@@ -0,0 +1,11 @@
package javax.servlet;
import java.util.EventListener;
public interface ServletRequestAttributeListener extends EventListener {
void attributeAdded(ServletRequestAttributeEvent servletRequestAttributeEvent);
void attributeRemoved(ServletRequestAttributeEvent servletRequestAttributeEvent);
void attributeReplaced(ServletRequestAttributeEvent servletRequestAttributeEvent);
}
@@ -0,0 +1,9 @@
package javax.servlet;
import java.util.EventListener;
public interface ServletRequestListener extends EventListener {
void requestDestroyed(ServletRequestEvent servletRequestEvent);
void requestInitialized(ServletRequestEvent servletRequestEvent);
}
@@ -0,0 +1,37 @@
package javax.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Locale;
public interface ServletResponse {
void flushBuffer() throws IOException;
int getBufferSize();
String getCharacterEncoding();
String getContentType();
Locale getLocale();
ServletOutputStream getOutputStream() throws IOException;
PrintWriter getWriter() throws IOException;
boolean isCommitted();
void reset();
void resetBuffer();
void setBufferSize(int i);
void setCharacterEncoding(String str);
void setContentLength(int i);
void setContentType(String str);
void setLocale(Locale locale);
}
@@ -0,0 +1,4 @@
package javax.servlet;
public interface SingleThreadModel {
}
@@ -0,0 +1,62 @@
package javax.servlet.http;
import java.security.Principal;
import java.util.Enumeration;
import javax.servlet.ServletRequest;
public interface HttpServletRequest extends ServletRequest {
public static final String BASIC_AUTH = "BASIC";
public static final String CLIENT_CERT_AUTH = "CLIENT_CERT";
public static final String DIGEST_AUTH = "DIGEST";
public static final String FORM_AUTH = "FORM";
String getAuthType();
String getContextPath();
Cookie[] getCookies();
long getDateHeader(String str);
String getHeader(String str);
Enumeration getHeaderNames();
Enumeration getHeaders(String str);
int getIntHeader(String str);
String getMethod();
String getPathInfo();
String getPathTranslated();
String getQueryString();
String getRemoteUser();
String getRequestURI();
StringBuffer getRequestURL();
String getRequestedSessionId();
String getServletPath();
HttpSession getSession();
HttpSession getSession(boolean z);
Principal getUserPrincipal();
boolean isRequestedSessionIdFromCookie();
boolean isRequestedSessionIdFromURL();
boolean isRequestedSessionIdFromUrl();
boolean isRequestedSessionIdValid();
boolean isUserInRole(String str);
}
@@ -0,0 +1,82 @@
package javax.servlet.http;
import java.io.IOException;
import javax.servlet.ServletResponse;
public interface HttpServletResponse extends ServletResponse {
public static final int SC_ACCEPTED = 202;
public static final int SC_BAD_GATEWAY = 502;
public static final int SC_BAD_REQUEST = 400;
public static final int SC_CONFLICT = 409;
public static final int SC_CONTINUE = 100;
public static final int SC_CREATED = 201;
public static final int SC_EXPECTATION_FAILED = 417;
public static final int SC_FORBIDDEN = 403;
public static final int SC_FOUND = 302;
public static final int SC_GATEWAY_TIMEOUT = 504;
public static final int SC_GONE = 410;
public static final int SC_HTTP_VERSION_NOT_SUPPORTED = 505;
public static final int SC_INTERNAL_SERVER_ERROR = 500;
public static final int SC_LENGTH_REQUIRED = 411;
public static final int SC_METHOD_NOT_ALLOWED = 405;
public static final int SC_MOVED_PERMANENTLY = 301;
public static final int SC_MOVED_TEMPORARILY = 302;
public static final int SC_MULTIPLE_CHOICES = 300;
public static final int SC_NON_AUTHORITATIVE_INFORMATION = 203;
public static final int SC_NOT_ACCEPTABLE = 406;
public static final int SC_NOT_FOUND = 404;
public static final int SC_NOT_IMPLEMENTED = 501;
public static final int SC_NOT_MODIFIED = 304;
public static final int SC_NO_CONTENT = 204;
public static final int SC_OK = 200;
public static final int SC_PARTIAL_CONTENT = 206;
public static final int SC_PAYMENT_REQUIRED = 402;
public static final int SC_PRECONDITION_FAILED = 412;
public static final int SC_PROXY_AUTHENTICATION_REQUIRED = 407;
public static final int SC_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
public static final int SC_REQUEST_ENTITY_TOO_LARGE = 413;
public static final int SC_REQUEST_TIMEOUT = 408;
public static final int SC_REQUEST_URI_TOO_LONG = 414;
public static final int SC_RESET_CONTENT = 205;
public static final int SC_SEE_OTHER = 303;
public static final int SC_SERVICE_UNAVAILABLE = 503;
public static final int SC_SWITCHING_PROTOCOLS = 101;
public static final int SC_TEMPORARY_REDIRECT = 307;
public static final int SC_UNAUTHORIZED = 401;
public static final int SC_UNSUPPORTED_MEDIA_TYPE = 415;
public static final int SC_USE_PROXY = 305;
void addCookie(Cookie cookie);
void addDateHeader(String str, long j);
void addHeader(String str, String str2);
void addIntHeader(String str, int i);
boolean containsHeader(String str);
String encodeRedirectURL(String str);
String encodeRedirectUrl(String str);
String encodeURL(String str);
String encodeUrl(String str);
void sendError(int i) throws IOException;
void sendError(int i, String str) throws IOException;
void sendRedirect(String str) throws IOException;
void setDateHeader(String str, long j);
void setHeader(String str, String str2);
void setIntHeader(String str, int i);
void setStatus(int i);
void setStatus(int i, String str);
}
@@ -0,0 +1,40 @@
package javax.servlet.http;
import java.util.Enumeration;
import javax.servlet.ServletContext;
public interface HttpSession {
Object getAttribute(String str);
Enumeration getAttributeNames();
long getCreationTime();
String getId();
long getLastAccessedTime();
int getMaxInactiveInterval();
ServletContext getServletContext();
HttpSessionContext getSessionContext();
Object getValue(String str);
String[] getValueNames();
void invalidate();
boolean isNew();
void putValue(String str, Object obj);
void removeAttribute(String str);
void removeValue(String str);
void setAttribute(String str, Object obj);
void setMaxInactiveInterval(int i);
}
@@ -0,0 +1,9 @@
package javax.servlet.http;
import java.util.EventListener;
public interface HttpSessionActivationListener extends EventListener {
void sessionDidActivate(HttpSessionEvent httpSessionEvent);
void sessionWillPassivate(HttpSessionEvent httpSessionEvent);
}
@@ -0,0 +1,11 @@
package javax.servlet.http;
import java.util.EventListener;
public interface HttpSessionAttributeListener extends EventListener {
void attributeAdded(HttpSessionBindingEvent httpSessionBindingEvent);
void attributeRemoved(HttpSessionBindingEvent httpSessionBindingEvent);
void attributeReplaced(HttpSessionBindingEvent httpSessionBindingEvent);
}
@@ -0,0 +1,9 @@
package javax.servlet.http;
import java.util.EventListener;
public interface HttpSessionBindingListener extends EventListener {
void valueBound(HttpSessionBindingEvent httpSessionBindingEvent);
void valueUnbound(HttpSessionBindingEvent httpSessionBindingEvent);
}
@@ -0,0 +1,9 @@
package javax.servlet.http;
import java.util.Enumeration;
public interface HttpSessionContext {
Enumeration getIds();
HttpSession getSession(String str);
}
@@ -0,0 +1,9 @@
package javax.servlet.http;
import java.util.EventListener;
public interface HttpSessionListener extends EventListener {
void sessionCreated(HttpSessionEvent httpSessionEvent);
void sessionDestroyed(HttpSessionEvent httpSessionEvent);
}