de.netseeker.ejoe.http
Class HttpRequestParser

java.lang.Object
  extended by de.netseeker.ejoe.http.HttpHeaderParser
      extended by de.netseeker.ejoe.http.HttpRequestParser

public class HttpRequestParser
extends HttpHeaderParser

Parser class for HTTP requests

Since:
0.3.9.1
Author:
netseeker

Field Summary
 
Fields inherited from class de.netseeker.ejoe.http.HttpHeaderParser
csISO, LINE_SEP, pConnection, pContentLength, pLineEnd
 
Constructor Summary
HttpRequestParser(java.nio.ByteBuffer buf)
          Constructs a new HTTP request parser using the given ByteBuffer
 
Method Summary
protected  java.lang.String extractURI()
          Extracts the requested URI from the underlying buffer
 java.lang.String getUri()
          Returns the requested URI
 boolean isValid()
          Checks if the HTTP header seems to be valid
 
Methods inherited from class de.netseeker.ejoe.http.HttpHeaderParser
extractContentLength, extractHeaderLength, getByteHeader, getCharHeader, getContentLength, getHeaderLength, hasCompression, hasPrereadContent, isComplete, isConnectionPersistent, isPersistentConnection, setCompression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequestParser

public HttpRequestParser(java.nio.ByteBuffer buf)
Constructs a new HTTP request parser using the given ByteBuffer

Parameters:
buf - ByteBuffer containing a HTTP request (HTTP header [ + optional preread content]
Method Detail

isValid

public boolean isValid()
Description copied from class: HttpHeaderParser
Checks if the HTTP header seems to be valid

Overrides:
isValid in class HttpHeaderParser
Returns:
true if the HTTP header seems to be valid (at least for EJOE) otherwise false

getUri

public java.lang.String getUri()
Returns the requested URI

Returns:
the uri the requested URI

extractURI

protected java.lang.String extractURI()
Extracts the requested URI from the underlying buffer

Returns:
the requested URI


Copyright © 2005-2007 netseeker. All Rights Reserved.