Package io.getstream.core.utils
Class Request
- java.lang.Object
-
- io.getstream.core.utils.Request
-
public final class Request extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Request
buildDelete(java.net.URL url, java.lang.String apiKey, Token token, RequestOption... options)
static Request
buildGet(java.net.URL url, java.lang.String apiKey, Token token, RequestOption... options)
static Request
buildMultiPartPost(java.net.URL url, java.lang.String apiKey, Token token, java.io.File payload, RequestOption... options)
static Request
buildMultiPartPost(java.net.URL url, java.lang.String apiKey, Token token, java.lang.String fileName, byte[] payload, RequestOption... options)
static Request
buildPost(java.net.URL url, java.lang.String apiKey, Token token, byte[] payload, RequestOption... options)
static Request
buildPut(java.net.URL url, java.lang.String apiKey, Token token, byte[] payload, RequestOption... options)
static Request.Builder
buildRequest(java.net.URL url, java.lang.String apiKey, Token token, RequestOption... options)
-
-
-
Method Detail
-
buildRequest
public static Request.Builder buildRequest(java.net.URL url, java.lang.String apiKey, Token token, RequestOption... options) throws java.net.URISyntaxException, java.net.MalformedURLException
- Throws:
java.net.URISyntaxException
java.net.MalformedURLException
-
buildGet
public static Request buildGet(java.net.URL url, java.lang.String apiKey, Token token, RequestOption... options) throws java.net.URISyntaxException, java.net.MalformedURLException
- Throws:
java.net.URISyntaxException
java.net.MalformedURLException
-
buildDelete
public static Request buildDelete(java.net.URL url, java.lang.String apiKey, Token token, RequestOption... options) throws java.net.URISyntaxException, java.net.MalformedURLException
- Throws:
java.net.URISyntaxException
java.net.MalformedURLException
-
buildPost
public static Request buildPost(java.net.URL url, java.lang.String apiKey, Token token, byte[] payload, RequestOption... options) throws java.net.URISyntaxException, java.net.MalformedURLException
- Throws:
java.net.URISyntaxException
java.net.MalformedURLException
-
buildMultiPartPost
public static Request buildMultiPartPost(java.net.URL url, java.lang.String apiKey, Token token, java.lang.String fileName, byte[] payload, RequestOption... options) throws java.net.URISyntaxException, java.net.MalformedURLException
- Throws:
java.net.URISyntaxException
java.net.MalformedURLException
-
buildMultiPartPost
public static Request buildMultiPartPost(java.net.URL url, java.lang.String apiKey, Token token, java.io.File payload, RequestOption... options) throws java.net.URISyntaxException, java.net.MalformedURLException
- Throws:
java.net.URISyntaxException
java.net.MalformedURLException
-
buildPut
public static Request buildPut(java.net.URL url, java.lang.String apiKey, Token token, byte[] payload, RequestOption... options) throws java.net.URISyntaxException, java.net.MalformedURLException
- Throws:
java.net.URISyntaxException
java.net.MalformedURLException
-
-