public abstract class AbstractSakaiController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected SakaiCredential |
credential |
protected com.google.gson.Gson |
gson |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSakaiController(SakaiCredential credential) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getBody(String path) |
protected String |
getBody(URL url) |
protected int |
getCode(String path) |
protected int |
getCode(URL url) |
protected InputStream |
getInputStream(String path) |
protected InputStream |
getInputStream(URL url) |
protected com.google.gson.JsonElement |
getJson(String path) |
protected com.google.gson.JsonElement |
getJson(URL url) |
protected com.google.gson.JsonElement |
jsonPost(String path) |
protected com.google.gson.JsonElement |
jsonPost(String path,
okhttp3.RequestBody requestBody) |
protected com.google.gson.JsonElement |
jsonPost(URL url) |
protected com.google.gson.JsonElement |
jsonPost(URL url,
okhttp3.RequestBody requestBody) |
protected String |
postBody(String path) |
protected String |
postBody(String path,
okhttp3.RequestBody requestBody) |
protected String |
postBody(URL url) |
protected String |
postBody(URL url,
okhttp3.RequestBody requestBody) |
protected int |
postCode(String path) |
protected int |
postCode(String path,
okhttp3.RequestBody requestBody) |
protected int |
postCode(URL url) |
protected int |
postCode(URL url,
okhttp3.RequestBody requestBody) |
@NotNull protected final SakaiCredential credential
@NotNull protected final com.google.gson.Gson gson
protected AbstractSakaiController(@NotNull
SakaiCredential credential)
protected int getCode(@NotNull
URL url)
throws IOException,
HttpCodeException
IOExceptionHttpCodeExceptionprotected int getCode(@NotNull
String path)
throws IOException,
HttpCodeException
IOExceptionHttpCodeException@NotNull protected final String getBody(@NotNull URL url) throws IOException
IOException@NotNull protected final String getBody(@NotNull String path) throws IOException
IOException@NotNull
protected final com.google.gson.JsonElement getJson(@NotNull
URL url)
throws HttpCodeException,
IOException
HttpCodeExceptionIOException@NotNull
protected final com.google.gson.JsonElement getJson(@NotNull
String path)
throws HttpCodeException,
IOException
HttpCodeExceptionIOException@NotNull protected final InputStream getInputStream(@NotNull URL url) throws IOException
IOException@NotNull protected final InputStream getInputStream(@NotNull String path) throws IOException
IOExceptionprotected int postCode(@NotNull
URL url,
@Nullable
okhttp3.RequestBody requestBody)
throws IOException,
HttpCodeException
IOExceptionHttpCodeExceptionprotected int postCode(@NotNull
URL url)
throws IOException,
HttpCodeException
IOExceptionHttpCodeExceptionprotected int postCode(@NotNull
String path,
@Nullable
okhttp3.RequestBody requestBody)
throws IOException,
HttpCodeException
IOExceptionHttpCodeExceptionprotected int postCode(@NotNull
String path)
throws IOException,
HttpCodeException
IOExceptionHttpCodeException@NotNull protected final String postBody(@NotNull URL url, @Nullable okhttp3.RequestBody requestBody) throws IOException, HttpCodeException
IOExceptionHttpCodeException@NotNull protected final String postBody(@NotNull URL url) throws IOException, HttpCodeException
IOExceptionHttpCodeException@NotNull protected final String postBody(@NotNull String path, @Nullable okhttp3.RequestBody requestBody) throws IOException, HttpCodeException
IOExceptionHttpCodeException@NotNull protected final String postBody(@NotNull String path) throws IOException, HttpCodeException
IOExceptionHttpCodeException@NotNull
protected final com.google.gson.JsonElement jsonPost(@NotNull
URL url,
@Nullable
okhttp3.RequestBody requestBody)
throws IOException,
HttpCodeException
IOExceptionHttpCodeException@NotNull
protected final com.google.gson.JsonElement jsonPost(@NotNull
URL url)
throws IOException,
HttpCodeException
IOExceptionHttpCodeException@NotNull
protected final com.google.gson.JsonElement jsonPost(@NotNull
String path,
@Nullable
okhttp3.RequestBody requestBody)
throws HttpCodeException,
IOException
HttpCodeExceptionIOException@NotNull
protected final com.google.gson.JsonElement jsonPost(@NotNull
String path)
throws HttpCodeException,
IOException
HttpCodeExceptionIOExceptionCopyright © 2016. All rights reserved.