*
* @deprecated
*/
- @SuppressWarnings("dep-ann") // Spec API does not use dep-ann
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public Servlet getServlet(String name) throws ServletException;
*
* @deprecated
*/
- @SuppressWarnings("dep-ann") // Spec API does not use dep-ann
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public Enumeration<Servlet> getServlets();
*
* @deprecated
*/
- @SuppressWarnings("dep-ann") // Spec API does not use dep-ann
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public Enumeration<String> getServletNames();
*
* @deprecated
*/
- @SuppressWarnings("dep-ann") // Spec API does not use dep-ann
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public void log(Exception exception, String msg);
* @deprecated As of Version 2.1 of the Java Servlet API,
* use {@link ServletContext#getRealPath} instead.
*/
- @SuppressWarnings("dep-ann") // Spec API does not use dep-ann
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public String getRealPath(String path);
* on the wrapped request object.
* @deprecated As of Version 3.0 of the Java Servlet API
*/
- @SuppressWarnings("dep-ann") // Spec API does not use dep-ann
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public String getRealPath(String path) {
return this.request.getRealPath(path);
}
* @deprecated As of Java Servlet API 2.4, with no direct
* replacement.
*/
-@SuppressWarnings("dep-ann") // Spec API does not use dep-ann
+@SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public interface SingleThreadModel {
// No methods
}
* @deprecated As of Java Servlet API 2.2, use {@link
* #UnavailableException(String)} instead.
*/
- @SuppressWarnings("dep-ann") // Spec API does not use dep-ann
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public UnavailableException(Servlet servlet, String msg) {
super(msg);
this.servlet = servlet;
* @deprecated As of Java Servlet API 2.2, use {@link
* #UnavailableException(String, int)} instead.
*/
- @SuppressWarnings("dep-ann") // Spec API does not use dep-ann
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public UnavailableException(int seconds, Servlet servlet, String msg) {
super(msg);
this.servlet = servlet;
*
* @deprecated As of Java Servlet API 2.2, with no replacement.
*/
- @SuppressWarnings("dep-ann") // Spec API does not use dep-ann
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public Servlet getServlet() {
return servlet;
}
* instead.
*
*/
-
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public boolean isRequestedSessionIdFromUrl();
* on the wrapped request object.
* @deprecated As of Version 3.0 of the Java Servlet API
*/
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public boolean isRequestedSessionIdFromUrl() {
return this._getHttpServletRequest().isRequestedSessionIdFromUrl();
}
public String encodeRedirectURL(String url);
/**
- * @deprecated As of version 2.1, use encodeURL(String url) instead
- *
* @param url the url to be encoded.
* @return the encoded URL if encoding is needed;
* the unchanged URL otherwise.
+ *
+ * @deprecated As of version 2.1, use encodeURL(String url) instead
*/
-
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public String encodeUrl(String url);
/**
- * @deprecated As of version 2.1, use
- * encodeRedirectURL(String url) instead
- *
* @param url the url to be encoded.
* @return the encoded URL if encoding is needed;
* the unchanged URL otherwise.
+ *
+ * @deprecated As of version 2.1, use
+ * encodeRedirectURL(String url) instead
*/
-
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public String encodeRedirectUrl(String url);
/**
public void setStatus(int sc);
/**
- * @deprecated As of version 2.1, due to ambiguous meaning of the
- * message parameter. To set a status code
- * use <code>setStatus(int)</code>, to send an error with a description
- * use <code>sendError(int, String)</code>.
- *
* Sets the status code and message for this response.
*
* @param sc the status code
* @param sm the status message
+ *
+ * @deprecated As of version 2.1, due to ambiguous meaning of the
+ * message parameter. To set a status code
+ * use <code>setStatus(int)</code>, to send an error with a description
+ * use <code>sendError(int, String)</code>.
*/
-
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public void setStatus(int sc, String sm);
* on the wrapped response object.
* @deprecated As of Version 3.0 of the Java Servlet API
*/
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public String encodeUrl(String url) {
return this._getHttpServletResponse().encodeUrl(url);
}
* on the wrapped response object.
* @deprecated As of Version 3.0 of the Java Servlet API
*/
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public String encodeRedirectUrl(String url) {
return this._getHttpServletResponse().encodeRedirectUrl(url);
}
* on the wrapped response object.
* @deprecated As of Version 3.0 of the Java Servlet API
*/
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public void setStatus(int sc, String sm) {
this._getHttpServletResponse().setStatus(sc, sm);
}
* version of the Java Servlet API.
*
*/
-
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public HttpSessionContext getSessionContext();
/**
- *
- * @deprecated As of Version 2.2, this method is
- * replaced by {@link #getAttribute}.
- *
* @param name a string specifying the name of the object
*
* @return the object with the specified name
* @exception IllegalStateException if this method is called on an
* invalidated session
*
+ * @deprecated As of Version 2.2, this method is
+ * replaced by {@link #getAttribute}.
*/
-
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public Object getValue(String name);
/**
- *
- * @deprecated As of Version 2.2, this method is
- * replaced by {@link #getAttributeNames}
- *
* @return an array of <code>String</code>
* objects specifying the
* names of all the objects bound to
* @exception IllegalStateException if this method is called on an
* invalidated session
*
+ * @deprecated As of Version 2.2, this method is
+ * replaced by {@link #getAttributeNames}
*/
-
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public String[] getValueNames();
/**
- *
- * @deprecated As of Version 2.2, this method is
- * replaced by {@link #setAttribute}
- *
* @param name the name to which the object is bound;
* cannot be null
*
* @exception IllegalStateException if this method is called on an
* invalidated session
*
+ * @deprecated As of Version 2.2, this method is
+ * replaced by {@link #setAttribute}
*/
-
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public void putValue(String name, Object value);
/**
- *
- * @deprecated As of Version 2.2, this method is
- * replaced by {@link #removeAttribute}
- *
* @param name the name of the object to
* remove from this session
*
* @exception IllegalStateException if this method is called on an
* invalidated session
+ *
+ * @deprecated As of Version 2.2, this method is
+ * replaced by {@link #removeAttribute}
*/
-
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public void removeValue(String name);
* @see HttpSessionBindingListener
*
*/
-
-
-@Deprecated
+@SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public interface HttpSessionContext {
/**
* a future version of this API.
*
*/
-
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public HttpSession getSession(String sessionId);
* in a future version of this API.
*
*/
-
- @Deprecated
+ @SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public Enumeration<String> getIds();
}
* These methods were only useful
* with the default encoding and have been moved
* to the request interfaces.
- *
-*/
-
-
-@Deprecated
+ */
+@SuppressWarnings("dep-ann") // Spec API does not use @Deprecated
public class HttpUtils {
private static final String LSTRING_FILE =