<!-- Imports -->
<module name="IllegalImport"/>
+ <module name="AvoidStarImport"/>
<!--
Do not use - does not take account of imports required for Javadocs
<module name="UnusedImports"/>
}
}
+ @Override
public boolean hasNext() {
if (this.next != null)
return true;
return hasNext();
}
+ @Override
public FeatureDescriptor next() {
if (!hasNext())
throw new NoSuchElementException();
}
+ @Override
public void remove() {
throw new UnsupportedOperationException();
}
* Called by the servlet container to indicate to a servlet that the servlet
* is being taken out of service. See {@link Servlet#destroy}.
*/
+ @Override
public void destroy() {
// NOOP by default
}
* @return String a <code>String</code> containing the value of the
* initialization parameter
*/
+ @Override
public String getInitParameter(String name) {
return getServletConfig().getInitParameter(name);
}
* @return Enumeration an enumeration of <code>String</code> objects
* containing the names of the servlet's initialization parameters
*/
+ @Override
public Enumeration<String> getInitParameterNames() {
return getServletConfig().getInitParameterNames();
}
* @return ServletConfig the <code>ServletConfig</code> object that
* initialized this servlet
*/
+ @Override
public ServletConfig getServletConfig() {
return config;
}
* @return ServletContext the <code>ServletContext</code> object passed to
* this servlet by the <code>init</code> method
*/
+ @Override
public ServletContext getServletContext() {
return getServletConfig().getServletContext();
}
*
* @return String information about this servlet, by default an empty string
*/
+ @Override
public String getServletInfo() {
return "";
}
* normal operation
* @see UnavailableException
*/
+ @Override
public void init(ServletConfig config) throws ServletException {
this.config = config;
this.init();
* @exception IOException
* if an input or output exception occurs
*/
+ @Override
public abstract void service(ServletRequest req, ServletResponse res)
throws ServletException, IOException;
*
* @return the name of this servlet instance
*/
+ @Override
public String getServletName() {
return config.getServletName();
}
* The default behavior of this method is to call getAttribute(String name)
* on the wrapped request object.
*/
+ @Override
public Object getAttribute(String name) {
return this.request.getAttribute(name);
}
* The default behavior of this method is to return getAttributeNames() on
* the wrapped request object.
*/
+ @Override
public Enumeration<String> getAttributeNames() {
return this.request.getAttributeNames();
}
* The default behavior of this method is to return getCharacterEncoding()
* on the wrapped request object.
*/
+ @Override
public String getCharacterEncoding() {
return this.request.getCharacterEncoding();
}
* The default behavior of this method is to set the character encoding on
* the wrapped request object.
*/
+ @Override
public void setCharacterEncoding(String enc)
throws java.io.UnsupportedEncodingException {
this.request.setCharacterEncoding(enc);
* The default behavior of this method is to return getContentLength() on
* the wrapped request object.
*/
+ @Override
public int getContentLength() {
return this.request.getContentLength();
}
* The default behavior of this method is to return getContentType() on the
* wrapped request object.
*/
+ @Override
public String getContentType() {
return this.request.getContentType();
}
* The default behavior of this method is to return getInputStream() on the
* wrapped request object.
*/
+ @Override
public ServletInputStream getInputStream() throws IOException {
return this.request.getInputStream();
}
* The default behavior of this method is to return getParameter(String
* name) on the wrapped request object.
*/
+ @Override
public String getParameter(String name) {
return this.request.getParameter(name);
}
* The default behavior of this method is to return getParameterMap() on the
* wrapped request object.
*/
+ @Override
public Map<String, String[]> getParameterMap() {
return this.request.getParameterMap();
}
* The default behavior of this method is to return getParameterNames() on
* the wrapped request object.
*/
+ @Override
public Enumeration<String> getParameterNames() {
return this.request.getParameterNames();
}
* The default behavior of this method is to return
* getParameterValues(String name) on the wrapped request object.
*/
+ @Override
public String[] getParameterValues(String name) {
return this.request.getParameterValues(name);
}
* The default behavior of this method is to return getProtocol() on the
* wrapped request object.
*/
+ @Override
public String getProtocol() {
return this.request.getProtocol();
}
* The default behavior of this method is to return getScheme() on the
* wrapped request object.
*/
+ @Override
public String getScheme() {
return this.request.getScheme();
}
* The default behavior of this method is to return getServerName() on the
* wrapped request object.
*/
+ @Override
public String getServerName() {
return this.request.getServerName();
}
* The default behavior of this method is to return getServerPort() on the
* wrapped request object.
*/
+ @Override
public int getServerPort() {
return this.request.getServerPort();
}
* The default behavior of this method is to return getReader() on the
* wrapped request object.
*/
+ @Override
public BufferedReader getReader() throws IOException {
return this.request.getReader();
}
* The default behavior of this method is to return getRemoteAddr() on the
* wrapped request object.
*/
+ @Override
public String getRemoteAddr() {
return this.request.getRemoteAddr();
}
* The default behavior of this method is to return getRemoteHost() on the
* wrapped request object.
*/
+ @Override
public String getRemoteHost() {
return this.request.getRemoteHost();
}
* The default behavior of this method is to return setAttribute(String
* name, Object o) on the wrapped request object.
*/
+ @Override
public void setAttribute(String name, Object o) {
this.request.setAttribute(name, o);
}
* The default behavior of this method is to call removeAttribute(String
* name) on the wrapped request object.
*/
+ @Override
public void removeAttribute(String name) {
this.request.removeAttribute(name);
}
* The default behavior of this method is to return getLocale() on the
* wrapped request object.
*/
+ @Override
public Locale getLocale() {
return this.request.getLocale();
}
* The default behavior of this method is to return getLocales() on the
* wrapped request object.
*/
+ @Override
public Enumeration<Locale> getLocales() {
return this.request.getLocales();
}
* The default behavior of this method is to return isSecure() on the
* wrapped request object.
*/
+ @Override
public boolean isSecure() {
return this.request.isSecure();
}
* The default behavior of this method is to return
* getRequestDispatcher(String path) on the wrapped request object.
*/
+ @Override
public RequestDispatcher getRequestDispatcher(String path) {
return this.request.getRequestDispatcher(path);
}
*
* @deprecated As of Version 3.0 of the Java Servlet API
*/
+ @Override
@SuppressWarnings("dep-ann")
// Spec API does not use @Deprecated
public String getRealPath(String path) {
*
* @since 2.4
*/
+ @Override
public int getRemotePort() {
return this.request.getRemotePort();
}
*
* @since 2.4
*/
+ @Override
public String getLocalName() {
return this.request.getLocalName();
}
*
* @since 2.4
*/
+ @Override
public String getLocalAddr() {
return this.request.getLocalAddr();
}
*
* @since 2.4
*/
+ @Override
public int getLocalPort() {
return this.request.getLocalPort();
}
*
* @since Servlet 3.0
*/
+ @Override
public ServletContext getServletContext() {
return request.getServletContext();
}
* @throws java.lang.IllegalStateException
* @since Servlet 3.0
*/
+ @Override
public AsyncContext startAsync() {
return request.startAsync();
}
* @throws java.lang.IllegalStateException
* @since Servlet 3.0
*/
+ @Override
public AsyncContext startAsync(ServletRequest servletRequest,
ServletResponse servletResponse) throws IllegalStateException {
return request.startAsync(servletRequest, servletResponse);
*
* @since Servlet 3.0
*/
+ @Override
public boolean isAsyncStarted() {
return request.isAsyncStarted();
}
*
* @since Servlet 3.0
*/
+ @Override
public boolean isAsyncSupported() {
return request.isAsyncSupported();
}
*
* @since Servlet 3.0
*/
+ @Override
public AsyncContext getAsyncContext() {
return request.getAsyncContext();
}
*
* @since Servlet 3.0
*/
+ @Override
public DispatcherType getDispatcherType() {
return this.request.getDispatcherType();
}
*
* @since 2.4
*/
+ @Override
public void setCharacterEncoding(String charset) {
this.response.setCharacterEncoding(charset);
}
* The default behavior of this method is to return getCharacterEncoding()
* on the wrapped response object.
*/
+ @Override
public String getCharacterEncoding() {
return this.response.getCharacterEncoding();
}
* The default behavior of this method is to return getOutputStream() on the
* wrapped response object.
*/
+ @Override
public ServletOutputStream getOutputStream() throws IOException {
return this.response.getOutputStream();
}
* The default behavior of this method is to return getWriter() on the
* wrapped response object.
*/
+ @Override
public PrintWriter getWriter() throws IOException {
return this.response.getWriter();
}
* The default behavior of this method is to call setContentLength(int len)
* on the wrapped response object.
*/
+ @Override
public void setContentLength(int len) {
this.response.setContentLength(len);
}
* The default behavior of this method is to call setContentType(String
* type) on the wrapped response object.
*/
+ @Override
public void setContentType(String type) {
this.response.setContentType(type);
}
*
* @since 2.4
*/
+ @Override
public String getContentType() {
return this.response.getContentType();
}
* The default behavior of this method is to call setBufferSize(int size) on
* the wrapped response object.
*/
+ @Override
public void setBufferSize(int size) {
this.response.setBufferSize(size);
}
* The default behavior of this method is to return getBufferSize() on the
* wrapped response object.
*/
+ @Override
public int getBufferSize() {
return this.response.getBufferSize();
}
* The default behavior of this method is to call flushBuffer() on the
* wrapped response object.
*/
+ @Override
public void flushBuffer() throws IOException {
this.response.flushBuffer();
}
* The default behavior of this method is to return isCommitted() on the
* wrapped response object.
*/
+ @Override
public boolean isCommitted() {
return this.response.isCommitted();
}
* The default behavior of this method is to call reset() on the wrapped
* response object.
*/
+ @Override
public void reset() {
this.response.reset();
}
* The default behavior of this method is to call resetBuffer() on the
* wrapped response object.
*/
+ @Override
public void resetBuffer() {
this.response.resetBuffer();
}
* The default behavior of this method is to call setLocale(Locale loc) on
* the wrapped response object.
*/
+ @Override
public void setLocale(Locale loc) {
this.response.setLocale(loc);
}
* The default behavior of this method is to return getLocale() on the
* wrapped response object.
*/
+ @Override
public Locale getLocale() {
return this.response.getLocale();
}
* The default behavior of this method is to return getAuthType() on the
* wrapped request object.
*/
+ @Override
public String getAuthType() {
return this._getHttpServletRequest().getAuthType();
}
* The default behavior of this method is to return getCookies() on the
* wrapped request object.
*/
+ @Override
public Cookie[] getCookies() {
return this._getHttpServletRequest().getCookies();
}
* The default behavior of this method is to return getDateHeader(String
* name) on the wrapped request object.
*/
+ @Override
public long getDateHeader(String name) {
return this._getHttpServletRequest().getDateHeader(name);
}
* The default behavior of this method is to return getHeader(String name)
* on the wrapped request object.
*/
+ @Override
public String getHeader(String name) {
return this._getHttpServletRequest().getHeader(name);
}
* The default behavior of this method is to return getHeaders(String name)
* on the wrapped request object.
*/
+ @Override
public Enumeration<String> getHeaders(String name) {
return this._getHttpServletRequest().getHeaders(name);
}
* The default behavior of this method is to return getHeaderNames() on the
* wrapped request object.
*/
+ @Override
public Enumeration<String> getHeaderNames() {
return this._getHttpServletRequest().getHeaderNames();
}
* The default behavior of this method is to return getIntHeader(String
* name) on the wrapped request object.
*/
+ @Override
public int getIntHeader(String name) {
return this._getHttpServletRequest().getIntHeader(name);
}
* The default behavior of this method is to return getMethod() on the
* wrapped request object.
*/
+ @Override
public String getMethod() {
return this._getHttpServletRequest().getMethod();
}
* The default behavior of this method is to return getPathInfo() on the
* wrapped request object.
*/
+ @Override
public String getPathInfo() {
return this._getHttpServletRequest().getPathInfo();
}
* The default behavior of this method is to return getPathTranslated() on
* the wrapped request object.
*/
+ @Override
public String getPathTranslated() {
return this._getHttpServletRequest().getPathTranslated();
}
* The default behavior of this method is to return getContextPath() on the
* wrapped request object.
*/
+ @Override
public String getContextPath() {
return this._getHttpServletRequest().getContextPath();
}
* The default behavior of this method is to return getQueryString() on the
* wrapped request object.
*/
+ @Override
public String getQueryString() {
return this._getHttpServletRequest().getQueryString();
}
* The default behavior of this method is to return getRemoteUser() on the
* wrapped request object.
*/
+ @Override
public String getRemoteUser() {
return this._getHttpServletRequest().getRemoteUser();
}
* The default behavior of this method is to return isUserInRole(String
* role) on the wrapped request object.
*/
+ @Override
public boolean isUserInRole(String role) {
return this._getHttpServletRequest().isUserInRole(role);
}
* The default behavior of this method is to return getUserPrincipal() on
* the wrapped request object.
*/
+ @Override
public java.security.Principal getUserPrincipal() {
return this._getHttpServletRequest().getUserPrincipal();
}
* The default behavior of this method is to return getRequestedSessionId()
* on the wrapped request object.
*/
+ @Override
public String getRequestedSessionId() {
return this._getHttpServletRequest().getRequestedSessionId();
}
* The default behavior of this method is to return getRequestURI() on the
* wrapped request object.
*/
+ @Override
public String getRequestURI() {
return this._getHttpServletRequest().getRequestURI();
}
* The default behavior of this method is to return getRequestURL() on the
* wrapped request object.
*/
+ @Override
public StringBuffer getRequestURL() {
return this._getHttpServletRequest().getRequestURL();
}
* The default behavior of this method is to return getServletPath() on the
* wrapped request object.
*/
+ @Override
public String getServletPath() {
return this._getHttpServletRequest().getServletPath();
}
* The default behavior of this method is to return getSession(boolean
* create) on the wrapped request object.
*/
+ @Override
public HttpSession getSession(boolean create) {
return this._getHttpServletRequest().getSession(create);
}
* The default behavior of this method is to return getSession() on the
* wrapped request object.
*/
+ @Override
public HttpSession getSession() {
return this._getHttpServletRequest().getSession();
}
* The default behavior of this method is to return
* isRequestedSessionIdValid() on the wrapped request object.
*/
+ @Override
public boolean isRequestedSessionIdValid() {
return this._getHttpServletRequest().isRequestedSessionIdValid();
}
* The default behavior of this method is to return
* isRequestedSessionIdFromCookie() on the wrapped request object.
*/
+ @Override
public boolean isRequestedSessionIdFromCookie() {
return this._getHttpServletRequest().isRequestedSessionIdFromCookie();
}
* The default behavior of this method is to return
* isRequestedSessionIdFromURL() on the wrapped request object.
*/
+ @Override
public boolean isRequestedSessionIdFromURL() {
return this._getHttpServletRequest().isRequestedSessionIdFromURL();
}
*
* @deprecated As of Version 3.0 of the Java Servlet API
*/
+ @Override
@SuppressWarnings("dep-ann")
// Spec API does not use @Deprecated
public boolean isRequestedSessionIdFromUrl() {
/**
* @since Servlet 3.0 TODO SERVLET3 - Add comments
*/
+ @Override
public boolean authenticate(HttpServletResponse response)
throws IOException, ServletException {
return this._getHttpServletRequest().authenticate(response);
/**
* @since Servlet 3.0 TODO SERVLET3 - Add comments
*/
+ @Override
public void login(String username, String password) throws ServletException {
this._getHttpServletRequest().login(username, password);
}
/**
* @since Servlet 3.0 TODO SERVLET3 - Add comments
*/
+ @Override
public void logout() throws ServletException {
this._getHttpServletRequest().logout();
}
/**
* @since Servlet 3.0 TODO SERVLET3 - Add comments
*/
+ @Override
public Collection<Part> getParts() throws IllegalStateException,
IOException, ServletException {
return this._getHttpServletRequest().getParts();
* @throws IllegalStateException
* @since Servlet 3.0 TODO SERVLET3 - Add comments
*/
+ @Override
public Part getPart(String name) throws IllegalStateException, IOException,
ServletException {
return this._getHttpServletRequest().getPart(name);
* The default behavior of this method is to call addCookie(Cookie cookie)
* on the wrapped response object.
*/
+ @Override
public void addCookie(Cookie cookie) {
this._getHttpServletResponse().addCookie(cookie);
}
* The default behavior of this method is to call containsHeader(String
* name) on the wrapped response object.
*/
+ @Override
public boolean containsHeader(String name) {
return this._getHttpServletResponse().containsHeader(name);
}
* The default behavior of this method is to call encodeURL(String url) on
* the wrapped response object.
*/
+ @Override
public String encodeURL(String url) {
return this._getHttpServletResponse().encodeURL(url);
}
* The default behavior of this method is to return encodeRedirectURL(String
* url) on the wrapped response object.
*/
+ @Override
public String encodeRedirectURL(String url) {
return this._getHttpServletResponse().encodeRedirectURL(url);
}
*
* @deprecated As of Version 3.0 of the Java Servlet API
*/
+ @Override
@SuppressWarnings("dep-ann")
// Spec API does not use @Deprecated
public String encodeUrl(String url) {
*
* @deprecated As of Version 3.0 of the Java Servlet API
*/
+ @Override
@SuppressWarnings("dep-ann")
// Spec API does not use @Deprecated
public String encodeRedirectUrl(String url) {
* The default behavior of this method is to call sendError(int sc, String
* msg) on the wrapped response object.
*/
+ @Override
public void sendError(int sc, String msg) throws IOException {
this._getHttpServletResponse().sendError(sc, msg);
}
* The default behavior of this method is to call sendError(int sc) on the
* wrapped response object.
*/
+ @Override
public void sendError(int sc) throws IOException {
this._getHttpServletResponse().sendError(sc);
}
* The default behavior of this method is to return sendRedirect(String
* location) on the wrapped response object.
*/
+ @Override
public void sendRedirect(String location) throws IOException {
this._getHttpServletResponse().sendRedirect(location);
}
* The default behavior of this method is to call setDateHeader(String name,
* long date) on the wrapped response object.
*/
+ @Override
public void setDateHeader(String name, long date) {
this._getHttpServletResponse().setDateHeader(name, date);
}
* The default behavior of this method is to call addDateHeader(String name,
* long date) on the wrapped response object.
*/
+ @Override
public void addDateHeader(String name, long date) {
this._getHttpServletResponse().addDateHeader(name, date);
}
* The default behavior of this method is to return setHeader(String name,
* String value) on the wrapped response object.
*/
+ @Override
public void setHeader(String name, String value) {
this._getHttpServletResponse().setHeader(name, value);
}
* The default behavior of this method is to return addHeader(String name,
* String value) on the wrapped response object.
*/
+ @Override
public void addHeader(String name, String value) {
this._getHttpServletResponse().addHeader(name, value);
}
* The default behavior of this method is to call setIntHeader(String name,
* int value) on the wrapped response object.
*/
+ @Override
public void setIntHeader(String name, int value) {
this._getHttpServletResponse().setIntHeader(name, value);
}
* The default behavior of this method is to call addIntHeader(String name,
* int value) on the wrapped response object.
*/
+ @Override
public void addIntHeader(String name, int value) {
this._getHttpServletResponse().addIntHeader(name, value);
}
* The default behavior of this method is to call setStatus(int sc) on the
* wrapped response object.
*/
+ @Override
public void setStatus(int sc) {
this._getHttpServletResponse().setStatus(sc);
}
*
* @deprecated As of Version 3.0 of the Java Servlet API
*/
+ @Override
@SuppressWarnings("dep-ann")
// Spec API does not use @Deprecated
public void setStatus(int sc, String sm) {
/**
* @since Servlet 3.0 TODO SERVLET3 - Add comments
*/
+ @Override
public int getStatus() {
return this._getHttpServletResponse().getStatus();
}
/**
* @since Servlet 3.0 TODO SERVLET3 - Add comments
*/
+ @Override
public String getHeader(String name) {
return this._getHttpServletResponse().getHeader(name);
}
/**
* @since Servlet 3.0 TODO SERVLET3 - Add comments
*/
+ @Override
public Collection<String> getHeaders(String name) {
return this._getHttpServletResponse().getHeaders(name);
}
/**
* @since Servlet 3.0 TODO SERVLET3 - Add comments
*/
+ @Override
public Collection<String> getHeaderNames() {
return this._getHttpServletResponse().getHeaderNames();
}
package javax.servlet.jsp;
-import javax.servlet.*;
-import javax.servlet.http.*;
import java.io.IOException;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
/**
* The HttpJspPage interface describes the interaction that a JSP Page
* Implementation Class must satisfy when using the HTTP protocol.
*/
package javax.servlet.jsp;
-import javax.servlet.*;
+import javax.servlet.Servlet;
/**
* The JspPage interface describes the generic interaction that a JSP Page
this.key = key;
}
+ @Override
public String getKey() {
return this.key;
}
+ @Override
public V getValue() {
return getAttribute(this.key);
}
+ @Override
public V setValue(Object value) {
if (value == null) {
removeAttribute(this.key);
import java.io.Reader;
import java.io.Writer;
import java.io.IOException;
-import javax.servlet.jsp.*;
+
+import javax.servlet.jsp.JspWriter;
/**
* An encapsulation of the evaluation of the body of an action so it is
*/
package javax.servlet.jsp.tagext;
-import javax.servlet.jsp.*;
+import javax.servlet.jsp.JspException;
+
/**
* The BodyTag interface extends IterationTag by defining additional methods
*/
public class BodyTagSupport extends TagSupport implements BodyTag {
+ private static final long serialVersionUID = -7235752615580319833L;
+
/**
* Default constructor, all subclasses are required to only define a public
* constructor with the same signature, and to call the superclass
* @see #doInitBody()
* @see BodyTag#setBodyContent
*/
+ @Override
public void setBodyContent(BodyContent b) {
this.bodyContent = b;
}
* @see #doAfterBody
* @see BodyTag#doInitBody
*/
+ @Override
public void doInitBody() throws JspException {
// NOOP by default
}
package javax.servlet.jsp.tagext;
-import javax.servlet.jsp.*;
+import javax.servlet.jsp.JspException;
+
/**
* The IterationTag interface extends Tag by defining one additional
import java.io.IOException;
import java.io.Writer;
-import javax.servlet.jsp.*;
+
+import javax.servlet.jsp.JspContext;
+import javax.servlet.jsp.JspException;
/**
* Encapsulates a portion of JSP code in an object that
* an error writing to the output stream
* @see SimpleTag#doTag()
*/
+ @Override
public void doTag() throws JspException, IOException {
// NOOP by default
}
*
* @param parent the tag that encloses this tag
*/
+ @Override
public void setParent( JspTag parent ) {
this.parentTag = parent;
}
*
* @return the parent of this tag
*/
+ @Override
public JspTag getParent() {
return this.parentTag;
}
* @param pc the page context for this invocation
* @see SimpleTag#setJspContext
*/
+ @Override
public void setJspContext( JspContext pc ) {
this.jspContext = pc;
}
* not called at all.
* @see SimpleTag#setJspBody
*/
+ @Override
public void setJspBody( JspFragment jspBody ) {
this.jspBody = jspBody;
}
package javax.servlet.jsp.tagext;
-import javax.servlet.jsp.*;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.PageContext;
/**
*/
package javax.servlet.jsp.tagext;
-import javax.servlet.jsp.*;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.PageContext;
/**
* Wraps any SimpleTag and exposes it using a Tag interface. This is used to
* @throws UnsupportedOperationException
* Must not be called
*/
+ @Override
public void setPageContext(PageContext pc) {
throw new UnsupportedOperationException(
"Illegal to invoke setPageContext() on TagAdapter wrapper");
* @throws UnsupportedOperationException
* Must not be called.
*/
+ @Override
public void setParent(Tag parentTag) {
throw new UnsupportedOperationException(
"Illegal to invoke setParent() on TagAdapter wrapper");
*
* @return The parent of the tag being adapted.
*/
+ @Override
public Tag getParent() {
if (!parentDetermined) {
JspTag adapteeParent = simpleTagAdaptee.getParent();
* @throws JspException
* never thrown
*/
+ @Override
public int doStartTag() throws JspException {
throw new UnsupportedOperationException(
"Illegal to invoke doStartTag() on TagAdapter wrapper");
* @throws JspException
* never thrown
*/
+ @Override
public int doEndTag() throws JspException {
throw new UnsupportedOperationException(
"Illegal to invoke doEndTag() on TagAdapter wrapper");
* @throws UnsupportedOperationException
* Must not be called
*/
+ @Override
public void release() {
throw new UnsupportedOperationException(
"Illegal to invoke release() on TagAdapter wrapper");
*
* @see Tag#doStartTag()
*/
+ @Override
public int doStartTag() throws JspException {
return SKIP_BODY;
}
*
* @see Tag#doEndTag()
*/
+ @Override
public int doEndTag() throws JspException {
return EVAL_PAGE;
}
*
* @see IterationTag#doAfterBody()
*/
+ @Override
public int doAfterBody() throws JspException {
return SKIP_BODY;
}
*
* @see Tag#release()
*/
+ @Override
public void release() {
parent = null;
id = null;
* @param t The parent Tag.
* @see Tag#setParent(Tag)
*/
+ @Override
public void setParent(Tag t) {
parent = t;
}
*
* @return the parent tag instance or null
*/
+ @Override
public Tag getParent() {
return parent;
}
* @param pageContext The PageContext.
* @see Tag#setPageContext
*/
+ @Override
public void setPageContext(PageContext pageContext) {
this.pageContext = pageContext;
}
import java.io.IOException;
import java.net.InetSocketAddress;
+import java.net.SocketException;
import java.nio.ByteBuffer;
import java.nio.channels.DatagramChannel;
import java.nio.channels.SelectionKey;
import org.apache.juli.logging.LogFactory;
import java.io.EOFException;
-import java.net.*;
/**
* This class is NOT thread safe and should never be used with more than one thread at a time
package org.apache.catalina.util;
-import java.util.*;
+import java.util.Hashtable;
+import java.util.Locale;
/**
* MIME2Java is a convenience class which handles conversions between MIME charset names
package org.apache.jasper;
import java.io.File;
-import java.util.*;
+import java.util.Enumeration;
+import java.util.Map;
+import java.util.Properties;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
package org.apache.jasper.compiler;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
import javax.servlet.jsp.tagext.FunctionInfo;
import org.apache.jasper.JasperException;
package org.apache.jasper.compiler;
-import javax.servlet.jsp.tagext.*;
+import javax.servlet.jsp.tagext.TagAttributeInfo;
+import javax.servlet.jsp.tagext.TagExtraInfo;
+import javax.servlet.jsp.tagext.TagInfo;
+import javax.servlet.jsp.tagext.TagLibraryInfo;
+import javax.servlet.jsp.tagext.TagVariableInfo;
/**
* TagInfo extension used by tag handlers that are implemented via tag files.
package org.apache.jasper.compiler;
-import java.util.*;
-import javax.servlet.jsp.tagext.*;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.servlet.jsp.tagext.TagVariableInfo;
+import javax.servlet.jsp.tagext.VariableInfo;
+
import org.apache.jasper.JasperException;
/**
package org.apache.jasper.compiler;
-import java.util.*;
-import java.io.*;
+import java.io.InputStream;
+import java.util.HashMap;
+import java.util.Iterator;
+
import javax.servlet.ServletContext;
import org.apache.jasper.JasperException;
package org.apache.jasper.tagplugins.jstl.core;
-import org.apache.jasper.compiler.tagplugin.*;
+import org.apache.jasper.compiler.tagplugin.TagPlugin;
+import org.apache.jasper.compiler.tagplugin.TagPluginContext;
public final class Choose implements TagPlugin {
package org.apache.jasper.tagplugins.jstl.core;
-import org.apache.jasper.compiler.tagplugin.*;
+import org.apache.jasper.compiler.tagplugin.TagPlugin;
+import org.apache.jasper.compiler.tagplugin.TagPluginContext;
public final class ForEach implements TagPlugin {
package org.apache.jasper.tagplugins.jstl.core;
-import org.apache.jasper.compiler.tagplugin.*;
+import org.apache.jasper.compiler.tagplugin.TagPlugin;
+import org.apache.jasper.compiler.tagplugin.TagPluginContext;
public final class If implements TagPlugin {
package org.apache.jasper.tagplugins.jstl.core;
-import org.apache.jasper.compiler.tagplugin.*;
+import org.apache.jasper.compiler.tagplugin.TagPlugin;
+import org.apache.jasper.compiler.tagplugin.TagPluginContext;
public final class Otherwise implements TagPlugin {
package org.apache.jasper.tagplugins.jstl.core;
-import org.apache.jasper.compiler.tagplugin.*;
+import org.apache.jasper.compiler.tagplugin.TagPlugin;
+import org.apache.jasper.compiler.tagplugin.TagPluginContext;
public final class When implements TagPlugin {
*/
package org.apache.tomcat.util.bcel.classfile;
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
import org.apache.tomcat.util.bcel.Constants;
-import java.io.*;
// The new table is used when generic types are about...
package org.apache.tomcat.util.net;
-import java.io.*;
-import java.net.*;
+import java.io.IOException;
+import java.net.InetAddress;
+import java.net.ServerSocket;
+import java.net.Socket;
/**
* Default server socket factory. Doesn't do much except give us
*/
package org.apache.catalina.tribes.test.channel;
-import junit.framework.*;
-import org.apache.catalina.tribes.group.*;
+import junit.framework.TestCase;
+
import org.apache.catalina.tribes.Channel;
import org.apache.catalina.tribes.ChannelInterceptor;
import org.apache.catalina.tribes.ChannelException;
+import org.apache.catalina.tribes.group.ChannelInterceptorBase;
+import org.apache.catalina.tribes.group.GroupChannel;
/**
* <p>Title: </p>
*
*/
-import java.io.*;
-import java.util.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.ResourceBundle;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
import util.HTMLFilter;
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
*
*/
-import java.io.*;
-import java.util.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.ResourceBundle;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
/**
* The simplest possible servlet.
*
*/
-import java.io.*;
-import java.util.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.Enumeration;
+import java.util.ResourceBundle;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
import util.HTMLFilter;
*
*/
-import java.io.*;
-import java.util.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.ResourceBundle;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
import util.HTMLFilter;
*
*/
-import java.io.*;
-import java.util.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.ResourceBundle;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
import util.HTMLFilter;
*
*/
-import java.io.*;
-import java.util.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.Date;
+import java.util.Enumeration;
+import java.util.ResourceBundle;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpSession;
import util.HTMLFilter;
package cal;
import java.util.Hashtable;
-import javax.servlet.http.*;
+
+import javax.servlet.http.HttpServletRequest;
public class Entries {
package cal;
-import java.util.*;
+import java.util.Calendar;
+import java.util.Date;
public class JspCalendar {
Calendar calendar = null;
*/
package cal;
-import javax.servlet.http.*;
import java.util.Hashtable;
+import javax.servlet.http.HttpServletRequest;
+
public class TableBean {
Hashtable<String, Entries> table;
import java.io.IOException;
import java.util.Enumeration;
-import javax.servlet.*;
-import javax.servlet.http.*;
+
+import javax.servlet.ServletException;
+import javax.servlet.ServletOutputStream;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
/**
* Very Simple test servlet to test compression filter
*/
package dates;
-import java.util.*;
+import java.util.Calendar;
+import java.util.Date;
public class JspCalendar {
Calendar calendar = null;
*/
package examples;
-import javax.servlet.jsp.*;
-import javax.servlet.jsp.tagext.*;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.PageContext;
+import javax.servlet.jsp.tagext.BodyContent;
+import javax.servlet.jsp.tagext.BodyTagSupport;
+import javax.servlet.jsp.tagext.Tag;
public abstract class ExampleTagBase extends BodyTagSupport {
*/
package examples;
-import javax.servlet.jsp.*;
import java.io.IOException;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.JspTagException;
+
/**
* Example1: the simplest tag
* Collect attributes and call into some actions
*/
package examples;
-import javax.servlet.jsp.tagext.*;
+import javax.servlet.jsp.tagext.TagData;
+import javax.servlet.jsp.tagext.TagExtraInfo;
+import javax.servlet.jsp.tagext.VariableInfo;
public class FooTagExtraInfo extends TagExtraInfo {
@Override
*/
package examples;
-
-import javax.servlet.jsp.*;
-
import java.io.IOException;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.JspTagException;
+
/**
* Log the contents of the body. Could be used to handle errors etc.
*/
*/
package examples;
-
-import javax.servlet.jsp.*;
-import javax.servlet.jsp.tagext.*;
-
-import java.io.*;
+import java.io.IOException;
+import java.io.InputStream;
import java.util.Locale;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.JspTagException;
+import javax.servlet.jsp.JspWriter;
+import javax.servlet.jsp.tagext.TagSupport;
+
/**
* Display the sources of the JSP file.
*/
*/
package examples;
-import javax.servlet.jsp.*;
-import javax.servlet.jsp.tagext.*;
+import java.io.IOException;
-import java.io.*;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.JspTagException;
+import javax.servlet.jsp.JspWriter;
+import javax.servlet.jsp.tagext.TagSupport;
/**
* Accept and display a value.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import javax.servlet.http.*;
+
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
public class servletToJsp extends HttpServlet {
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import java.util.*;
-import java.awt.*;
-import java.applet.*;
-import java.text.*;
+
+import java.applet.Applet;
+import java.awt.Color;
+import java.awt.Font;
+import java.awt.Graphics;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.Locale;
+
/**
* Time!
* limitations under the License.
*/
-import java.util.*;
-import java.awt.*;
-import java.applet.*;
-import java.text.*;
+import java.applet.Applet;
+import java.awt.Color;
+import java.awt.Font;
+import java.awt.Graphics;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.Locale;
/**
* Time!