Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.http
Class RequestLine  view RequestLine download RequestLine.java

java.lang.Object
  extended byorg.apache.http.RequestLine

public class RequestLine
extends java.lang.Object

The first line of an HttpRequest. It contains the method, URI, and HTTP version of the request. For details, see RFC 2616.

Since:
4.0
Version:
$Revision: 390865 $

Field Summary
private  HttpVersion httpversion
           
private  java.lang.String method
           
private  java.lang.String uri
           
 
Constructor Summary
RequestLine(java.lang.String method, java.lang.String uri, HttpVersion httpversion)
           
 
Method Summary
static void format(org.apache.http.io.CharArrayBuffer buffer, RequestLine requestline)
           
static java.lang.String format(RequestLine requestline)
           
 HttpVersion getHttpVersion()
           
 java.lang.String getMethod()
           
 java.lang.String getUri()
           
static RequestLine parse(org.apache.http.io.CharArrayBuffer buffer, int indexFrom, int indexTo)
           
static RequestLine parse(java.lang.String s)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

httpversion

private final HttpVersion httpversion

method

private final java.lang.String method

uri

private final java.lang.String uri
Constructor Detail

RequestLine

public RequestLine(java.lang.String method,
                   java.lang.String uri,
                   HttpVersion httpversion)
Method Detail

getMethod

public java.lang.String getMethod()

getHttpVersion

public HttpVersion getHttpVersion()

getUri

public java.lang.String getUri()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


parse

public static RequestLine parse(org.apache.http.io.CharArrayBuffer buffer,
                                int indexFrom,
                                int indexTo)
                         throws ProtocolException

parse

public static final RequestLine parse(java.lang.String s)
                               throws ProtocolException

format

public static void format(org.apache.http.io.CharArrayBuffer buffer,
                          RequestLine requestline)

format

public static java.lang.String format(RequestLine requestline)