boolean |
HttpRequest.badRequest() |
Is the response code a 400 Bad Request?
|
java.lang.String |
HttpRequest.body() |
|
java.lang.String |
HttpRequest.body(java.lang.String charset) |
Get response as String in given character set
|
HttpRequest |
HttpRequest.body(java.util.concurrent.atomic.AtomicReference<java.lang.String> output) |
Get the response body as a String and set it as the value of the
given reference.
|
HttpRequest |
HttpRequest.body(java.util.concurrent.atomic.AtomicReference<java.lang.String> output,
java.lang.String charset) |
Get the response body as a String and set it as the value of the
given reference.
|
java.io.BufferedInputStream |
HttpRequest.buffer() |
Get response in a buffered stream
|
java.io.BufferedReader |
HttpRequest.bufferedReader() |
Get buffered reader to response body using the character set returned from
HttpRequest.charset() and the configured buffer size
|
java.io.BufferedReader |
HttpRequest.bufferedReader(java.lang.String charset) |
Get buffered reader to response body using the given character set r and
the configured buffer size
|
byte[] |
HttpRequest.bytes() |
Get response as byte array
|
V |
HttpRequest.Operation.call() |
|
protected HttpRequest |
HttpRequest.closeOutputQuietly() |
|
int |
HttpRequest.code() |
Get the status code of the response
|
HttpRequest |
HttpRequest.code(java.util.concurrent.atomic.AtomicInteger output) |
Set the value of the given AtomicInteger to the status code of the
response
|
boolean |
HttpRequest.created() |
Is the response code a 201 Created?
|
long |
HttpRequest.dateHeader(java.lang.String name) |
Get a date header from the response falling back to returning -1 if the
header is missing or parsing fails
|
long |
HttpRequest.dateHeader(java.lang.String name,
long defaultValue) |
Get a date header from the response falling back to returning the given
default value if the header is missing or parsing fails
|
static HttpRequest |
HttpRequest.delete(java.lang.CharSequence url) |
Start a 'DELETE' request to the given URL
|
static HttpRequest |
HttpRequest.delete(java.net.URL url) |
Start a 'DELETE' request to the given URL
|
static java.lang.String |
HttpRequest.encode(java.lang.CharSequence url) |
Encode the given URL as an ASCII String
|
HttpRequest |
HttpRequest.form(java.lang.Object name,
java.lang.Object value) |
Write the name/value pair as form data to the request body
|
HttpRequest |
HttpRequest.form(java.lang.Object name,
java.lang.Object value,
java.lang.String charset) |
Write the name/value pair as form data to the request body
|
HttpRequest |
HttpRequest.form(java.util.Map.Entry<?,?> entry) |
Write the key and value in the entry as form data to the request body
|
HttpRequest |
HttpRequest.form(java.util.Map.Entry<?,?> entry,
java.lang.String charset) |
Write the key and value in the entry as form data to the request body
|
HttpRequest |
HttpRequest.form(java.util.Map<?,?> values) |
Write the values in the map as form data to the request body
|
HttpRequest |
HttpRequest.form(java.util.Map<?,?> values,
java.lang.String charset) |
Write the values in the map as encoded form data to the request body
|
static HttpRequest |
HttpRequest.get(java.lang.CharSequence url) |
Start a 'GET' request to the given URL
|
static HttpRequest |
HttpRequest.get(java.net.URL url) |
Start a 'GET' request to the given URL
|
private static javax.net.ssl.SSLSocketFactory |
HttpRequest.getTrustedFactory() |
|
static HttpRequest |
HttpRequest.head(java.lang.CharSequence url) |
Start a 'HEAD' request to the given URL
|
static HttpRequest |
HttpRequest.head(java.net.URL url) |
Start a 'HEAD' request to the given URL
|
java.lang.String |
HttpRequest.header(java.lang.String name) |
Get a response header
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
HttpRequest.headers() |
Get all the response headers
|
int |
HttpRequest.intHeader(java.lang.String name) |
Get an integer header from the response falling back to returning -1 if the
header is missing or parsing fails
|
int |
HttpRequest.intHeader(java.lang.String name,
int defaultValue) |
Get an integer header value from the response falling back to the given
default value if the header is missing or if parsing fails
|
boolean |
HttpRequest.isBodyEmpty() |
Is the response body empty?
|
java.lang.String |
HttpRequest.message() |
Get status message of the response
|
boolean |
HttpRequest.noContent() |
Is the response code a 204 No Content?
|
boolean |
HttpRequest.notFound() |
Is the response code a 404 Not Found?
|
boolean |
HttpRequest.notModified() |
Is the response code a 304 Not Modified?
|
boolean |
HttpRequest.ok() |
Is the response code a 200 OK?
|
static HttpRequest |
HttpRequest.options(java.lang.CharSequence url) |
Start an 'OPTIONS' request to the given URL
|
static HttpRequest |
HttpRequest.options(java.net.URL url) |
Start an 'OPTIONS' request to the given URL
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.io.File part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.io.InputStream part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.Number part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String filename,
java.io.File part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String filename,
java.lang.Number part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String filename,
java.lang.String part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String filename,
java.lang.String contentType,
java.io.File part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String filename,
java.lang.String contentType,
java.io.InputStream part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.part(java.lang.String name,
java.lang.String filename,
java.lang.String contentType,
java.lang.String part) |
Write part of a multipart request to the request body
|
HttpRequest |
HttpRequest.partHeader(java.lang.String name,
java.lang.String value) |
Write a multipart header to the response body
|
static HttpRequest |
HttpRequest.post(java.lang.CharSequence url) |
Start a 'POST' request to the given URL
|
static HttpRequest |
HttpRequest.post(java.net.URL url) |
Start a 'POST' request to the given URL
|
static HttpRequest |
HttpRequest.put(java.lang.CharSequence url) |
Start a 'PUT' request to the given URL
|
static HttpRequest |
HttpRequest.put(java.net.URL url) |
Start a 'PUT' request to the given URL
|
java.io.InputStreamReader |
HttpRequest.reader() |
|
java.io.InputStreamReader |
HttpRequest.reader(java.lang.String charset) |
Get reader to response body using given character set.
|
HttpRequest |
HttpRequest.receive(java.io.File file) |
Stream response body to file
|
HttpRequest |
HttpRequest.receive(java.io.OutputStream output) |
Stream response to given output stream
|
HttpRequest |
HttpRequest.receive(java.io.PrintStream output) |
Stream response to given print stream
|
HttpRequest |
HttpRequest.receive(java.io.Writer writer) |
Receive response into the given writer
|
HttpRequest |
HttpRequest.receive(java.lang.Appendable appendable) |
Receive response into the given appendable
|
protected abstract V |
HttpRequest.Operation.run() |
Run operation
|
HttpRequest |
HttpRequest.send(byte[] input) |
Write byte array to request body
|
HttpRequest |
HttpRequest.send(java.io.File input) |
Write contents of file to request body
|
HttpRequest |
HttpRequest.send(java.io.InputStream input) |
Write stream to request body
|
HttpRequest |
HttpRequest.send(java.io.Reader input) |
Write reader to request body
|
HttpRequest |
HttpRequest.send(java.lang.CharSequence value) |
Write char sequence to request body
|
boolean |
HttpRequest.serverError() |
Is the response code a 500 Internal Server Error?
|
java.io.InputStream |
HttpRequest.stream() |
Get stream to response body
|
static HttpRequest |
HttpRequest.trace(java.lang.CharSequence url) |
Start a 'TRACE' request to the given URL
|
static HttpRequest |
HttpRequest.trace(java.net.URL url) |
Start a 'TRACE' request to the given URL
|
HttpRequest |
HttpRequest.trustAllCerts() |
Configure HTTPS connection to trust all certificates
|
java.io.OutputStreamWriter |
HttpRequest.writer() |
Create writer to request output stream
|