public abstract class HttpRepository extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpRepository.Parameter |
| Modifier | Constructor and Description |
|---|---|
protected |
HttpRepository(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createQueryString(List<HttpRepository.Parameter> parameters) |
byte[] |
get(String urlString) |
byte[] |
get(String urlString,
int retryCount) |
byte[] |
get(String url,
Map<String,String> parameters) |
InputStream |
getResponseStream(URLConnection connection) |
byte[] |
post(String urlString,
List<HttpRepository.Parameter> formParameters) |
byte[] |
post(String url,
Map<String,String> urlParameters,
List<HttpRepository.Parameter> formParameters) |
protected HttpRepository(Configuration configuration)
public byte[] get(String urlString)
public byte[] get(String urlString, int retryCount)
public InputStream getResponseStream(URLConnection connection) throws IOException
IOExceptionpublic byte[] post(String url, Map<String,String> urlParameters, List<HttpRepository.Parameter> formParameters)
public byte[] post(String urlString, List<HttpRepository.Parameter> formParameters)
protected String createQueryString(List<HttpRepository.Parameter> parameters)
Copyright © 2013–2017 V5 Analytics. All rights reserved.