Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/HttpDate.java11
-rw-r--r--bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/ResourceRegistration.java5
-rw-r--r--bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/StaticDataReader.java4
-rw-r--r--bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpServletRequestImpl.java13
-rw-r--r--bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpServletResponseImpl.java24
-rw-r--r--bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpSessionContextImpl.java4
-rw-r--r--bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/RequestDispatcherImpl.java14
-rw-r--r--bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/ServletContextImpl.java12
-rw-r--r--bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/ServletInputStreamImpl.java15
9 files changed, 47 insertions, 55 deletions
diff --git a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/HttpDate.java b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/HttpDate.java
index 17fc8d0c4..7d0184e62 100644
--- a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/HttpDate.java
+++ b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/HttpDate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 1999, 2006 IBM Corporation and others.
+ * Copyright (c) 1999, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -37,7 +37,7 @@ public class HttpDate {
/**
* Constructs an HTTPDate object from the passed long.
- * @param itime the number of uSeconds since the epoch.
+ * @param iTime the number of uSeconds since the epoch.
*/
public HttpDate(long iTime) { // Raw mill seconds
this();
@@ -65,7 +65,7 @@ public class HttpDate {
/**
* Constructs an HTTPDate object from the passed long.
- * @param itime the number of uSeconds since the epoch.
+ * @param iTime the number of uSeconds since the epoch.
*/
public HttpDate(Date iTime) { // Raw mill seconds
this();
@@ -163,7 +163,7 @@ public class HttpDate {
}
/**
- * Checks wether or not the Date this object represents is valid.
+ * Checks whether or not the Date this object represents is valid.
* It would be Invalid if the string used to construct the object was a NON
* RFC 1123, 1036 or ASC Time conforming Date String.
* @return true if this object represents a REAL date.
@@ -241,7 +241,7 @@ public class HttpDate {
return;
} catch (NumberFormatException e) {
valid = false;
- }
+ }
}
protected void parseRFC1036(String str) {
@@ -357,7 +357,6 @@ public class HttpDate {
valid = false;
}
-
}
/**
diff --git a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/ResourceRegistration.java b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/ResourceRegistration.java
index 36e22e522..9aafa7ee9 100644
--- a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/ResourceRegistration.java
+++ b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/ResourceRegistration.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 1999, 2006 IBM Corporation and others.
+ * Copyright (c) 1999, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -16,7 +16,6 @@ import java.net.URLConnection;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.*;
-
import org.eclipse.equinox.http.servlet.HttpServletRequestImpl;
import org.eclipse.equinox.http.servlet.HttpServletResponseImpl;
import org.osgi.framework.Bundle;
@@ -60,7 +59,7 @@ public class ResourceRegistration extends HttpServlet implements Registration {
* This method returns the correct MIME type of a given URI by first checking
* the HttpContext::getMimeType and, if null, checking the httpservice's MIMETypes table.
* @return java.lang.String
- * @param URI java.lang.String
+ * @param name java.lang.String
*/
private String computeMimeType(String name, URLConnection conn) {
String mimeType = httpContext.getMimeType(name);
diff --git a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/StaticDataReader.java b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/StaticDataReader.java
index be77cf6e0..fec2ebf0a 100644
--- a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/StaticDataReader.java
+++ b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/StaticDataReader.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 1999, 2006 IBM Corporation and others.
+ * Copyright (c) 1999, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -47,7 +47,7 @@ public class StaticDataReader {
* files which are directories, such as
* http://www.ibm.com/ are assumed to be HTML, rather than appOctet.
*
- * @param String filename - the name of the file, which must
+ * @param filename - the name of the file, which must
* not be null.
* @returns String - the mime type of the file.
*/
diff --git a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpServletRequestImpl.java b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpServletRequestImpl.java
index eb0221b27..d1520e02d 100644
--- a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpServletRequestImpl.java
+++ b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpServletRequestImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 1999, 2006 IBM Corporation and others.
+ * Copyright (c) 1999, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -16,7 +16,6 @@ import java.util.*;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletInputStream;
import javax.servlet.http.*;
-
import org.eclipse.equinox.http.*;
import org.eclipse.equinox.socket.SocketInterface;
import org.eclipse.osgi.util.NLS;
@@ -382,10 +381,9 @@ public class HttpServletRequestImpl implements HttpServletRequest {
/**
* Returns an input stream for reading binary data in the request body.
*
- * @see getReader
+ * @see #getReader()
* @exception IllegalStateException if getReader has been
* called on this same request.
- * @exception IOException on other I/O related errors.
*/
public ServletInputStream getInputStream() {
if (inputstream == null) {
@@ -564,13 +562,10 @@ public class HttpServletRequestImpl implements HttpServletRequest {
* Returns a buffered reader for reading text in the request body.
* This translates character set encodings as appropriate.
*
- * @see getInputStream
+ * @see #getInputStream()
*
- * @exception UnsupportedEncodingException if the character set encoding
- * is unsupported, so the text can't be correctly decoded.
* @exception IllegalStateException if getInputStream has been
* called on this same request.
- * @exception IOException on other I/O related errors.
*/
public BufferedReader getReader() {
if (reader == null) {
@@ -1309,7 +1304,7 @@ public class HttpServletRequestImpl implements HttpServletRequest {
* nested servlets.
*
* @param name Attribute name
- * @param object Attribute value
+ * @param val Attribute value
*/
public void setAttribute(String name, Object val) {
if (attributes == null) {
diff --git a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpServletResponseImpl.java b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpServletResponseImpl.java
index 463c7350f..d7518be54 100644
--- a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpServletResponseImpl.java
+++ b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpServletResponseImpl.java
@@ -342,10 +342,9 @@ public class HttpServletResponseImpl implements HttpServletResponse {
/**
* Returns an output stream for writing binary response data.
*
- * @see getWriter
+ * @see #getWriter()
* @exception IllegalStateException if getWriter has been
* called on this same request.
- * @exception IOException if an I/O exception has occurred
*/
public ServletOutputStream getOutputStream() {
if (!gotOutputStream) {
@@ -367,8 +366,8 @@ public class HttpServletResponseImpl implements HttpServletResponse {
* property. This means that the content type must be set before
* calling this method.
*
- * @see getOutputStream
- * @see setContentType
+ * @see #getOutputStream()
+ * @see #setContentType(String)
*
* @exception UnsupportedEncodingException if no such charset can
* be provided
@@ -416,7 +415,7 @@ public class HttpServletResponseImpl implements HttpServletResponse {
/**
* Sends an error response to the client using the specified
* status code and a default message.
- * @param sc the status code
+ * @param statusCode the status code
* @exception IOException If an I/O error has occurred.
*/
public void sendError(int statusCode) throws IOException {
@@ -484,7 +483,7 @@ public class HttpServletResponseImpl implements HttpServletResponse {
*/
public void setContentLength(int len) {
- // BUGBUG response should be considered commited and closed
+ // BUGBUG response should be considered committed and closed
// when content length has been written.
// Not sure if content length is bytes or chars?
contentLength = len;
@@ -505,8 +504,9 @@ public class HttpServletResponseImpl implements HttpServletResponse {
* data.
*
* @param type the content's MIME type
- * @see getOutputStream
- * @see getWriter */
+ * @see #getOutputStream()
+ * @see #getWriter()
+ */
public void setContentType(String type) {
if (contentType == null) {
synchronized (this) {
@@ -617,7 +617,7 @@ public class HttpServletResponseImpl implements HttpServletResponse {
* presence of a header before setting its value.
*
* @param name the name of the header field
- * @param value the header field's date value
+ * @param date the header field's date value
*
* @see #containsHeader
*/
@@ -675,7 +675,7 @@ public class HttpServletResponseImpl implements HttpServletResponse {
* is an error, the <code>sendError</code> method should be used
* instead.
*
- * @param sc the status code
+ * @param statusCode the status code
*
* @see #sendError
*/
@@ -692,8 +692,8 @@ public class HttpServletResponseImpl implements HttpServletResponse {
* The page is sent with a default HTML header; the message
* is enclosed in simple body tags (&lt;body&gt;&lt;/body&gt;).
*
- * @param sc the status code
- * @param sm the status message
+ * @param si the status code
+ * @param ss the status message
* deprecated
*/
public void setStatus(int si, String ss) {
diff --git a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpSessionContextImpl.java b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpSessionContextImpl.java
index 10c519d4c..dfcaf3ec1 100644
--- a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpSessionContextImpl.java
+++ b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpSessionContextImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 1999, 2006 IBM Corporation and others.
+ * Copyright (c) 1999, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -42,7 +42,7 @@ public class HttpSessionContextImpl implements HttpSessionContext {
/**
* Returns the session bound to the specified session ID.
*
- * @param sessionID the ID of a particular session object
+ * @param sessionId the ID of a particular session object
* @return the session name. Returns null if the session ID does not refer
* to a valid session.
* @deprecated
diff --git a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/RequestDispatcherImpl.java b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/RequestDispatcherImpl.java
index 05d97f885..09fca65f6 100644
--- a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/RequestDispatcherImpl.java
+++ b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/RequestDispatcherImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 1999, 2006 IBM Corporation and others.
+ * Copyright (c) 1999, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -213,20 +213,20 @@ public class RequestDispatcherImpl implements RequestDispatcher {
*
* <p>The <tt>request</tt> object passed to the target object
* will have its request URL path and other path parameters
- * adjusted to reflect the target URL path of the target ojbect.
+ * adjusted to reflect the target URL path of the target object.
*
* <p>You cannot use this method if a <tt>ServletOutputStream</tt>
* object or <tt>PrintWriter</tt> object has been obtained from
* the response. In that case, the method throws an
* <tt>IllegalStateException</tt>
*
- * @param request the client's request on the servlet
- * @param response the client's response from the servlet
+ * @param req the client's request on the servlet
+ * @param res the client's response from the servlet
* @exception ServletException if a servlet exception is thrown by the
* target servlet
* @exception IOException if an I/O Exception occurs
* @exception IllegalStateException if the ServletOutputStream or a writer
- * had allready been obtained from the response object
+ * had already been obtained from the response object
*/
public void forward(ServletRequest req, ServletResponse res) throws ServletException, IOException {
// BUGBUG If the response has already been committed, then an
@@ -272,8 +272,8 @@ public class RequestDispatcherImpl implements RequestDispatcher {
* To ensure that a session works correctly, start the session
* outside of the included servlet, even if you use session tracking.
*
- * @param request the client's request on the servlet
- * @param response the client's response from the servlet
+ * @param req the client's request on the servlet
+ * @param res the client's response from the servlet
* @exception ServletException if a servlet exception is thrown by the
* target servlet
* @exception IOException if the ServletOutputStream or a writer
diff --git a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/ServletContextImpl.java b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/ServletContextImpl.java
index 93928748c..015e4883f 100644
--- a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/ServletContextImpl.java
+++ b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/ServletContextImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 1999, 2006, 2008 IBM Corporation and others.
+ * Copyright (c) 1999, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -253,10 +253,10 @@ public class ServletContextImpl implements ServletContext {
* <tt>getResourceAsStream</tt> method of <tt>java.lang.Class</tt>.
* The method in <tt>java.lang.Class</tt> looks up resources
* based on class loader. This method allows servlet engines
- * to make resources avaialble to a servlet from any source
+ * to make resources available to a servlet from any source
* without regards to class loaders, location, etc.
*
- * @param name
+ * @param path
*/
public InputStream getResourceAsStream(String path) {
@@ -362,7 +362,7 @@ public class ServletContextImpl implements ServletContext {
* name and type of the servlet log is servlet engine specific,
* but is normally an event log.
*
- * @param msg the message to be written
+ * @param message the message to be written
* @param throwable the exception to be written
*/
@@ -385,7 +385,7 @@ public class ServletContextImpl implements ServletContext {
/**
* Binds an object to a given name in this context. If an object
- * is allready bound into the context with the given name,
+ * is already bound into the context with the given name,
* it will be replaced.
*
* Attribute names should follow the same convention as package names.
@@ -393,7 +393,7 @@ public class ServletContextImpl implements ServletContext {
* definition by this specification or by the reference implementation.
*
* @param name the name of the attribute to store
- * @param value the value of the attribute
+ * @param object the value of the attribute
*/
public void setAttribute(String name, Object object) {
diff --git a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/ServletInputStreamImpl.java b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/ServletInputStreamImpl.java
index 37c326f2d..08a3a9e93 100644
--- a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/ServletInputStreamImpl.java
+++ b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/ServletInputStreamImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 1999, 2005 IBM Corporation.
+ * Copyright (c) 1999, 2009 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -82,7 +82,6 @@ public class ServletInputStreamImpl extends ServletInputStream {
*
* @param len Content-Length of InputStream
* @return InputStream for use by servlets
- * @exception
*/
ServletInputStream getServletInputStream(int len) {
if (servletInputStream == null) {
@@ -106,13 +105,13 @@ public class ServletInputStreamImpl extends ServletInputStream {
* the last marked position so that subsequent reads re-read the same
* bytes.
* <p>
- * The <code>readlimit</code> arguments tells this input stream to
+ * The <code>readLimit</code> arguments tells this input stream to
* allow that many bytes to be read before the mark position gets
* invalidated.
* <p>
* The <code>mark</code> method of <code>InputStream</code> does nothing.
*
- * @param readlimit the maximum limit of bytes that can be read before
+ * @param readLimit the maximum limit of bytes that can be read before
* the mark position becomes invalid.
* @see java.io.InputStream#reset()
* @since JDK1.0
@@ -249,7 +248,7 @@ public class ServletInputStreamImpl extends ServletInputStream {
* been reached. Subclasses are encouraged to provide a more
* efficient implementation of this method.
*
- * @param n the number of bytes to be skipped.
+ * @param len the number of bytes to be skipped.
* @return the actual number of bytes skipped.
* @exception IOException if an I/O error occurs.
* @since JDK1.0
@@ -318,13 +317,13 @@ public class ServletInputStreamImpl extends ServletInputStream {
* the last marked position so that subsequent reads re-read the same
* bytes.
* <p>
- * The <code>readlimit</code> arguments tells this input stream to
+ * The <code>readLimit</code> arguments tells this input stream to
* allow that many bytes to be read before the mark position gets
* invalidated.
* <p>
* The <code>mark</code> method of <code>InputStream</code> does nothing.
*
- * @param readlimit the maximum limit of bytes that can be read before
+ * @param readLimit the maximum limit of bytes that can be read before
* the mark position becomes invalid.
* @see java.io.InputStream#reset()
* @since JDK1.0
@@ -491,7 +490,7 @@ public class ServletInputStreamImpl extends ServletInputStream {
* been reached. Subclasses are encouraged to provide a more
* efficient implementation of this method.
*
- * @param n the number of bytes to be skipped.
+ * @param len the number of bytes to be skipped.
* @return the actual number of bytes skipped.
* @exception IOException if an I/O error occurs.
* @since JDK1.0

Back to the top