|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of HttpRequest.HttpRequestException in com.github.kevinsawicki.http |
---|
Methods in com.github.kevinsawicki.http that throw HttpRequest.HttpRequestException | |
---|---|
boolean |
HttpRequest.badRequest()
Is the response code a 400 Bad Request? |
String |
HttpRequest.body()
Get response as String using character set returned from
HttpRequest.charset() |
String |
HttpRequest.body(String charset)
Get response as String in given character set |
BufferedInputStream |
HttpRequest.buffer()
Get response in a buffered stream |
BufferedReader |
HttpRequest.bufferedReader()
Get buffered reader to response body using the character set returned from HttpRequest.charset() and the configured buffer size |
BufferedReader |
HttpRequest.bufferedReader(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()
Call HttpRequest.closeOutput() and re-throw a caught IOException s as
an HttpRequest.HttpRequestException |
int |
HttpRequest.code()
Get the status code of the response |
HttpRequest |
HttpRequest.code(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(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(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(CharSequence url)
Start a 'DELETE' request to the given URL |
static HttpRequest |
HttpRequest.delete(URL url)
Start a 'DELETE' request to the given URL |
static String |
HttpRequest.encode(CharSequence url)
Encode the given URL as an ASCII String |
HttpRequest |
HttpRequest.form(Map.Entry<?,?> entry)
Write the key and value in the entry as form data to the request body |
HttpRequest |
HttpRequest.form(Map.Entry<?,?> entry,
String charset)
Write the key and value in the entry as form data to the request body |
HttpRequest |
HttpRequest.form(Map<?,?> values)
Write the values in the map as form data to the request body |
HttpRequest |
HttpRequest.form(Map<?,?> values,
String charset)
Write the values in the map as encoded form data to the request body |
HttpRequest |
HttpRequest.form(Object name,
Object value)
Write the name/value pair as form data to the request body |
HttpRequest |
HttpRequest.form(Object name,
Object value,
String charset)
Write the name/value pair as form data to the request body |
static HttpRequest |
HttpRequest.get(CharSequence url)
Start a 'GET' request to the given URL |
static HttpRequest |
HttpRequest.get(URL url)
Start a 'GET' request to the given URL |
static HttpRequest |
HttpRequest.head(CharSequence url)
Start a 'HEAD' request to the given URL |
static HttpRequest |
HttpRequest.head(URL url)
Start a 'HEAD' request to the given URL |
String |
HttpRequest.header(String name)
Get a response header |
Map<String,List<String>> |
HttpRequest.headers()
Get all the response headers |
int |
HttpRequest.intHeader(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(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 |
String |
HttpRequest.message()
Get status message of the response |
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(CharSequence url)
Start an 'OPTIONS' request to the given URL |
static HttpRequest |
HttpRequest.options(URL url)
Start an 'OPTIONS' request to the given URL |
HttpRequest |
HttpRequest.part(String name,
File part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
InputStream part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
Number part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
String filename,
File part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
String filename,
InputStream part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
String filename,
Number part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.part(String name,
String filename,
String part)
Write part of a multipart request to the request body |
HttpRequest |
HttpRequest.partHeader(String name,
String value)
Write a multipart header to the response body |
static HttpRequest |
HttpRequest.post(CharSequence url)
Start a 'POST' request to the given URL |
static HttpRequest |
HttpRequest.post(URL url)
Start a 'POST' request to the given URL |
static HttpRequest |
HttpRequest.put(CharSequence url)
Start a 'PUT' request to the given URL |
static HttpRequest |
HttpRequest.put(URL url)
Start a 'PUT' request to the given URL |
InputStreamReader |
HttpRequest.reader()
Get reader to response body using the character set returned from HttpRequest.charset() |
InputStreamReader |
HttpRequest.reader(String charset)
Get reader to response body using given character set. |
HttpRequest |
HttpRequest.receive(Appendable appendable)
Receive response into the given appendable |
HttpRequest |
HttpRequest.receive(File file)
Stream response body to file |
HttpRequest |
HttpRequest.receive(OutputStream output)
Stream response to given output stream |
HttpRequest |
HttpRequest.receive(PrintStream output)
Stream response to given print stream |
HttpRequest |
HttpRequest.receive(Writer writer)
Receive response into the given writer |
protected abstract V |
HttpRequest.Operation.run()
Run operation |
HttpRequest |
HttpRequest.send(byte[] input)
Write byte array to request body |
HttpRequest |
HttpRequest.send(CharSequence value)
Write char sequence to request body |
HttpRequest |
HttpRequest.send(File input)
Write contents of file to request body |
HttpRequest |
HttpRequest.send(InputStream input)
Write stream to request body |
HttpRequest |
HttpRequest.send(Reader input)
Write reader to request body |
boolean |
HttpRequest.serverError()
Is the response code a 500 Internal Server Error? |
InputStream |
HttpRequest.stream()
Get stream to response body |
static HttpRequest |
HttpRequest.trace(CharSequence url)
Start a 'TRACE' request to the given URL |
static HttpRequest |
HttpRequest.trace(URL url)
Start a 'TRACE' request to the given URL |
HttpRequest |
HttpRequest.trustAllCerts()
Configure HTTPS connection to trust all certificates |
OutputStreamWriter |
HttpRequest.writer()
Create writer to request output stream |
Constructors in com.github.kevinsawicki.http that throw HttpRequest.HttpRequestException | |
---|---|
HttpRequest(CharSequence url,
String method)
Create HTTP connection wrapper |
|
HttpRequest(URL url,
String method)
Create HTTP connection wrapper |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |