public class UrlFetchWebConnection extends Object implements WebConnection
WebConnection
, compatible with Google App Engine.
Note: this class is experimental and not mature like HttpWebConnection
.
It doesn't currently support multipart POST.
Constructor and Description |
---|
UrlFetchWebConnection(WebClient webClient)
Creates a new web connection instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
WebResponse |
getResponse(WebRequest webRequest)
Submits a request and retrieves a response.
|
public UrlFetchWebConnection(WebClient webClient)
webClient
- the WebClient that is using this connectionpublic WebResponse getResponse(WebRequest webRequest) throws IOException
getResponse
in interface WebConnection
webRequest
- the requestIOException
- if an IO error occurspublic void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2002–2019 Gargoyle Software Inc.. All rights reserved.