com.google.appengine.api.urlfetch.dev
Class LocalURLFetchService
- java.lang.Object
-
- AbstractLocalRpcService
-
- com.google.appengine.api.urlfetch.dev.LocalURLFetchService
-
public class LocalURLFetchService extends AbstractLocalRpcServiceLocalURLFetchServicefetchs URLs using Apache HttpClient. This implementation should only be used within the dev appserver environment.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringPACKAGEThe package name for this service.
-
Constructor Summary
Constructors Constructor and Description LocalURLFetchService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description HttpClientcreateHttpClient(boolean validateHttps)URLFetchResponsefetch(Status status, URLFetchRequest request)java.lang.IntegergetMaxApiRequestSize()java.lang.DoublegetMaximumDeadline(boolean isOfflineRequest)java.lang.StringgetPackage()voidinit(LocalServiceContext context, java.util.Map<java.lang.String,java.lang.String> properties)voidsetTimeoutInMs(int timeoutInMs)voidstart()voidstop()
-
-
-
Field Detail
-
PACKAGE
public static final java.lang.String PACKAGE
The package name for this service.- See Also:
- Constant Field Values
-
-
Method Detail
-
getPackage
public java.lang.String getPackage()
-
setTimeoutInMs
public void setTimeoutInMs(int timeoutInMs)
-
createHttpClient
public HttpClient createHttpClient(boolean validateHttps)
-
init
public void init(LocalServiceContext context, java.util.Map<java.lang.String,java.lang.String> properties)
-
start
public void start()
-
stop
public void stop()
-
fetch
public URLFetchResponse fetch(Status status, URLFetchRequest request)
-
getMaximumDeadline
public java.lang.Double getMaximumDeadline(boolean isOfflineRequest)
-
getMaxApiRequestSize
public java.lang.Integer getMaxApiRequestSize()
-
-