link start!
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user