public class SafeHttpURLConnection extends Object
| Constructor and Description |
|---|
SafeHttpURLConnection(HttpURLConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect() |
InputStream |
getInputStream(String aUrl,
int aStatusCode,
List<HttpHeader> aHeaders) |
List<HttpHeader> |
readHeaders() |
String |
readReasonPhrase(String aUrl) |
void |
sendBody(String aUrl,
byte[] aRequestBody) |
void |
sendHeaders(HttpHeaders aHeaders) |
int |
waitForStatusCode(String aUrl,
HttpTimeouts aTimeouts) |
public SafeHttpURLConnection(HttpURLConnection connection)
public void sendHeaders(HttpHeaders aHeaders)
public void sendBody(String aUrl, byte[] aRequestBody) throws HttpWriteException
HttpWriteExceptionpublic int waitForStatusCode(String aUrl, HttpTimeouts aTimeouts) throws HttpReadException, HttpConnectException
public String readReasonPhrase(String aUrl) throws HttpReadException
HttpReadExceptionpublic List<HttpHeader> readHeaders()
@Nonnull public InputStream getInputStream(String aUrl, int aStatusCode, List<HttpHeader> aHeaders) throws HttpReadException
HttpReadExceptionpublic void disconnect()
Copyright © 2023. All rights reserved.