nl.pbemengine.engine.ng.base.webserver
Class HTTPRequest

java.lang.Object
  extended by nl.pbemengine.engine.ng.base.webserver.HTTPRequest

public final class HTTPRequest
extends java.lang.Object

HTTP Request class, parses a HTTP request line and identifies major and minor version numbers.

Author:
Jeroen Steenbeeke

Field Summary
 java.util.Map<java.lang.String,java.lang.String> getvars
          GET variables
 int major
          The Major version number
 java.lang.String method
          Request method, usually GET or POST
 int minor
          The Minor version number
 java.lang.String protocol
          The protocol being used - should normally be HTTP
 java.lang.String URI
          URI, the document being requested
 
Constructor Summary
HTTPRequest(java.lang.String requestline)
          Parses a HTTP request line and creates a corresponding object
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

public java.lang.String method
Request method, usually GET or POST


URI

public java.lang.String URI
URI, the document being requested


protocol

public java.lang.String protocol
The protocol being used - should normally be HTTP


major

public int major
The Major version number


minor

public int minor
The Minor version number


getvars

public java.util.Map<java.lang.String,java.lang.String> getvars
GET variables

Constructor Detail

HTTPRequest

public HTTPRequest(java.lang.String requestline)
            throws java.lang.IllegalArgumentException
Parses a HTTP request line and creates a corresponding object

Parameters:
requestline - The HTTP request line
Throws:
java.lang.IllegalArgumentException


Copyright © 2008. All Rights Reserved.