hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1393473 - in /httpcomponents/httpcore/trunk: httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/ httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/ httpcore-nio/src/main/java/org/apache/http/nio/protocol/ httpcore/src/mai...
Date Wed, 03 Oct 2012 13:24:35 GMT
Author: olegk
Date: Wed Oct  3 13:24:34 2012
New Revision: 1393473

URL: http://svn.apache.org/viewvc?rev=1393473&view=rev
Log:
Fixed javadocs

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/AbstractMessageParser.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionInputBufferImpl.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionOutputBufferImpl.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/UriHttpAsyncRequestHandlerMapper.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/HttpEntityWrapper.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/AbstractMessageParser.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/DefaultHttpRequestParser.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/DefaultHttpResponseParser.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/UriHttpRequestHandlerMapper.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/UriPatternMatcher.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/AbstractMessageParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/AbstractMessageParser.java?rev=1393473&r1=1393472&r2=1393473&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/AbstractMessageParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/AbstractMessageParser.java
Wed Oct  3 13:24:34 2012
@@ -78,14 +78,17 @@ public abstract class AbstractMessagePar
      * Creates an instance of this class.
      *
      * @param buffer the session input buffer.
-     * @param parser the line parser.
+     * @param lineParser the line parser.
      * @param params HTTP parameters.
      *
      * @deprecated (4.3) use
-     *   {@link AbstractMessageParser#AbstractMessageParser(SessionInputBuffer, int, int,
LineParser)}
+     *   {@link AbstractMessageParser#AbstractMessageParser(SessionInputBuffer, LineParser,
+     *     MessageConstraints)}
      */
     @Deprecated
