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