com.gargoylesoftware.htmlunit
Class UrlFetchWebConnection

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.UrlFetchWebConnection
All Implemented Interfaces:
WebConnection

public class UrlFetchWebConnection
extends Object
implements WebConnection

An implementation of WebConnection, compatible with Google App Engine.

Note: this class is experimental and not mature like HttpWebConnection. It doesn't currently support multipart POST.

Since:
HtmlUnit 2.8
Version:
$Revision: 5748 $
Author:
Amit Manjhi, Marc Guillemot

Constructor Summary
UrlFetchWebConnection(WebClient webClient)
          Creates a new web connection instance.
 
Method Summary
 WebResponse getResponse(WebRequest webRequest)
          Submits a request and retrieves a response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlFetchWebConnection

public UrlFetchWebConnection(WebClient webClient)
Creates a new web connection instance.

Parameters:
webClient - the WebClient that is using this connection
Method Detail

getResponse

public WebResponse getResponse(WebRequest webRequest)
                        throws IOException
Submits a request and retrieves a response.

Specified by:
getResponse in interface WebConnection
Parameters:
webRequest - the request
Returns:
the response to the request defined by the specified request
Throws:
IOException - if an IO error occurs


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.