-    public AbstractMessageParser(final SessionInputBuffer buffer, final LineParser parser,
+    public AbstractMessageParser(
+            final SessionInputBuffer buffer,
+            final LineParser lineParser,
             final HttpParams params) {
         super();
         Args.notNull(buffer, "Session input buffer");
@@ -98,15 +101,15 @@ public abstract class AbstractMessagePar
                 .setMaxLineLength(Config.getInt(params, CoreConnectionPNames.MAX_LINE_LENGTH,
-1))
                 .setMaxHeaderCount(Config.getInt(params, CoreConnectionPNames.MAX_HEADER_COUNT,
-1))
                 .build();
-        this.lineParser = (parser != null) ? parser : BasicLineParser.INSTANCE;
+        this.lineParser = (lineParser != null) ? lineParser : BasicLineParser.INSTANCE;
     }
 
     /**
      * Creates an instance of AbstractMessageParser.
      *
      * @param buffer the session input buffer.
-     * @param parser the line parser. If <code>null</code> {@link BasicLineParser#INSTANCE}
will
-     *   be used.
+     * @param lineParser the line parser. If <code>null</code> {@link BasicLineParser#INSTANCE}
+     *   will be used.
      * @param constraints Message constraints. If <code>null</code>
      *   {@link MessageConstraints#DEFAULT} will be used.
      *
@@ -114,11 +117,11 @@ public abstract class AbstractMessagePar
      */
     public AbstractMessageParser(
             final SessionInputBuffer buffer,
-            final LineParser parser,
+            final LineParser lineParser,
             final MessageConstraints constraints) {
         super();
         this.sessionBuffer = Args.notNull(buffer, "Session input buffer");
-        this.lineParser = parser != null ? parser : BasicLineParser.INSTANCE;
+        this.lineParser = lineParser != null ? lineParser : BasicLineParser.INSTANCE;
         this.constraints = constraints != null ? constraints : MessageConstraints.DEFAULT;
         this.headerBufs = new ArrayList<CharArrayBuffer>();
         this.state = READ_HEAD_LINE;

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionInputBufferImpl.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionInputBufferImpl.java?rev=1393473&r1=1393472&r2=1393473&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionInputBufferImpl.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionInputBufferImpl.java
Wed Oct  3 13:24:34 2012
@@ -61,14 +61,14 @@ public class SessionInputBufferImpl exte
 
     private final CharsetDecoder chardecoder;
     private final int lineBuffersize;
-    
+
     private CharBuffer charbuffer;
 
     /**
      *  Creates SessionInputBufferImpl instance.
      *
      * @param buffersize input buffer size
-     * @param lineBuffersize buffer size for line operations. Has effect only if 
+     * @param lineBuffersize buffer size for line operations. Has effect only if
      *   <code>chardecoder</code> is not <code>null</code>.
      * @param chardecoder chardecoder to be used for decoding HTTP protocol elements.
      *   If <code>null</code> simple type cast will be used for byte to char
conversion.
@@ -89,7 +89,8 @@ public class SessionInputBufferImpl exte
 
     /**
      * @deprecated (4.3) use
-     *   {@link SessionInputBufferImpl#SessionInputBufferImpl(int, int, Charset, CodingErrorAction,
CodingErrorAction, ByteBufferAllocator)}
+     *   {@link SessionInputBufferImpl#SessionInputBufferImpl(int, int, CharsetDecoder,
+     *     ByteBufferAllocator)}
      */
     @Deprecated
     public SessionInputBufferImpl(
@@ -116,7 +117,7 @@ public class SessionInputBufferImpl exte
 
     /**
      * @deprecated (4.3) use
-     *   {@link SessionInputBufferImpl#SessionInputBufferImpl(int, int, Charset, CodingErrorAction,
CodingErrorAction, ByteBufferAllocator)}
+     *   {@link SessionInputBufferImpl#SessionInputBufferImpl(int, int, Charset)}
      */
     @Deprecated
     public SessionInputBufferImpl(
@@ -140,7 +141,7 @@ public class SessionInputBufferImpl exte
             int buffersize,
             int lineBuffersize,
             final Charset charset) {
-        this(buffersize, lineBuffersize, 
+        this(buffersize, lineBuffersize,
                 charset != null ? charset.newDecoder() : null, HeapByteBufferAllocator.INSTANCE);
     }
 

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionOutputBufferImpl.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionOutputBufferImpl.java?rev=1393473&r1=1393472&r2=1393473&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionOutputBufferImpl.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionOutputBufferImpl.java
Wed Oct  3 13:24:34 2012
@@ -70,7 +70,7 @@ public class SessionOutputBufferImpl ext
      *  Creates SessionOutputBufferImpl instance.
      *
      * @param buffersize input buffer size
-     * @param lineBuffersize buffer size for line operations. Has effect only if 
+     * @param lineBuffersize buffer size for line operations. Has effect only if
      *   <code>charencoder</code> is not <code>null</code>.
      * @param charencoder charencoder to be used for encoding HTTP protocol elements.
      *   If <code>null</code> simple type cast will be used for char to byte
conversion.
@@ -91,7 +91,8 @@ public class SessionOutputBufferImpl ext
 
     /**
      * @deprecated (4.3) use
-     *   {@link SessionOutputBufferImpl#SessionOutputBufferImpl(int, int, Charset, CodingErrorAction,
CodingErrorAction, ByteBufferAllocator)}
+     *   {@link SessionOutputBufferImpl#SessionOutputBufferImpl(int, int, CharsetEncoder,
+     *     ByteBufferAllocator)}
      */
     @Deprecated
     public SessionOutputBufferImpl(
@@ -118,7 +119,7 @@ public class SessionOutputBufferImpl ext
 
     /**
      * @deprecated (4.3) use
-     *   {@link SessionOutputBufferImpl#SessionOutputBufferImpl(int, int, Charset, CodingErrorAction,
CodingErrorAction, ByteBufferAllocator)}
+     *   {@link SessionOutputBufferImpl#SessionOutputBufferImpl(int, int, Charset)}
      */
     @Deprecated
     public SessionOutputBufferImpl(
@@ -142,7 +143,7 @@ public class SessionOutputBufferImpl ext
             int buffersize,
             int linebuffersize,
             final Charset charset) {
-        this(buffersize, linebuffersize, 
+        this(buffersize, linebuffersize,
                 charset != null ? charset.newEncoder() : null, HeapByteBufferAllocator.INSTANCE);
     }
 

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/UriHttpAsyncRequestHandlerMapper.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/UriHttpAsyncRequestHandlerMapper.java?rev=1393473&r1=1393472&r2=1393473&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/UriHttpAsyncRequestHandlerMapper.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/UriHttpAsyncRequestHandlerMapper.java
Wed Oct  3 13:24:34 2012
@@ -46,7 +46,7 @@ import org.apache.http.util.Args;
  * matching a particular request URI. Usually the mapped request handler
  * will be used to process the request with the specified request URI.
  *
- * @since 4.2
+ * @since 4.3
  */
 @ThreadSafe
 public class UriHttpAsyncRequestHandlerMapper implements HttpAsyncRequestHandlerMapper {
@@ -102,7 +102,7 @@ public class UriHttpAsyncRequestHandlerM
     /**
      * Looks up a handler matching the given request URI.
      *
-     * @param requestURI the request path
+     * @param request the request
      * @return handler or <code>null</code> if no match is found.
      */
     public HttpAsyncRequestHandler<?> lookup(final HttpRequest request) {

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/HttpEntityWrapper.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/HttpEntityWrapper.java?rev=1393473&r1=1393472&r2=1393473&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/HttpEntityWrapper.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/HttpEntityWrapper.java
Wed Oct  3 13:24:34 2012
@@ -53,9 +53,6 @@ public class HttpEntityWrapper implement
 
     /**
      * Creates a new entity wrapper.
-     *
-     * @param wrapped   the entity to wrap, not null
-     * @throws IllegalArgumentException if wrapped is null
      */
     public HttpEntityWrapper(HttpEntity wrappedEntity) {
         super();

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/AbstractMessageParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/AbstractMessageParser.java?rev=1393473&r1=1393472&r2=1393473&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/AbstractMessageParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/AbstractMessageParser.java
Wed Oct  3 13:24:34 2012
@@ -74,8 +74,9 @@ public abstract class AbstractMessagePar
      * @param buffer the session input buffer.
      * @param parser the line parser.
      * @param params HTTP parameters.
-     * 
-     * @deprecated (4.3)
+     *
+     * @deprecated (4.3) use {@link AbstractMessageParser#AbstractMessageParser(SessionInputBuffer,
+     *   LineParser, MessageConstraints)}
      */
     @Deprecated
     public AbstractMessageParser(
@@ -99,20 +100,20 @@ public abstract class AbstractMessagePar
      * Creates new instance of AbstractMessageParser.
      *
      * @param buffer the session input buffer.
-     * @param parser the line parser. If <code>null</code> {@link BasicLineParser#INSTANCE}

-     *   will be used.
-     * @param parser the message constraints. If <code>null</code> {@link MessageConstraints#DEFAULT}

+     * @param lineParser the line parser. If <code>null</code> {@link BasicLineParser#INSTANCE}
      *   will be used.
-     * 
+     * @param constraints the message constraints. If <code>null</code>
+     *   {@link MessageConstraints#DEFAULT} will be used.
+     *
      * @since 4.3
      */
     public AbstractMessageParser(
             final SessionInputBuffer buffer,
-            final LineParser parser,
+            final LineParser lineParser,
             final MessageConstraints constraints) {
         super();
         this.sessionBuffer = Args.notNull(buffer, "Session input buffer");
-        this.lineParser = parser != null ? parser : BasicLineParser.INSTANCE;
+        this.lineParser = lineParser != null ? lineParser : BasicLineParser.INSTANCE;
         this.messageConstraints = constraints != null ? constraints : MessageConstraints.DEFAULT;
         this.headerLines = new ArrayList<CharArrayBuffer>();
         this.state = HEAD_LINE;

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/DefaultHttpRequestParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/DefaultHttpRequestParser.java?rev=1393473&r1=1393472&r2=1393473&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/DefaultHttpRequestParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/DefaultHttpRequestParser.java
Wed Oct  3 13:24:34 2012
@@ -37,7 +37,6 @@ import org.apache.http.ParseException;
 import org.apache.http.RequestLine;
 import org.apache.http.annotation.NotThreadSafe;
 import org.apache.http.impl.DefaultHttpRequestFactory;
-import org.apache.http.impl.DefaultHttpResponseFactory;
 import org.apache.http.impl.MessageConstraints;
 import org.apache.http.io.SessionInputBuffer;
 import org.apache.http.message.BasicLineParser;
@@ -63,45 +62,46 @@ public class DefaultHttpRequestParser ex
      * Creates an instance of this class.
      *
      * @param buffer the session input buffer.
-     * @param parser the line parser.
+     * @param lineParser the line parser.
      * @param requestFactory the factory to use to create
      *    {@link HttpRequest}s.
      * @param params HTTP parameters.
-     * 
-     * @deprecated (4.3) use 
-     *   {@link DefaultHttpRequestParser#DefaultHttpRequestParser(SessionInputBuffer, int,
int, LineParser, HttpRequestFactory)}
+     *
+     * @deprecated (4.3) use
+     *   {@link DefaultHttpRequestParser#DefaultHttpRequestParser(SessionInputBuffer, LineParser,
+     *     HttpRequestFactory, MessageConstraints)}
      */
     @Deprecated
     public DefaultHttpRequestParser(
             final SessionInputBuffer buffer,
-            final LineParser parser,
+            final LineParser lineParser,
             final HttpRequestFactory requestFactory,
             final HttpParams params) {
-        super(buffer, parser, params);
+        super(buffer, lineParser, params);
         this.requestFactory = Args.notNull(requestFactory, "Request factory");
         this.lineBuf = new CharArrayBuffer(128);
     }
-    
+
     /**
      * Creates new instance of DefaultHttpRequestParser.
      *
      * @param buffer the session input buffer.
-     * @param parser the line parser. If <code>null</code> {@link BasicLineParser#INSTANCE}
will
-     *   be used. 
-     * @param responseFactory the response factory. If <code>null</code> 
-     *   {@link DefaultHttpResponseFactory#INSTANCE} will be used. 
-     * @param parser the message constraints. If <code>null</code> {@link MessageConstraints#DEFAULT}

-     *   will be used.
-     * 
+     * @param lineParser the line parser. If <code>null</code> {@link BasicLineParser#INSTANCE}
will
+     *   be used.
+     * @param requestFactory the response factory. If <code>null</code>
+     *   {@link DefaultHttpRequestFactory#INSTANCE} will be used.
+     * @param constraints the message constraints. If <code>null</code>
+     *   {@link MessageConstraints#DEFAULT} will be used.
+     *
      * @since 4.3
      */
     public DefaultHttpRequestParser(
             final SessionInputBuffer buffer,
-            final LineParser parser,
+            final LineParser lineParser,
             final HttpRequestFactory requestFactory,
-            final MessageConstraints messageConstraints) {
-        super(buffer, parser, messageConstraints);
-        this.requestFactory = requestFactory != null ? requestFactory : 
+            final MessageConstraints constraints) {
+        super(buffer, lineParser, constraints);
+        this.requestFactory = requestFactory != null ? requestFactory :
             DefaultHttpRequestFactory.INSTANCE;
         this.lineBuf = new CharArrayBuffer(128);
     }
@@ -111,8 +111,8 @@ public class DefaultHttpRequestParser ex
      */
     public DefaultHttpRequestParser(
             final SessionInputBuffer buffer,
-            final MessageConstraints messageConstraints) {
-        this(buffer, null, null, messageConstraints);
+            final MessageConstraints constraints) {
+        this(buffer, null, null, constraints);
     }
 
     /**

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/DefaultHttpResponseParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/DefaultHttpResponseParser.java?rev=1393473&r1=1393472&r2=1393473&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/DefaultHttpResponseParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/DefaultHttpResponseParser.java
Wed Oct  3 13:24:34 2012
@@ -62,21 +62,22 @@ public class DefaultHttpResponseParser e
      * Creates an instance of this class.
      *
      * @param buffer the session input buffer.
-     * @param parser the line parser.
+     * @param lineParser the line parser.
      * @param responseFactory the factory to use to create
      *    {@link HttpResponse}s.
      * @param params HTTP parameters.
-     * 
-     * @deprecated (4.3) use 
-     *   {@link DefaultHttpResponseParser#DefaultHttpResponseParser(SessionInputBuffer, int,
int, LineParser, HttpResponseFactory)}
+     *
+     * @deprecated (4.3) use
+     *   {@link DefaultHttpResponseParser#DefaultHttpResponseParser(SessionInputBuffer, LineParser,
+     *     HttpResponseFactory, MessageConstraints)}
      */
     @Deprecated
     public DefaultHttpResponseParser(
             final SessionInputBuffer buffer,
-            final LineParser parser,
+            final LineParser lineParser,
             final HttpResponseFactory responseFactory,
             final HttpParams params) {
-        super(buffer, parser, params);
+        super(buffer, lineParser, params);
         this.responseFactory = Args.notNull(responseFactory, "Response factory");
         this.lineBuf = new CharArrayBuffer(128);
     }
@@ -85,22 +86,22 @@ public class DefaultHttpResponseParser e
      * Creates new instance of DefaultHttpResponseParser.
      *
      * @param buffer the session input buffer.
-     * @param parser the line parser. If <code>null</code> {@link BasicLineParser#INSTANCE}

+     * @param lineParser the line parser. If <code>null</code> {@link BasicLineParser#INSTANCE}
      *   will be used
-     * @param responseFactory the response factory. If <code>null</code> 
-     *   {@link DefaultHttpResponseFactory#INSTANCE} will be used. 
-     * @param parser the message constraints. If <code>null</code> {@link MessageConstraints#DEFAULT}

-     *   will be used.
-     * 
+     * @param responseFactory the response factory. If <code>null</code>
+     *   {@link DefaultHttpResponseFactory#INSTANCE} will be used.
+     * @param constraints the message constraints. If <code>null</code>
+     *   {@link MessageConstraints#DEFAULT} will be used.
+     *
      * @since 4.3
      */
     public DefaultHttpResponseParser(
             final SessionInputBuffer buffer,
-            final LineParser parser,
+            final LineParser lineParser,
             final HttpResponseFactory responseFactory,
-            final MessageConstraints messageConstraints) {
-        super(buffer, parser, messageConstraints);
-        this.responseFactory = responseFactory != null ? responseFactory : 
+            final MessageConstraints constraints) {
+        super(buffer, lineParser, constraints);
+        this.responseFactory = responseFactory != null ? responseFactory :
             DefaultHttpResponseFactory.INSTANCE;
         this.lineBuf = new CharArrayBuffer(128);
     }
@@ -110,8 +111,8 @@ public class DefaultHttpResponseParser e
      */
     public DefaultHttpResponseParser(
             final SessionInputBuffer buffer,
-            final MessageConstraints messageConstraints) {
-        this(buffer, null, null, messageConstraints);
+            final MessageConstraints constraints) {
+        this(buffer, null, null, constraints);
     }
 
     /**

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/UriHttpRequestHandlerMapper.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/UriHttpRequestHandlerMapper.java?rev=1393473&r1=1393472&r2=1393473&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/UriHttpRequestHandlerMapper.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/UriHttpRequestHandlerMapper.java
Wed Oct  3 13:24:34 2012
@@ -104,7 +104,7 @@ public class UriHttpRequestHandlerMapper
     /**
      * Looks up a handler matching the given request URI.
      *
-     * @param requestURI the request path
+     * @param request the request
      * @return handler or <code>null</code> if no match is found.
      */
     public HttpRequestHandler lookup(final HttpRequest request) {

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/UriPatternMatcher.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/UriPatternMatcher.java?rev=1393473&r1=1393472&r2=1393473&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/UriPatternMatcher.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/UriPatternMatcher.java
Wed Oct  3 13:24:34 2012
@@ -113,9 +113,9 @@ public class UriPatternMatcher<T> {
     }
 
     /**
-     * Looks up an object matching the given request URI.
+     * Looks up an object matching the given request path.
      *
-     * @param requestURI the request path
+     * @param path the request path
      * @return object or <code>null</code> if no match is found.
      */
     public synchronized T lookup(final String path) {
@@ -142,10 +142,10 @@ public class UriPatternMatcher<T> {
     }
 
     /**
-     * Tests if the given request URI matches the given pattern.
+     * Tests if the given request path matches the given pattern.
      *
      * @param pattern the pattern
-     * @param requestUri the request URI
+     * @param path the request path
      * @return <code>true</code> if the request URI matches the pattern,
      *   <code>false</code> otherwise.
      */



Mime
View raw message