com.debianmirror.http
Class HttpRequestHeader

java.lang.Object
  |
  +--com.debianmirror.http.HttpRequestHeader

public class HttpRequestHeader
extends java.lang.Object

Represents the request header associated with the request.

Author:
E01 - Jonas Jagerhok

Constructor Summary
HttpRequestHeader(java.io.InputStream inHeader)
          Reads header information from InputStream If the header is not a valid HTTP header an HttpRequestExceprion will be thrown
 
Method Summary
 java.lang.String getFileName()
          Returns the name of the requested file
 double getHttpVersion()
          Returns the HTTP-version number of the request (as a double)
 java.lang.String getRequestMethod()
          Returns the request method of the http request (capitalized)
 boolean isGETRequest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequestHeader

public HttpRequestHeader(java.io.InputStream inHeader)
                  throws HttpRequestException
Reads header information from InputStream If the header is not a valid HTTP header an HttpRequestExceprion will be thrown

Method Detail

isGETRequest

public boolean isGETRequest()

getFileName

public java.lang.String getFileName()
Returns the name of the requested file


getHttpVersion

public double getHttpVersion()
Returns the HTTP-version number of the request (as a double)


getRequestMethod

public java.lang.String getRequestMethod()
Returns the request method of the http request (capitalized)



Copyright © 2004, Apt-Got Group