Skip navigation links
C D E G H I O P R S U 

C

com.cloudant.http - package com.cloudant.http
This package provides the classes for interacting with HTTP.
connect(String, URL, String) - Static method in class com.cloudant.http.Http
 
connect(String, URI, String) - Static method in class com.cloudant.http.Http
 
connection - Variable in class com.cloudant.http.HttpConnectionInterceptorContext
 
connectionFactory - Variable in class com.cloudant.http.HttpConnection
A connectionFactory for opening the URLs, can be set, but configured with a default

D

DELETE(URL) - Static method in class com.cloudant.http.Http
 
DELETE(URI) - Static method in class com.cloudant.http.Http
 
disconnect() - Method in class com.cloudant.http.HttpConnection
Disconnect the underlying HttpURLConnection.

E

execute() - Method in class com.cloudant.http.HttpConnection
Execute request without returning data from server.

G

GET(URL) - Static method in class com.cloudant.http.Http
 
GET(URI) - Static method in class com.cloudant.http.Http
 
getConnection() - Method in class com.cloudant.http.HttpConnection
Get the underlying HttpURLConnection object, allowing clients to set/get properties not exposed here.
getInputStream() - Method in interface com.cloudant.http.HttpConnection.InputStreamGenerator
Implementors must return an InputStream that is ready to read from the beginning.

H

HEAD(URL) - Static method in class com.cloudant.http.Http
 
HEAD(URI) - Static method in class com.cloudant.http.Http
 
Http - Class in com.cloudant.http
Factory methods for obtaining HttpConnections.
Http() - Constructor for class com.cloudant.http.Http
 
HttpConnection - Class in com.cloudant.http
A wrapper for HttpURLConnections.
HttpConnection(String, URL, String) - Constructor for class com.cloudant.http.HttpConnection
 
HttpConnection.HttpUrlConnectionFactory - Interface in com.cloudant.http
Factory used by HttpConnection to produce HttpUrlConnections.
HttpConnection.InputStreamGenerator - Interface in com.cloudant.http
An InputStreamGenerator has a single method getInputStream.
HttpConnectionInterceptor - Interface in com.cloudant.http
A marker interface for all HttpConnectionInterceptors.
HttpConnectionInterceptorContext - Class in com.cloudant.http
Provides the context for a HttpConnectionInterceptor.
HttpConnectionInterceptorContext(HttpConnection) - Constructor for class com.cloudant.http.HttpConnectionInterceptorContext
Constructor
HttpConnectionInterceptorContext(HttpConnectionInterceptorContext) - Constructor for class com.cloudant.http.HttpConnectionInterceptorContext
Shallow copy constructor
HttpConnectionRequestInterceptor - Interface in com.cloudant.http
A Request Interceptor is run before the request is made to the server.
HttpConnectionResponseInterceptor - Interface in com.cloudant.http
A Response Interceptor is run after the response is obtained from the server but before the output stream is returned to the original client.

I

interceptRequest(HttpConnectionInterceptorContext) - Method in interface com.cloudant.http.HttpConnectionRequestInterceptor
Intercept the request.
interceptResponse(HttpConnectionInterceptorContext) - Method in interface com.cloudant.http.HttpConnectionResponseInterceptor
Intercept the response This method must not do any of the following Return null Read the response stream

O

openConnection(URL) - Method in interface com.cloudant.http.HttpConnection.HttpUrlConnectionFactory
Called by HttpConnection to open URLs, can be implemented to provide customization.

P

POST(URL, String) - Static method in class com.cloudant.http.Http
 
POST(URI, String) - Static method in class com.cloudant.http.Http
 
PUT(URL, String) - Static method in class com.cloudant.http.Http
 
PUT(URI, String) - Static method in class com.cloudant.http.Http
 

R

replayRequest - Variable in class com.cloudant.http.HttpConnectionInterceptorContext
 
requestInterceptors - Variable in class com.cloudant.http.HttpConnection
 
requestProperties - Variable in class com.cloudant.http.HttpConnection
 
responseAsBytes() - Method in class com.cloudant.http.HttpConnection
Return response body data from server as a byte array.
responseAsInputStream() - Method in class com.cloudant.http.HttpConnection
Return response body data from server as an InputStream.
responseAsString() - Method in class com.cloudant.http.HttpConnection
Return response body data from server as a String.
responseInterceptors - Variable in class com.cloudant.http.HttpConnection
 

S

setNumberOfRetries(int) - Method in class com.cloudant.http.HttpConnection
Sets the number of times this request can be retried.
setProxy(URL) - Method in interface com.cloudant.http.HttpConnection.HttpUrlConnectionFactory
Set a proxy server address.
setRequestBody(String) - Method in class com.cloudant.http.HttpConnection
Set the String of request body data to be sent to the server.
setRequestBody(byte[]) - Method in class com.cloudant.http.HttpConnection
Set the byte array of request body data to be sent to the server.
setRequestBody(InputStream) - Method in class com.cloudant.http.HttpConnection
setRequestBody(InputStream, long) - Method in class com.cloudant.http.HttpConnection
setRequestBody(HttpConnection.InputStreamGenerator) - Method in class com.cloudant.http.HttpConnection
Set an InputStreamGenerator for an InputStream of request body data to be sent to the server.
setRequestBody(HttpConnection.InputStreamGenerator, long) - Method in class com.cloudant.http.HttpConnection
Set an InputStreamGenerator for an InputStream, of known length, of request body data to be sent to the server.

U

url - Variable in class com.cloudant.http.HttpConnection
 
C D E G H I O P R S U 
Skip navigation links