1 package com
.google
.appengine
.tools
.remoteapi
;
3 import java
.io
.IOException
;
6 * An interface describing a Remote API client. Implementations of this
7 * interface must be thread-safe.
9 interface RemoteApiClient
{
12 * @return The path to the Remote API handler.
14 String
getRemoteApiPath();
17 * @return The app id associated with this client, possibly null.
22 * @return The credentials assocated with this client as a String.
23 * Non-cookie based implementations may not support this method.
25 String
serializeCredentials();
28 * Executes an HTTP POST request against {@code path}.
30 AppEngineClient
.Response
post(String path
, String mimeType
, byte[] body
) throws IOException
;
33 * Executes an HTTP GET request against {@code path}.
35 AppEngineClient
.Response
get(String path
) throws IOException
;