de.netseeker.ejoe.http
Class HttpResponseParser

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

public class HttpResponseParser
extends HttpHeaderParser

Parser class for HTTP responses send by EJServer

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
HttpResponseParser(java.nio.ByteBuffer buf)
          Creates a new parser using the given ByteBuffer containing HTTP response data
 
Method Summary
protected  int extractCode()
          Extracts the http status code from the underlying buffer
 int getCode()
          Returns the response status code, eg. 200 OK
 
Methods inherited from class de.netseeker.ejoe.http.HttpHeaderParser
extractContentLength, extractHeaderLength, getByteHeader, getCharHeader, getContentLength, getHeaderLength, hasCompression, hasPrereadContent, isComplete, isConnectionPersistent, isPersistentConnection, isValid, setCompression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponseParser

public HttpResponseParser(java.nio.ByteBuffer buf)
Creates a new parser using the given ByteBuffer containing HTTP response data

Parameters:
buf - ByteBuffer containing a HTTP response
Method Detail

getCode

public int getCode()
Returns the response status code, eg. 200 OK

Returns:
the code

extractCode

protected int extractCode()
Extracts the http status code from the underlying buffer

Returns:
the response status code


Copyright © 2005-2007 netseeker. All Rights Reserved.