Uses of Class
com.github.kevinsawicki.http.HttpRequest.HttpRequestException

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()
           
 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?
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
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.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 a 'OPTIONS' request to the given URL
static HttpRequest HttpRequest.options(URL url)
          Start a '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(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
 

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
 



Copyright © 2011-2012. All Rights Reserved.