A B C D E F G H I K L M N O P R S T U W

A

accept(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'Accept' header to given value
acceptCharset(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'Accept-Charset' header to given value
acceptEncoding(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'Accept-Encoding' header to given value
acceptGzipEncoding() - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'Accept-Encoding' header to 'gzip'
acceptJson() - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'Accept' header to 'application/json'
append(CharSequence, Map<?, ?>) - Static method in class com.github.kevinsawicki.http.HttpRequest
Append given map as query parameters to the base URL
append(CharSequence, String...) - Static method in class com.github.kevinsawicki.http.HttpRequest
Append given name/value pairs as query parameters to the base URL
authorization(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'Authorization' header to given value

B

badRequest() - Method in class com.github.kevinsawicki.http.HttpRequest
Is the response code a 400 Bad Request?
basic(String, String) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'Authorization' header to given values in Basic authentication format
body(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Get response as String in given character set
body() - Method in class com.github.kevinsawicki.http.HttpRequest
Get response as String using character set returned from HttpRequest.charset()
buffer() - Method in class com.github.kevinsawicki.http.HttpRequest
Get response in a buffered stream
bufferedReader(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Get buffered reader to response body using the given character set r and the configured buffer size
bufferedReader() - Method in class com.github.kevinsawicki.http.HttpRequest
Get buffered reader to response body using the character set returned from HttpRequest.charset() and the configured buffer size
bufferSize(int) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the size used when buffering and copying between streams
bufferSize() - Method in class com.github.kevinsawicki.http.HttpRequest
Get the configured buffer size
bytes() - Method in class com.github.kevinsawicki.http.HttpRequest
Get response as byte array
byteStream() - Method in class com.github.kevinsawicki.http.HttpRequest
Create byte array output stream

C

cacheControl() - Method in class com.github.kevinsawicki.http.HttpRequest
Get the 'Cache-Control' header from the response
call() - Method in class com.github.kevinsawicki.http.HttpRequest.Operation
 
charset() - Method in class com.github.kevinsawicki.http.HttpRequest
Get 'charset' parameter from 'Content-Type' response header
CHARSET_UTF8 - Static variable in class com.github.kevinsawicki.http.HttpRequest
'UTF-8' charset name
chunk(int) - Method in class com.github.kevinsawicki.http.HttpRequest
Set chunked streaming mode to the given size
closeOutput() - Method in class com.github.kevinsawicki.http.HttpRequest
Close output stream
closeOutputQuietly() - Method in class com.github.kevinsawicki.http.HttpRequest
Call HttpRequest.closeOutput() and re-throw a caught IOExceptions as an HttpRequest.HttpRequestException
code() - Method in class com.github.kevinsawicki.http.HttpRequest
Get the status code of the response
code(AtomicInteger) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the value of the given AtomicInteger to the status code of the response
com.github.kevinsawicki.http - package com.github.kevinsawicki.http
 
connectTimeout(int) - Method in class com.github.kevinsawicki.http.HttpRequest
Set connect timeout on connection to given value
contentEncoding() - Method in class com.github.kevinsawicki.http.HttpRequest
Get the 'Content-Encoding' header from the response
contentLength() - Method in class com.github.kevinsawicki.http.HttpRequest
Get the 'Content-Type' header from the response
contentLength(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'Content-Length' request header to the given value
contentLength(int) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'Content-Length' request header to the given value
contentType(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'Content-Type' request header to the given value
contentType(String, String) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'Content-Type' request header to the given value and charset
contentType() - Method in class com.github.kevinsawicki.http.HttpRequest
Get the 'Content-Type' header from the response
copy(InputStream, OutputStream) - Method in class com.github.kevinsawicki.http.HttpRequest
Copy from input stream to output stream
copy(Reader, Writer) - Method in class com.github.kevinsawicki.http.HttpRequest
Copy from reader to writer
created() - Method in class com.github.kevinsawicki.http.HttpRequest
Is the response code a 201 Created?

D

date() - Method in class com.github.kevinsawicki.http.HttpRequest
Get the 'Date' header from the response
dateHeader(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Get a date header from the response falling back to returning -1 if the header is missing or parsing fails
dateHeader(String, long) - Method in class com.github.kevinsawicki.http.HttpRequest
Get a date header from the response falling back to returning the given default value if the header is missing or parsing fails
delete(CharSequence) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'DELETE' request to the given URL
delete(URL) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'DELETE' request to the given URL
delete(CharSequence, Map<?, ?>, boolean) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'DELETE' request to the given URL along with the query params
delete(CharSequence, boolean, String...) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'DELETE' request to the given URL along with the query params
disconnect() - Method in class com.github.kevinsawicki.http.HttpRequest
Disconnect the connection
done() - Method in class com.github.kevinsawicki.http.HttpRequest.CloseOperation
 
done() - Method in class com.github.kevinsawicki.http.HttpRequest.FlushOperation
 
done() - Method in class com.github.kevinsawicki.http.HttpRequest.Operation
Operation complete callback

E

encode(String) - Static method in class com.github.kevinsawicki.http.HttpRequest.Base64
Encode string as a byte array in Base64 annotation.
encode(CharSequence) - Static method in class com.github.kevinsawicki.http.HttpRequest
Encode the given URL as an ASCII String
encodeBytes(byte[]) - Static method in class com.github.kevinsawicki.http.HttpRequest.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int, int) - Static method in class com.github.kevinsawicki.http.HttpRequest.Base64
Encodes a byte array into Base64 notation.
encodeBytesToBytes(byte[], int, int) - Static method in class com.github.kevinsawicki.http.HttpRequest.Base64
Similar to HttpRequest.Base64.encodeBytes(byte[], int, int) but returns a byte array instead of instantiating a String.
eTag() - Method in class com.github.kevinsawicki.http.HttpRequest
Get the 'ETag' header from the response
expires() - Method in class com.github.kevinsawicki.http.HttpRequest
Get the 'Expires' header from the response

F

form(Map<?, ?>) - Method in class com.github.kevinsawicki.http.HttpRequest
Write the values in the map as form data to the request body
form(Map.Entry<?, ?>) - Method in class com.github.kevinsawicki.http.HttpRequest
Write the key and value in the entry as form data to the request body
form(Map.Entry<?, ?>, String) - Method in class com.github.kevinsawicki.http.HttpRequest
Write the key and value in the entry as form data to the request body
form(Object, Object) - Method in class com.github.kevinsawicki.http.HttpRequest
Write the name/value pair as form data to the request body
form(Object, Object, String) - Method in class com.github.kevinsawicki.http.HttpRequest
Write the name/value pair as form data to the request body
form(Map<?, ?>, String) - Method in class com.github.kevinsawicki.http.HttpRequest
Write the values in the map as encoded form data to the request body

G

get(CharSequence) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'GET' request to the given URL
get(URL) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'GET' request to the given URL
get(CharSequence, Map<?, ?>, boolean) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'GET' request to the given URL along with the query params
get(CharSequence, boolean, String...) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'GET' request to the given URL along with the query params
getCause() - Method in exception com.github.kevinsawicki.http.HttpRequest.HttpRequestException
Get IOException that triggered this request exception
getConnection() - Method in class com.github.kevinsawicki.http.HttpRequest
Get underlying connection
getParam(String, String) - Method in class com.github.kevinsawicki.http.HttpRequest
Get parameter value from header value
getParams(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Get parameter values from header value

H

head(CharSequence) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'HEAD' request to the given URL
head(URL) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'HEAD' request to the given URL
head(CharSequence, Map<?, ?>, boolean) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'HEAD' request to the given URL along with the query params
head(CharSequence, boolean, String...) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'GET' request to the given URL along with the query params
header(String, String) - Method in class com.github.kevinsawicki.http.HttpRequest
Set header name to given value
header(String, Number) - Method in class com.github.kevinsawicki.http.HttpRequest
Set header name to given value
header(Map.Entry<String, String>) - Method in class com.github.kevinsawicki.http.HttpRequest
Set header to have given entry's key as the name and value as the value
header(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Get a response header
HEADER_ACCEPT - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Accept' header name
HEADER_ACCEPT_CHARSET - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Accept-Charset' header name
HEADER_ACCEPT_ENCODING - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Accept-Encoding' header name
HEADER_AUTHORIZATION - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Authorization' header name
HEADER_CACHE_CONTROL - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Cache-Control' header name
HEADER_CONTENT_ENCODING - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Content-Encoding' header name
HEADER_CONTENT_LENGTH - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Content-Length' header name
HEADER_CONTENT_TYPE - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Content-Type' header name
HEADER_DATE - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Date' header name
HEADER_ETAG - Static variable in class com.github.kevinsawicki.http.HttpRequest
'ETag' header name
HEADER_EXPIRES - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Expires' header name
HEADER_IF_NONE_MATCH - Static variable in class com.github.kevinsawicki.http.HttpRequest
'If-None-Match' header name
HEADER_LAST_MODIFIED - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Last-Modified' header name
HEADER_LOCATION - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Location' header name
HEADER_SERVER - Static variable in class com.github.kevinsawicki.http.HttpRequest
'Server' header name
HEADER_USER_AGENT - Static variable in class com.github.kevinsawicki.http.HttpRequest
'User-Agent' header name
headers(Map<String, String>) - Method in class com.github.kevinsawicki.http.HttpRequest
Set all headers found in given map where the keys are the header names and the values are the header values
headers() - Method in class com.github.kevinsawicki.http.HttpRequest
Get all the response headers
headers(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Get all values of the given header from the response
HttpRequest - Class in com.github.kevinsawicki.http
A fluid interface for making HTTP requests using an underlying HttpURLConnection (or sub-class).
HttpRequest(CharSequence, String) - Constructor for class com.github.kevinsawicki.http.HttpRequest
Create HTTP connection wrapper
HttpRequest(URL, String) - Constructor for class com.github.kevinsawicki.http.HttpRequest
Create HTTP connection wrapper
HttpRequest.Base64 - Class in com.github.kevinsawicki.http
Encodes and decodes to and from Base64 notation.
HttpRequest.CloseOperation<V> - Class in com.github.kevinsawicki.http
Class that ensures a Closeable gets closed with proper exception handling.
HttpRequest.CloseOperation(Closeable, boolean) - Constructor for class com.github.kevinsawicki.http.HttpRequest.CloseOperation
Create closer for operation
HttpRequest.FlushOperation<V> - Class in com.github.kevinsawicki.http
Class that and ensures a Flushable gets flushed with proper exception handling.
HttpRequest.FlushOperation(Flushable) - Constructor for class com.github.kevinsawicki.http.HttpRequest.FlushOperation
Create flush operation
HttpRequest.HttpRequestException - Exception in com.github.kevinsawicki.http
HTTP request exception whose cause is always an IOException
HttpRequest.HttpRequestException(IOException) - Constructor for exception com.github.kevinsawicki.http.HttpRequest.HttpRequestException
 
HttpRequest.Operation<V> - Class in com.github.kevinsawicki.http
Operation that handles executing a callback once complete and handling nested exceptions
HttpRequest.Operation() - Constructor for class com.github.kevinsawicki.http.HttpRequest.Operation
 
HttpRequest.RequestOutputStream - Class in com.github.kevinsawicki.http
Request output stream
HttpRequest.RequestOutputStream(OutputStream, String, int) - Constructor for class com.github.kevinsawicki.http.HttpRequest.RequestOutputStream
Create request output stream

I

ifModifiedSince(long) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'If-Modified-Since' request header to the given value
ifNoneMatch(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'If-None-Match' request header to the given value
ignoreCloseExceptions(boolean) - Method in class com.github.kevinsawicki.http.HttpRequest
Set whether or not to ignore exceptions that occur from calling Closeable.close()
ignoreCloseExceptions() - Method in class com.github.kevinsawicki.http.HttpRequest
Get whether or not exceptions thrown by Closeable.close() are ignored
intHeader(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Get an integer header from the response falling back to returning -1 if the header is missing or parsing fails
intHeader(String, int) - Method in class com.github.kevinsawicki.http.HttpRequest
Get an integer header value from the response falling back to the given default value if the header is missing or if parsing fails

K

keepAlive(boolean) - Static method in class com.github.kevinsawicki.http.HttpRequest
Set the 'http.keepAlive' property to the given value.

L

lastModified() - Method in class com.github.kevinsawicki.http.HttpRequest
Get the 'Last-Modified' header from the response
location() - Method in class com.github.kevinsawicki.http.HttpRequest
Get the 'Location' header from the response

M

message() - Method in class com.github.kevinsawicki.http.HttpRequest
Get status message of the response
METHOD_DELETE - Static variable in class com.github.kevinsawicki.http.HttpRequest
'DELETE' request method
METHOD_GET - Static variable in class com.github.kevinsawicki.http.HttpRequest
'GET' request method
METHOD_HEAD - Static variable in class com.github.kevinsawicki.http.HttpRequest
'HEAD' request method
METHOD_OPTIONS - Static variable in class com.github.kevinsawicki.http.HttpRequest
'OPTIONS' options method
METHOD_POST - Static variable in class com.github.kevinsawicki.http.HttpRequest
'POST' request method
METHOD_PUT - Static variable in class com.github.kevinsawicki.http.HttpRequest
'PUT' request method
METHOD_TRACE - Static variable in class com.github.kevinsawicki.http.HttpRequest
'TRACE' request method

N

nonProxyHosts(String...) - Static method in class com.github.kevinsawicki.http.HttpRequest
Set the 'http.nonProxyHosts' properties to the given host values.
notFound() - Method in class com.github.kevinsawicki.http.HttpRequest
Is the response code a 404 Not Found?
notModified() - Method in class com.github.kevinsawicki.http.HttpRequest
Is the response code a 304 Not Modified?

O

ok() - Method in class com.github.kevinsawicki.http.HttpRequest
Is the response code a 200 OK?
openOutput() - Method in class com.github.kevinsawicki.http.HttpRequest
Open output stream
options(CharSequence) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start an 'OPTIONS' request to the given URL
options(URL) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start an 'OPTIONS' request to the given URL

P

PARAM_CHARSET - Static variable in class com.github.kevinsawicki.http.HttpRequest
'charset' header value parameter
parameter(String, String) - Method in class com.github.kevinsawicki.http.HttpRequest
Get parameter with given name from header value in response
parameters(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Get all parameters from header value in response
part(String, String) - Method in class com.github.kevinsawicki.http.HttpRequest
Write part of a multipart request to the request body
part(String, String, String) - Method in class com.github.kevinsawicki.http.HttpRequest
Write part of a multipart request to the request body
part(String, Number) - Method in class com.github.kevinsawicki.http.HttpRequest
Write part of a multipart request to the request body
part(String, String, Number) - Method in class com.github.kevinsawicki.http.HttpRequest
Write part of a multipart request to the request body
part(String, File) - Method in class com.github.kevinsawicki.http.HttpRequest
Write part of a multipart request to the request body
part(String, String, File) - Method in class com.github.kevinsawicki.http.HttpRequest
Write part of a multipart request to the request body
part(String, InputStream) - Method in class com.github.kevinsawicki.http.HttpRequest
Write part of a multipart request to the request body
part(String, String, InputStream) - Method in class com.github.kevinsawicki.http.HttpRequest
Write part of a multipart request to the request body
partHeader(String, String) - Method in class com.github.kevinsawicki.http.HttpRequest
Write a multipart header to the response body
post(CharSequence) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'POST' request to the given URL
post(URL) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'POST' request to the given URL
post(CharSequence, Map<?, ?>, boolean) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'POST' request to the given URL along with the query params
post(CharSequence, boolean, String...) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'POST' request to the given URL along with the query params
proxyHost(String) - Static method in class com.github.kevinsawicki.http.HttpRequest
Set the 'http.proxyHost' & 'https.proxyHost' properties to the given host value.
proxyPort(int) - Static method in class com.github.kevinsawicki.http.HttpRequest
Set the 'http.proxyPort' & 'https.proxyPort' properties to the given port number.
put(CharSequence) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'PUT' request to the given URL
put(URL) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'PUT' request to the given URL
put(CharSequence, Map<?, ?>, boolean) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'PUT' request to the given URL along with the query params
put(CharSequence, boolean, String...) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'PUT' request to the given URL along with the query params

R

reader(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Get reader to response body using given character set.
reader() - Method in class com.github.kevinsawicki.http.HttpRequest
Get reader to response body using the character set returned from HttpRequest.charset()
readTimeout(int) - Method in class com.github.kevinsawicki.http.HttpRequest
Set read timeout on connection to given value
receive(File) - Method in class com.github.kevinsawicki.http.HttpRequest
Stream response body to file
receive(OutputStream) - Method in class com.github.kevinsawicki.http.HttpRequest
Stream response to given output stream
receive(PrintStream) - Method in class com.github.kevinsawicki.http.HttpRequest
Stream response to given print stream
receive(Appendable) - Method in class com.github.kevinsawicki.http.HttpRequest
Receive response into the given appendable
receive(Writer) - Method in class com.github.kevinsawicki.http.HttpRequest
Receive response into the given writer
run() - Method in class com.github.kevinsawicki.http.HttpRequest.Operation
Run operation

S

send(File) - Method in class com.github.kevinsawicki.http.HttpRequest
Write contents of file to request body
send(byte[]) - Method in class com.github.kevinsawicki.http.HttpRequest
Write byte array to request body
send(InputStream) - Method in class com.github.kevinsawicki.http.HttpRequest
Write stream to request body
send(Reader) - Method in class com.github.kevinsawicki.http.HttpRequest
Write reader to request body
send(CharSequence) - Method in class com.github.kevinsawicki.http.HttpRequest
Write char sequence to request body
server() - Method in class com.github.kevinsawicki.http.HttpRequest
Get the 'Server' header from the response
serverError() - Method in class com.github.kevinsawicki.http.HttpRequest
Is the response code a 500 Internal Server Error?
startPart() - Method in class com.github.kevinsawicki.http.HttpRequest
Start part of a multipart
stream() - Method in class com.github.kevinsawicki.http.HttpRequest
Get stream to response body

T

toString() - Method in class com.github.kevinsawicki.http.HttpRequest
 
trace(CharSequence) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'TRACE' request to the given URL
trace(URL) - Static method in class com.github.kevinsawicki.http.HttpRequest
Start a 'TRACE' request to the given URL
trustAllCerts() - Method in class com.github.kevinsawicki.http.HttpRequest
Configure HTTPS connection to trust all certificates
trustAllHosts() - Method in class com.github.kevinsawicki.http.HttpRequest
Configure HTTPS connection to trust all hosts using a custom HostnameVerifier that always returns true for each host verified

U

uncompress(boolean) - Method in class com.github.kevinsawicki.http.HttpRequest
Set whether or not the response body should be automatically uncompressed when read from.
useCaches(boolean) - Method in class com.github.kevinsawicki.http.HttpRequest
Set value of URLConnection.setUseCaches(boolean)
userAgent(String) - Method in class com.github.kevinsawicki.http.HttpRequest
Set the 'User-Agent' header to given value

W

write(String) - Method in class com.github.kevinsawicki.http.HttpRequest.RequestOutputStream
Write string to stream
writePartHeader(String, String) - Method in class com.github.kevinsawicki.http.HttpRequest
Write part header
writer() - Method in class com.github.kevinsawicki.http.HttpRequest
Create writer to request output stream

A B C D E F G H I K L M N O P R S T U W

Copyright © 2011-2013. All Rights Reserved.