|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.util.WebConnectionWrapper
public class WebConnectionWrapper
Provides a convenient implementation of the WebConnection
interface that can be subclassed by developers
wishing to adapt a particular WebConnection.
This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped
web connection object.
Constructor Summary | |
---|---|
WebConnectionWrapper(WebConnection webConnection)
Constructs a WebConnection object wrapping provided WebConnection. |
Method Summary | |
---|---|
WebResponse |
getResponse(WebRequestSettings webRequestSettings)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. The default behavior of this method is to return getResponse() on the wrapped connection object. |
org.apache.commons.httpclient.HttpState |
getState()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. The default behavior of this method is to return getState() on the wrapped connection object. |
WebClient |
getWebClient()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. The default behavior of this method is to return getWebClient() on the wrapped connection object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebConnectionWrapper(WebConnection webConnection) throws java.lang.IllegalArgumentException
webConnection
- the webConnection that does the real work
java.lang.IllegalArgumentException
- if the connection is null
Method Detail |
---|
public WebResponse getResponse(WebRequestSettings webRequestSettings) throws java.io.IOException
getResponse
in interface WebConnection
webRequestSettings
- Settings to make the request with.
java.io.IOException
- If an IO error occurs.public org.apache.commons.httpclient.HttpState getState()
HttpState
that is being used.
The default behavior of this method is to return getState() on the wrapped connection object.
getState
in interface WebConnection
public WebClient getWebClient()
getWebClient
in interface WebConnection
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |