public class AbstractOssIndexRequest extends Object
| Constructor and Description |
|---|
AbstractOssIndexRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProxy(String protocol,
String host,
int port,
String username,
String password)
Add a proxy server through which to make requests
|
void |
addProxy(String protocol,
String host,
int port,
String username,
String password,
int socketTimeout,
int connectTimeout,
int connectionRequestTimeout)
Add a proxy server through which to make requests
|
protected String |
performGetRequest(String requestString)
Perform a get request
|
protected String |
performPostRequest(String requestString,
String data)
Perform the request with the given URL and JSON data.
|
protected String performPostRequest(String requestString, String data) throws IOException
requestString - Server request relative URLdata - JSON data for the requestIOException - On query problemsprotected String performGetRequest(String requestString) throws IOException
requestString - IOExceptionpublic void addProxy(String protocol, String host, int port, String username, String password)
Copyright © 2017. All rights reserved.