public static interface HttpRequests.Request
| Modifier and Type | Method and Description |
|---|---|
java.net.URLConnection |
getConnection() |
java.io.InputStream |
getInputStream() |
java.io.BufferedReader |
getReader() |
java.io.BufferedReader |
getReader(ProgressIndicator indicator) |
java.lang.String |
getURL() |
boolean |
isSuccessful()
Deprecated.
Called automatically on open connection. Use
RequestBuilder.tryConnect() to get response code |
byte [] |
readBytes(ProgressIndicator indicator) |
java.lang.CharSequence |
readChars(ProgressIndicator indicator) |
default java.lang.String |
readString() |
java.lang.String |
readString(ProgressIndicator indicator) |
java.io.File |
saveToFile(java.io.File file,
ProgressIndicator indicator) |
default void |
write(byte [] data) |
default void |
write(java.lang.String data) |
java.lang.String getURL()
java.net.URLConnection getConnection()
throws java.io.IOException
java.io.IOExceptionjava.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionjava.io.BufferedReader getReader()
throws java.io.IOException
java.io.IOExceptionjava.io.BufferedReader getReader(ProgressIndicator indicator) throws java.io.IOException
java.io.IOException@Deprecated
boolean isSuccessful()
throws java.io.IOException
RequestBuilder.tryConnect() to get response codejava.io.IOExceptionjava.io.File saveToFile(java.io.File file,
ProgressIndicator indicator)
throws java.io.IOException
java.io.IOExceptionbyte [] readBytes(ProgressIndicator indicator) throws java.io.IOException
java.io.IOExceptionjava.lang.String readString(ProgressIndicator indicator) throws java.io.IOException
java.io.IOExceptiondefault java.lang.String readString()
throws java.io.IOException
java.io.IOExceptionjava.lang.CharSequence readChars(ProgressIndicator indicator) throws java.io.IOException
java.io.IOExceptiondefault void write(java.lang.String data)
throws java.io.IOException
java.io.IOExceptiondefault void write(byte [] data)
throws java.io.IOException
java.io.IOException