| Modifier and Type | Field and Description |
|---|---|
static int |
OPTION_DONT_THROW_ERROR_FOR_NOT_OK |
static String |
RESPONSE_CODE_HEADER_NAME |
| Constructor and Description |
|---|
NetUtils() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
httpConnectToRead(String URL,
Map sendHeaders,
Map receiveHeaders) |
OutputStream |
httpConnectToUpload(String URL,
long length,
Map sendHeaders,
Map receiveHeaders) |
ConnectedRequest |
httpConnectToWrite(String URL,
String type,
Map sendHeaders,
Map receiveHeaders) |
InputStream |
httpConnectToWrite(String URL,
String type,
Map sendProperties,
Map receivedProperties,
byte[] toSend,
int offset,
int length) |
Closes |
setOptions(long turnOn,
long turnOff) |
public static final int OPTION_DONT_THROW_ERROR_FOR_NOT_OK
public static final String RESPONSE_CODE_HEADER_NAME
public Closes setOptions(long turnOn, long turnOff)
public InputStream httpConnectToWrite(String URL, String type, Map sendProperties, Map receivedProperties, byte[] toSend, int offset, int length) throws IOException, MalformedURLException
IOExceptionMalformedURLExceptionpublic InputStream httpConnectToRead(String URL, Map sendHeaders, Map receiveHeaders) throws IOException, MalformedURLException
IOExceptionMalformedURLExceptionpublic OutputStream httpConnectToUpload(String URL, long length, Map sendHeaders, Map receiveHeaders) throws IOException, MalformedURLException
IOExceptionMalformedURLExceptionpublic ConnectedRequest httpConnectToWrite(String URL, String type, Map sendHeaders, Map receiveHeaders) throws IOException, MalformedURLException
IOExceptionMalformedURLException