org.lobobrowser.html.test

Class SimpleHtmlParserContext

Implemented Interfaces:
HtmlParserContext

public class SimpleHtmlParserContext
extends java.lang.Object
implements HtmlParserContext

The SimpleHtmlParserContext is a simple implementation of the HtmlParserContext interface. Methods in this class should be overridden to provide functionality such as cookies.
Author:
J. H. S.

Constructor Summary

SimpleHtmlParserContext()

Method Summary

void
error(String message)
void
error(String message, Throwable throwable)
String
getCookie()
UserAgentContext
getUserAgentContext()
void
setCookie(String cookie)
void
warn(String message)
void
warn(String message, Throwable throwable)

Constructor Details

SimpleHtmlParserContext

public SimpleHtmlParserContext()

Method Details

error

public void error(String message)

error

public void error(String message,
                  Throwable throwable)

getCookie

public String getCookie()

getUserAgentContext

public UserAgentContext getUserAgentContext()
Specified by:
getUserAgentContext in interface HtmlParserContext

setCookie

public void setCookie(String cookie)

warn

public void warn(String message)

warn

public void warn(String message,
                 Throwable throwable)