superwaba.ext.xplat.util.xml
Class HttpListener

java.lang.Object
  |
  +--superwaba.ext.xplat.util.xml.HttpListener

public abstract class HttpListener
extends Object

Listener that must be extended to process the events thrown by HttpLiteParser.


Field Summary
 byte[] buffer
          Buffer that stores the contents for the current tag/attribute.
 int len
          Current length of the string
 int start
          Starting position of the current string in the buffer
 
Constructor Summary
HttpListener()
           
 
Method Summary
abstract  void foundCode()
          This is the method called by parser when HTTP response code is found
abstract  void foundHttpHeader()
          This is the method called by parser when A HTTP Header name is found
abstract  void foundHttpValue()
          This is the method called by parser when a HTTP Header value is found
abstract  void foundReason()
          This is the method called by parser when HTTP response reason is found
abstract  void foundVersion()
          This is the method called by parser when the HTTP version is found
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, toString, wait, wait
 

Field Detail

buffer

public byte[] buffer
Buffer that stores the contents for the current tag/attribute. Every time a method is called, the contents of this buffer from 0 to the given len stores the current attribute/tag.

len

public int len
Current length of the string

start

public int start
Starting position of the current string in the buffer
Constructor Detail

HttpListener

public HttpListener()
Method Detail

foundVersion

public abstract void foundVersion()
This is the method called by parser when the HTTP version is found

foundCode

public abstract void foundCode()
This is the method called by parser when HTTP response code is found

foundReason

public abstract void foundReason()
This is the method called by parser when HTTP response reason is found

foundHttpHeader

public abstract void foundHttpHeader()
This is the method called by parser when A HTTP Header name is found

foundHttpValue

public abstract void foundHttpValue()
This is the method called by parser when a HTTP Header value is found