Class ApiProxyDelegate (5.0.3)
Stay organized with collections
Save and categorize content based on your preferences.
public class ApiProxyDelegate implements ApiProxy.Delegate<LazyApiProxyEnvironment>
Delegates AppEngine API calls to a local http API proxy.
Instances should be registered using ApiProxy.setDelegate(ApiProxy.Delegate).
Implements
com.google.apphosting.api.ApiProxy.Delegate<com.google.appengine.setup.LazyApiProxyEnvironment>
Static Fields
API_DEADLINE_KEY
protected static final String API_DEADLINE_KEY
| Field Value |
| Type |
Description |
String |
|
REQUEST_ENDPOINT
public static final String REQUEST_ENDPOINT
| Field Value |
| Type |
Description |
String |
|
REQUEST_STUB_ID
public static final String REQUEST_STUB_ID
| Field Value |
| Type |
Description |
String |
|
REQUEST_STUB_METHOD
public static final String REQUEST_STUB_METHOD
| Field Value |
| Type |
Description |
String |
|
public static final String RPC_DEADLINE_HEADER
| Field Value |
| Type |
Description |
String |
|
public static final String RPC_METHOD_HEADER
| Field Value |
| Type |
Description |
String |
|
public static final String RPC_STUB_ID_HEADER
| Field Value |
| Type |
Description |
String |
|
Constructors
ApiProxyDelegate()
public ApiProxyDelegate()
Fields
defaultTimeoutMs
protected int defaultTimeoutMs
| Field Value |
| Type |
Description |
int |
|
executor
protected final ExecutorService executor
httpclient
protected final HttpClient httpclient
| Field Value |
| Type |
Description |
org.apache.http.client.HttpClient |
|
Methods
flushLogs(LazyApiProxyEnvironment environment)
public void flushLogs(LazyApiProxyEnvironment environment)
getRequestThreads(LazyApiProxyEnvironment environment)
public List<Thread> getRequestThreads(LazyApiProxyEnvironment environment)
log(LazyApiProxyEnvironment environment, ApiProxy.LogRecord record)
public void log(LazyApiProxyEnvironment environment, ApiProxy.LogRecord record)
makeAsyncCall(LazyApiProxyEnvironment environment, String packageName, String methodName, byte[] request, ApiProxy.ApiConfig apiConfig)
public Future<byte[]> makeAsyncCall(LazyApiProxyEnvironment environment, String packageName, String methodName, byte[] request, ApiProxy.ApiConfig apiConfig)
| Returns |
| Type |
Description |
Future<byte[]> |
|
makeSyncCall(LazyApiProxyEnvironment environment, String packageName, String methodName, byte[] requestData)
public byte[] makeSyncCall(LazyApiProxyEnvironment environment, String packageName, String methodName, byte[] requestData)
| Returns |
| Type |
Description |
byte[] |
|
runSyncCall(LazyApiProxyEnvironment environment, String packageName, String methodName, byte[] requestData, int timeoutMs)
protected byte[] runSyncCall(LazyApiProxyEnvironment environment, String packageName, String methodName, byte[] requestData, int timeoutMs)
| Returns |
| Type |
Description |
byte[] |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-03 UTC.
[null,null,["Last updated 2026-06-03 UTC."],[],[]]