package javax.servlet;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
- * TODO SERVLET3
+ * TODO SERVLET3 - Add comments
*/
public interface AsyncContext {
public static final String ASYNC_REQUEST_URI =
package javax.servlet;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
* TODO SERVLET3 - Add comments
*/
import java.util.EventListener;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
* TODO SERVLET3 - Add comments
*/
package javax.servlet;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
*/
public enum DispatcherType {
import java.util.EnumSet;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
* TODO SERVLET3 - Add comments
*/
* @throws IllegalArgumentException
* @throws IllegalStateException
*/
- public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes,
+ public void addMappingForServletNames(
+ EnumSet<DispatcherType> dispatcherTypes,
boolean isMatchAfter, String... servletNames);
/**
* @throws IllegalArgumentException
* @throws IllegalStateException
*/
- public void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes,
+ public void addMappingForUrlPatterns(
+ EnumSet<DispatcherType> dispatcherTypes,
boolean isMatchAfter, String... urlPatterns);
public static interface Dynamic
import java.util.Set;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
* TODO SERVLET3 - Add comments
*/
package javax.servlet;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
* TODO SERVLET3 - Add comments
*/
* @return
* @throws IllegalStateException
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public boolean setInitParameter(String name, String value);
* @param className
* @throws IllegalStateException If the context has already been
* initialised
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public ServletRegistration.Dynamic addServlet(String servletName,
String className);
*
* @param servletName
* @param servlet
- * @since 3.0
* @throws IllegalStateException If the context has already been
* initialised
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public ServletRegistration.Dynamic addServlet(String servletName,
Servlet servlet);
*
* @param servletName
* @param servletClass
- * @since 3.0
* @throws IllegalStateException If the context has already been
* initialised
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public ServletRegistration.Dynamic addServlet(String servletName,
Class<? extends Servlet> servletClass);
* @return
* @throws ServletException
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public <T extends Servlet> T createServlet(Class<T> c)
throws ServletException;
* @param servletName
* @return
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public ServletRegistration findServletRegistration(String servletName);
* @throws IllegalStateException If the context has already been
* initialised
*
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public FilterRegistration.Dynamic addFilter(String filterName,
String className);
* @throws IllegalStateException If the context has already been
* initialised
*
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public FilterRegistration.Dynamic addFilter(String filterName,
Filter filter);
* @throws IllegalStateException If the context has already been
* initialised
*
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public FilterRegistration.Dynamic addFilter(String filterName,
Class<? extends Filter> filterClass);
* @return
* @throws ServletException
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public <T extends Filter> T createFilter(Class<T> c)
throws ServletException;
* @param filterName
* @return
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public FilterRegistration findFilterRegistration(String filterName);
/**
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public SessionCookieConfig getSessionCookieConfig();
* {@link SessionTrackingMode}
* @throws IllegalStateException If the context has already been
* initialised
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public void setSessionTrackingModes(
EnumSet<SessionTrackingMode> sessionTrackingModes)
/**
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public EnumSet<SessionTrackingMode> getDefaultSessionTrackingModes();
/**
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public EnumSet<SessionTrackingMode> getEffectiveSessionTrackingModes();
import java.util.Set;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
* TODO SERVLET3 - Add comments
*/
/**
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public ServletContext getServletContext();
* @return
* @throws java.lang.IllegalStateException If async is not supported for
* this request
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public AsyncContext startAsync();
* @param servletResponse
* @return
* @throws java.lang.IllegalStateException
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public AsyncContext startAsync(ServletRequest servletRequest,
ServletResponse servletResponse);
/**
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public boolean isAsyncStarted();
/**
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public boolean isAsyncSupported();
*
* @return
* @throws java.lang.IllegalStateException
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public AsyncContext getAsyncContext();
/**
*
* @param listener
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public void addAsyncListener(AsyncListener listener);
* @param listener
* @param servletRequest
* @param servletResponse
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public void addAsyncListener(AsyncListener listener,
ServletRequest servletRequest, ServletResponse servletResponse);
*
* @param timeout
* @throws java.lang.IllegalStateException
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public void setAsyncTimeout(long timeout);
/**
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public long getAsyncTimeout();
/**
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public DispatcherType getDispatcherType();
}
* getServletContext() on the wrapped request object.
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
*/
public ServletContext getServletContext() {
return request.getServletContext();
*
* @return
* @throws java.lang.IllegalStateException
- * @since 3.0
+ * @since Servlet 3.0
*/
public AsyncContext startAsync() {
return request.startAsync();
* @param servletResponse
* @return
* @throws java.lang.IllegalStateException
- * @since 3.0
+ * @since Servlet 3.0
*/
public AsyncContext startAsync(ServletRequest servletRequest,
ServletResponse servletResponse)
* isAsyncStarted() on the wrapped request object.
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
*/
public boolean isAsyncStarted() {
return request.isAsyncStarted();
* isAsyncSupported() on the wrapped request object.
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
*/
public boolean isAsyncSupported() {
return request.isAsyncSupported();
* getAsyncContext() on the wrapped request object.
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
*/
public AsyncContext getAsyncContext() {
return request.getAsyncContext();
* addAsyncListener(AsyncListener) on the wrapped request object.
*
* @param listener
- * @since 3.0
+ * @since Servlet 3.0
*/
public void addAsyncListener(AsyncListener listener) {
request.addAsyncListener(listener);
* @param listener
* @param servletRequest
* @param servletResponse
- * @since 3.0
+ * @since Servlet 3.0
*/
public void addAsyncListener(AsyncListener listener,
ServletRequest servletRequest, ServletResponse servletResponse) {
* setAsyncTimeout(long) on the wrapped request object.
*
* @param listener
- * @since 3.0
+ * @since Servlet 3.0
*/
public void setAsyncTimeout(long timeout) {
request.setAsyncTimeout(timeout);
* The default behavior of this method is to call
* getAsyncTimeout() on the wrapped request object.
*
- * @since 3.0
+ * @since Servlet 3.0
*/
public long getAsyncTimeout() {
return request.getAsyncTimeout();
/**
*
- * @param listener
- * @since 3.0
+ * @param wrapped
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public boolean isWrapperFor(ServletRequest wrapped) {
if (request == wrapped) {
/**
*
- * @param listener
- * @since 3.0
+ * @param wrappedType
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public boolean isWrapperFor(Class<? extends ServletRequest> wrappedType) {
if (wrappedType.isAssignableFrom(request.getClass())) {
* The default behavior of this method is to call
* getDispatcherType() on the wrapped request object.
*
- * @since 3.0
+ * @since Servlet 3.0
*/
public DispatcherType getDispatcherType() {
return this.request.getDispatcherType();
/**
*
- * @param listener
- * @since 3.0
+ * @param wrapped
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public boolean isWrapperFor(ServletResponse wrapped) {
if (response == wrapped) {
/**
*
- * @param listener
- * @since 3.0
+ * @param wrappedType
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public boolean isWrapperFor(Class<? extends ServletResponse> wrappedType) {
if (wrappedType.isAssignableFrom(response.getClass())) {
package javax.servlet;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
*/
public enum SessionTrackingMode {
import java.lang.annotation.Target;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
- * TODO SERVLET3
+ * TODO SERVLET3 - Add comments
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
import javax.servlet.DispatcherType;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
- * TODO SERVLET3
+ * TODO SERVLET3 - Add comments
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
import java.lang.annotation.Documented;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
- * TODO SERVLET3
+ * TODO SERVLET3 - Add comments
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
import java.lang.annotation.Documented;
/**
- * @since 3.0
+ * @since Servlet 3.0
* $Id$
- * TODO SERVLET3
+ * TODO SERVLET3 - Add comments
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
/**
*
* @return
- * @since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public boolean isHttpOnly() {
return httpOnly;
/**
*
* @param httpOnly
- * since 3.0
+ * @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public void setHttpOnly(boolean httpOnly) {
this.httpOnly = httpOnly;
*
* @return
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public int getStatus();
* @param name
* @return
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public String getHeader(String name);
* @param name
* @return
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public Iterable<String> getHeaders(String name);
*
* @return
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public Iterable<String> getHeaderNames();
/**
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public int getStatus() {
return this._getHttpServletResponse().getStatus();
/**
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public String getHeader(String name) {
return this._getHttpServletResponse().getHeader(name);
/**
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public Iterable<String> getHeaders(String name) {
return this._getHttpServletResponse().getHeaders(name);
/**
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public Iterable<String> getHeaderNames() {
return this._getHttpServletResponse().getHeaderNames();
/**
* @since Servlet 3.0
+ * TODO SERVLET3 - Add comments
*/
public interface Part {
public InputStream getInputStream() throws IOException;