A B C D E F G H I M N O P R S T U V W 
All Classes All Packages

A

addBodyReader(ResponseBodyReader<?>) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds a response body reader.
addContentType(ContentType) - Method in class com.jsunsoft.http.ClientBuilder
Sets content type to header
addContentType(ContentType) - Method in class com.jsunsoft.http.HttpRequestBuilder
Sets the content type header for all requests.
addContentType(ContentType) - Method in interface com.jsunsoft.http.WebTarget
Sets content type to header
addDefaultConnectionConfigCustomizer(Consumer<ConnectionConfig.Builder>) - Method in class com.jsunsoft.http.ClientBuilder
 
addDefaultConnectionManagerBuilderCustomizer(Consumer<PoolingHttpClientConnectionManagerBuilder>) - Method in class com.jsunsoft.http.ClientBuilder
Note: Can override any config defined in another method which is related to connection manager config
addDefaultHeader(String, String) - Method in class com.jsunsoft.http.ClientBuilder
Header needs to be the same for all requests which go through the built CloseableHttpClient
addDefaultHeader(String, String) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds a default header to be included in all requests.
addDefaultHeader(Header) - Method in class com.jsunsoft.http.ClientBuilder
Header needs to be the same for all requests which go through the built CloseableHttpClient
addDefaultHeader(Header) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds a default header to be included in all requests.
addDefaultHeaders(Collection<? extends Header>) - Method in class com.jsunsoft.http.ClientBuilder
Headers need to be the same for all requests which go through the built CloseableHttpClient
addDefaultHeaders(Collection<? extends Header>) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds multiple default headers to be included in all requests.
addDefaultHeaders(Header...) - Method in class com.jsunsoft.http.ClientBuilder
Headers need to be the same for all requests which go through the built CloseableHttpClient
addDefaultHeaders(Header...) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds multiple default headers to be included in all requests.
addDefaultRequestConfigCustomizer(Consumer<RequestConfig.Builder>) - Method in class com.jsunsoft.http.ClientBuilder
 
addDefaultRequestParameter(String, String) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds a default request parameter to be included in all requests.
addDefaultRequestParameter(Collection<? extends NameValuePair>) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds multiple default request parameters to be included in all requests.
addDefaultRequestParameter(Map<String, String>) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds multiple default request parameters to be included in all requests.
addDefaultRequestParameter(NameValuePair) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds a default request parameter to be included in all requests.
addDefaultRequestParameter(NameValuePair...) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds multiple default request parameters to be included in all requests.
addHeader(String, String) - Method in interface com.jsunsoft.http.WebTarget
Adds the given name and value as header to the request.
addHeader(Header) - Method in interface com.jsunsoft.http.WebTarget
Adds the given header to the request.
addHeaders(Collection<? extends Header>) - Method in interface com.jsunsoft.http.WebTarget
Adds the given headers to the request.
addHttpClientCustomizer(Consumer<HttpClientBuilder>) - Method in class com.jsunsoft.http.ClientBuilder
The method takes the Consumer instance which gives the HttpClientBuilder instance to customize the CloseableHttpClient before the http-request is built
addParameter(String, String) - Method in interface com.jsunsoft.http.WebTarget
Add parameter into request name as request parameter name value as request parameter value
addParameter(NameValuePair) - Method in interface com.jsunsoft.http.WebTarget
Added parameter into request
addParameters(String) - Method in interface com.jsunsoft.http.WebTarget
Add parameters from queryString.
addParameters(String...) - Method in interface com.jsunsoft.http.WebTarget
Add parameters into request as [nameValues[0]: nameValues[1], nameValues[2]: nameValues[3], ... e.t.c.]
addParameters(String, Charset) - Method in interface com.jsunsoft.http.WebTarget
Add parameters from queryString.
addParameters(Collection<? extends NameValuePair>) - Method in interface com.jsunsoft.http.WebTarget
Add parameters into request
addParameters(Map<String, String>) - Method in interface com.jsunsoft.http.WebTarget
Add parameters into request key as request parameter name Value as request parameter value
addParameters(NameValuePair...) - Method in interface com.jsunsoft.http.WebTarget
Add parameters into request
addRequestDefaultDateSerializationPattern(Class<?>, String) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds a date deserialization pattern for the request body serialization.
addResponseDefaultDateDeserializationPattern(Class<?>, String) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds a date deserialization pattern for the default response deserializer.

B

basicAuth(String, String) - Method in class com.jsunsoft.http.HttpRequestBuilder
Adds basic authentication to the request.
beforeRetry(WebTarget) - Method in interface com.jsunsoft.http.RetryContext
The method will be called before retry
Beta - Annotation Type in com.jsunsoft.http.annotations
Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.
build() - Method in class com.jsunsoft.http.ClientBuilder
Build CloseableHttpClient
build() - Method in class com.jsunsoft.http.HttpRequestBuilder
Builds the HttpRequest instance.

C

ClientBuilder - Class in com.jsunsoft.http
Builder for CloseableHttpClient.
com.jsunsoft.http - package com.jsunsoft.http
 
com.jsunsoft.http.annotations - package com.jsunsoft.http.annotations
 
compareTo(TypeReference<T>) - Method in class com.jsunsoft.http.TypeReference
The only reason we define this method (and require implementation of Comparable) is to prevent constructing a reference without type information.
containsHeader(String) - Method in interface com.jsunsoft.http.ResponseHandler
Checks if the response contains a header with the given name.
create() - Static method in class com.jsunsoft.http.ClientBuilder
 
create(CloseableHttpClient) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Creates a new instance of HttpRequestBuilder.

D

DateDeserializeContext - Interface in com.jsunsoft.http
Interface representing a context for date deserialization.
delete() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP DELETE method for the current request
delete(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP DELETE method for the current request and return a ResponseHandler instance.
delete(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP DELETE method for the current request and return a ResponseHandler instance.
delete(Object) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String) with serializing body depends on a Content-type into String payload
delete(Object, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String, TypeReference) with serializing body depends on a Content-type into String payload
delete(Object, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String, Class) with serializing body depends on a Content-type into String payload
delete(String) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP DELETE method for the current request with the given payload.
delete(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP DELETE method for the current request with the given payload and response type.
delete(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP DELETE method for the current request with the given payload and response type.
delete(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP DELETE method for the current request
delete(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP DELETE method for the current request with the given HttpEntity and response type.
delete(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP DELETE method for the current request with the given HttpEntity and response type.
DELETE - com.jsunsoft.http.HttpMethod
 
disableDefaultBodyReader() - Method in class com.jsunsoft.http.HttpRequestBuilder
Disables the default body reader.

E

enableAutomaticRetries() - Method in class com.jsunsoft.http.ClientBuilder
By default, the HttpClientBuilder.disableCookieManagement() called.
enableCookieManagement() - Method in class com.jsunsoft.http.ClientBuilder
By default, the HttpClientBuilder.disableCookieManagement() called.
enableDefaultBodyReader() - Method in class com.jsunsoft.http.HttpRequestBuilder
Enables the default body reader.
enableDefaultRedirectStrategy() - Method in class com.jsunsoft.http.ClientBuilder
 
equals(Object) - Method in class com.jsunsoft.http.TypeReference
 

F

filter(Predicate<ResponseHandler<T>>) - Method in class com.jsunsoft.http.FilterSupport
 
filter(Predicate<ResponseHandler<T>>) - Method in interface com.jsunsoft.http.ResponseHandler
Filters the response based on the given predicate.
FilterSupport<T> - Class in com.jsunsoft.http
 

G

get() - Method in interface com.jsunsoft.http.ResponseHandler
Gets the deserialized content from the response.
get() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP GET method for the current request
get(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP GET method for the current request and return a ResponseHandler instance.
get(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP GET method for the current request and return a ResponseHandler instance.
GET - com.jsunsoft.http.HttpMethod
 
getAsOptional() - Method in interface com.jsunsoft.http.ResponseHandler
Gets the deserialized content from the response as an Optional instance.
getAsOptionalOrThrow() - Method in interface com.jsunsoft.http.ResponseHandler
Gets the deserialized content from the response as an Optional.
getCode() - Method in interface com.jsunsoft.http.ResponseHandler
Obtains the code of this response message.
getContent() - Method in interface com.jsunsoft.http.ResponseBodyReaderContext
 
getContentLength() - Method in exception com.jsunsoft.http.InvalidContentLengthException
 
getContentLength() - Method in interface com.jsunsoft.http.ResponseBodyReadableContext
Tells the length of the content, if known.
getContentType() - Method in interface com.jsunsoft.http.Response
 
getContentType() - Method in interface com.jsunsoft.http.ResponseBodyReadableContext
 
getContentType() - Method in interface com.jsunsoft.http.ResponseHandler
Gets the content type of the response.
getDateTypeToPattern() - Method in interface com.jsunsoft.http.DateDeserializeContext
Gets the mapping of date types to their corresponding date patterns.
getDuration() - Method in interface com.jsunsoft.http.ResponseHandler
Gets the duration from the call request to the parsed response.
getErrorText() - Method in interface com.jsunsoft.http.ResponseHandler
Gets the error text if the connection failed, but the server sent useful data nonetheless.
getFirstHeader(String) - Method in interface com.jsunsoft.http.ResponseHandler
Gets the first header with the given name.
getFirstHeaderValue(String) - Method in interface com.jsunsoft.http.ResponseHandler
Gets the value of the first header with the given name.
getGenericType() - Method in interface com.jsunsoft.http.ResponseBodyReadableContext
 
getHeaders() - Method in interface com.jsunsoft.http.ResponseHandler
Gets all headers.
getHeaders(String) - Method in interface com.jsunsoft.http.ResponseHandler
Gets all headers with the given name.
getHttpEntity() - Method in interface com.jsunsoft.http.ResponseBodyReaderContext
 
getLastHeader(String) - Method in interface com.jsunsoft.http.ResponseHandler
Gets the last header with the given name.
getLastHeaderValue(String) - Method in interface com.jsunsoft.http.ResponseHandler
Gets the value of the last header with the given name.
getMimeType() - Method in exception com.jsunsoft.http.InvalidMimeTypeException
 
getOrThrow(Supplier<X>) - Method in interface com.jsunsoft.http.ResponseHandler
Gets the deserialized content from the response or throws an exception provided by the exception supplier if the status code is not successful.
getOrThrow(T, Supplier<X>) - Method in interface com.jsunsoft.http.ResponseHandler
Gets the deserialized content from the response or returns a default value and throws an exception provided by the exception supplier if the status code is not successful.
getRawType() - Method in class com.jsunsoft.http.TypeReference
Returns the object representing the class or interface that declared the type represented by this generic type instance.
getRetryCount() - Method in interface com.jsunsoft.http.RetryContext
 
getRetryDelay(Response) - Method in interface com.jsunsoft.http.RetryContext
 
getStatusCode() - Method in interface com.jsunsoft.http.Response
Deprecated.
use getCode instead
getStatusCode() - Method in interface com.jsunsoft.http.ResponseBodyReadableContext
 
getStatusCode() - Method in exception com.jsunsoft.http.ResponseException
 
getStatusCode() - Method in interface com.jsunsoft.http.ResponseHandler
Deprecated.
getType() - Method in interface com.jsunsoft.http.ResponseBodyReadableContext
 
getType() - Method in interface com.jsunsoft.http.ResponseBodyReaderContext
 
getType() - Method in class com.jsunsoft.http.TypeReference
Retrieve the type represented by the generic type instance.
getURI() - Method in interface com.jsunsoft.http.Response
 
getURI() - Method in interface com.jsunsoft.http.ResponseBodyReadableContext
 
getURI() - Method in exception com.jsunsoft.http.ResponseException
 
getURI() - Method in interface com.jsunsoft.http.ResponseHandler
Gets the connection URI.
getURI() - Method in interface com.jsunsoft.http.WebTarget
 
getURIString() - Method in interface com.jsunsoft.http.WebTarget
 

H

hasContent() - Method in interface com.jsunsoft.http.ResponseHandler
Checks if the content is present.
hasEntity() - Method in interface com.jsunsoft.http.Response
 
hasEntity() - Method in interface com.jsunsoft.http.ResponseBodyReadableContext
 
hashCode() - Method in class com.jsunsoft.http.TypeReference
 
hasNotContent() - Method in interface com.jsunsoft.http.ResponseHandler
Checks if the content is not present.
head() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP HEAD method for the current request
HEAD - com.jsunsoft.http.HttpMethod
 
hostnameVerificationPolicy(HostnameVerificationPolicy) - Method in class com.jsunsoft.http.ClientBuilder
Sets HostnameVerificationPolicy
hostnameVerifier(HostnameVerifier) - Method in class com.jsunsoft.http.ClientBuilder
HttpMethod - Enum in com.jsunsoft.http
 
HttpRequest - Interface in com.jsunsoft.http
HttpRequest is the main entry point to the API used to build and execute client requests.
HttpRequestBuilder - Class in com.jsunsoft.http
Http request builder
HttpRequestBuildException - Exception in com.jsunsoft.http
Exception thrown when there is an error building an HTTP request.

I

ifHasContent(Consumer<? super T>) - Method in interface com.jsunsoft.http.ResponseHandler
If content is present, invokes the specified consumer with the content, otherwise does nothing.
ifNotPassed(Consumer<ResponseHandler<T>>) - Method in class com.jsunsoft.http.FilterSupport
 
ifNotSuccess(Consumer<ResponseHandler<T>>) - Method in interface com.jsunsoft.http.ResponseHandler
If status code is not successful, invokes the specified consumer with the responseHandler.
ifPassed(Consumer<ResponseHandler<T>>) - Method in class com.jsunsoft.http.FilterSupport
 
ifSuccess(Consumer<ResponseHandler<T>>) - Method in interface com.jsunsoft.http.ResponseHandler
If status code is successful, invokes the specified consumer with the responseHandler and returns OtherwiseSupport with ignore else OtherwiseSupport with not ignore.
immutableTarget(String) - Method in interface com.jsunsoft.http.HttpRequest
Build a new immutable web resource target.
immutableTarget(URI) - Method in interface com.jsunsoft.http.HttpRequest
Build a new immutable web resource target.
InvalidContentLengthException - Exception in com.jsunsoft.http
 
InvalidMimeTypeException - Exception in com.jsunsoft.http
 
InvalidMimeTypeException(String, String) - Constructor for exception com.jsunsoft.http.InvalidMimeTypeException
Create a new InvalidContentTypeException for the given content type.
isNonSuccess() - Method in interface com.jsunsoft.http.Response
 
isNonSuccess() - Method in interface com.jsunsoft.http.ResponseBodyReadableContext
 
isNonSuccess() - Method in interface com.jsunsoft.http.ResponseHandler
Checks if the status code is not successful.
isReadable(ResponseBodyReadableContext) - Method in interface com.jsunsoft.http.ResponseBodyReader
Method checks if the response body is readable by this reader.
isSuccess() - Method in interface com.jsunsoft.http.Response
 
isSuccess() - Method in interface com.jsunsoft.http.ResponseBodyReadableContext
 
isSuccess() - Method in interface com.jsunsoft.http.ResponseHandler
Checks if the status code is successful.

M

MissingResponseBodyException - Exception in com.jsunsoft.http
Signals expected response body is missed.
MissingResponseBodyException(int, String, URI) - Constructor for exception com.jsunsoft.http.MissingResponseBodyException
 
MissingResponseBodyException(int, URI) - Constructor for exception com.jsunsoft.http.MissingResponseBodyException
 
mustBeRetried(Response) - Method in interface com.jsunsoft.http.RetryContext
 

N

NoSuchContentException - Exception in com.jsunsoft.http
 

O

options() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP OPTIONS method for the current request
options(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP OPTIONS method for the current request and return a ResponseHandler instance.
options(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP OPTIONS method for the current request and return a ResponseHandler instance.
options(Object) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String) with serializing body depends on a Content-type into String payload
options(Object, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String, TypeReference) with serializing body depends on a Content-type into String payload
options(Object, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String, Class) with serializing body depends on a Content-type into String payload
options(String) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP OPTIONS method for the current request with the given payload.
options(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP OPTIONS method for the current request with the given payload and response type.
options(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP OPTIONS method for the current request with the given payload and response type.
options(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP OPTIONS method for the current request
options(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP OPTIONS method for the current request with the given HttpEntity and response type.
options(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP OPTIONS method for the current request with the given HttpEntity and response type.
OPTIONS - com.jsunsoft.http.HttpMethod
 
orElse(T) - Method in interface com.jsunsoft.http.ResponseHandler
Gets the deserialized content from the response or returns a default value if content isn't present.
orElseThrow() - Method in interface com.jsunsoft.http.ResponseHandler
Gets the deserialized content from the response or throws an exception if the status code is not successful.
orElseThrow(T) - Method in interface com.jsunsoft.http.ResponseHandler
Gets the deserialized content from the response or defaultValue and throws an exception if the status code is not successful.
orThrow(Function<ResponseHandler<? super T>, X>) - Method in interface com.jsunsoft.http.ResponseHandler
Gets the deserialized content from the response or throws an exception provided by the exception function if the status code is not successful.
orThrow(T, Function<ResponseHandler<? super T>, X>) - Method in interface com.jsunsoft.http.ResponseHandler
Gets the deserialized content from the response or returns a default value and throws an exception provided by the exception function if the status code is not successful.
otherwise(Consumer<ResponseHandler<T>>) - Method in class com.jsunsoft.http.OtherwiseSupport
Support action otherwise.
OtherwiseSupport<T> - Class in com.jsunsoft.http
 

P

patch() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PATCH method for the current request
patch(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PATCH method for the current request and return a ResponseHandler instance.
patch(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PATCH method for the current request and return a ResponseHandler instance.
patch(Object) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String) with serializing body depends on a Content-type into String payload
patch(Object, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String, TypeReference) with serializing body depends on a Content-type into String payload
patch(Object, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String, Class) with serializing body depends on a Content-type into String payload
patch(String) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PATCH method for the current request with the given payload.
patch(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PATCH method for the current request with the given payload and response type.
patch(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PATCH method for the current request with the given payload and response type.
patch(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PATCH method for the current request
patch(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PATCH method for the current request with the given HttpEntity and response type.
patch(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PATCH method for the current request with the given HttpEntity and response type.
PATCH - com.jsunsoft.http.HttpMethod
 
path(String) - Method in interface com.jsunsoft.http.WebTarget
Append path to the URI of the current target instance.
post() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP POST method for the current request
post(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP POST method for the current request and return a ResponseHandler instance.
post(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP POST method for the current request and return a ResponseHandler instance.
post(Object) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String) with serializing body depends on a Content-type into String payload
post(Object, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String, TypeReference) with serializing body depends on a Content-type into String payload
post(Object, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String, Class) with serializing body depends on a Content-type into String payload
post(String) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP POST method for the current request with the given payload.
post(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP POST method for the current request with the given payload and response type.
post(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP POST method for the current request with the given payload and response type.
post(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP POST method for the current request
post(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP POST method for the current request with the given HttpEntity and response type.
post(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP POST method for the current request with the given HttpEntity and response type.
POST - com.jsunsoft.http.HttpMethod
 
proxy(String, int) - Method in class com.jsunsoft.http.ClientBuilder
 
proxy(URI) - Method in class com.jsunsoft.http.ClientBuilder
Added proxy by proxyUri.
proxy(HttpHost) - Method in class com.jsunsoft.http.ClientBuilder
Added proxy host.
put() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PUT method for the current request.
put(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PUT method for the current request and return a ResponseHandler instance.
put(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PUT method for the current request and return a ResponseHandler instance.
put(Object) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String) with serializing body depends on a Content-type into String payload
put(Object, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String, TypeReference) with serializing body depends on a Content-type into String payload
put(Object, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String, Class) with serializing body depends on a Content-type into String payload
put(String) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PUT method for the current request with the given payload.
put(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PUT method for the current request with the given payload and response type.
put(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PUT method for the current request with the given payload and response type.
put(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PUT method for the current request
put(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PUT method for the current request with the given HttpEntity and response type.
put(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PUT method for the current request with the given HttpEntity and response type.
PUT - com.jsunsoft.http.HttpMethod
 

R

rawDelete() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP DELETE method for the current request
rawDelete(Object) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.rawDelete(String) with serializing body depends on a Content-type into String payload
rawDelete(String) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP DELETE method for the current request
rawDelete(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP DELETE method for the current request
rawGet() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP GET method for the current request
rawHead() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP HEAD method for the current request
rawOptions() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP OPTIONS method for the current request
rawOptions(Object) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.rawOptions(String) with serializing body depends on a Content-type into String payload
rawOptions(String) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP OPTIONS method for the current request
rawOptions(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP OPTIONS method for the current request
rawPatch() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PATCH method for the current request
rawPatch(Object) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.rawPatch(String) with serializing body depends on a Content-type into String payload
rawPatch(String) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PATCH method for the current request
rawPatch(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PATCH method for the current request
rawPost() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP POST method for the current request
rawPost(Object) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.rawPost(String) with serializing body depends on a Content-type into String payload
rawPost(String) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP POST method for the current request
rawPost(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP POST method for the current request
rawPut() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PUT method for the current request
rawPut(Object) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.rawPut(String) with serializing body depends on a Content-type into String payload
rawPut(String) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PUT method for the current request
rawPut(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP PUT method for the current request
rawRequest(HttpMethod) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request.
rawRequest(HttpMethod, Object) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request with serializing body depends on a Content-type.
rawRequest(HttpMethod, String) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request.
rawRequest(HttpMethod, HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request.
rawTrace() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP TRACE method for the current request
read(ResponseBodyReaderContext<T>) - Method in interface com.jsunsoft.http.ResponseBodyReader
Method receives httpEntity of the response then deserialized to type T
readEntity(TypeReference<T>) - Method in interface com.jsunsoft.http.Response
Read the entity input stream as an instance of specified Java type using a ResponseBodyReader.
readEntity(Class<T>) - Method in interface com.jsunsoft.http.Response
Read the entity input stream as an instance of specified Java type using a ResponseBodyReader.
readEntityChecked(TypeReference<T>) - Method in interface com.jsunsoft.http.Response
Read the entity input stream as an instance of specified Java type using a ResponseBodyReader.
readEntityChecked(Class<T>) - Method in interface com.jsunsoft.http.Response
Read the entity input stream as an instance of specified Java type using a ResponseBodyReader.
redirectStrategy(RedirectStrategy) - Method in class com.jsunsoft.http.ClientBuilder
By default disabled.
removeHeader(Header) - Method in interface com.jsunsoft.http.WebTarget
Removes the given header.
removeHeaders(String) - Method in interface com.jsunsoft.http.WebTarget
Removes all headers with name.
request(HttpMethod) - Method in interface com.jsunsoft.http.WebTarget
Invoke WebTarget.request(HttpMethod, HttpContext) with default http context
request(HttpMethod, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request.
request(HttpMethod, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request.
request(HttpMethod, Object) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, HttpEntity) with serializing body depends on a Content-type into String payload
request(HttpMethod, Object, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String, TypeReference) with serializing body depends on a Content-type into String payload
request(HttpMethod, Object, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, String, Class) with serializing body depends on a Content-type into String payload
request(HttpMethod, String) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, HttpEntity) wrapped payload into StringEntity
request(HttpMethod, String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, HttpEntity, TypeReference) wrapped payload into StringEntity
request(HttpMethod, String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
The same as WebTarget.request(HttpMethod, HttpEntity, Class) wrapped payload into StringEntity
request(HttpMethod, HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request.
request(HttpMethod, HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request.
request(HttpMethod, HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request.
request(HttpMethod, HttpContext) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request.
RequestException - Exception in com.jsunsoft.http
 
RequestException() - Constructor for exception com.jsunsoft.http.RequestException
 
RequestException(String) - Constructor for exception com.jsunsoft.http.RequestException
 
RequestException(String, Throwable) - Constructor for exception com.jsunsoft.http.RequestException
 
RequestException(Throwable) - Constructor for exception com.jsunsoft.http.RequestException
 
requiredGet() - Method in interface com.jsunsoft.http.ResponseHandler
Gets the deserialized content from the response or throws an exception if content isn't present.
Response - Interface in com.jsunsoft.http
 
ResponseBodyProcessingException - Exception in com.jsunsoft.http
When response body parsing failed
ResponseBodyProcessingException(String) - Constructor for exception com.jsunsoft.http.ResponseBodyProcessingException
 
ResponseBodyProcessingException(String, Throwable) - Constructor for exception com.jsunsoft.http.ResponseBodyProcessingException
 
ResponseBodyProcessingException(Throwable) - Constructor for exception com.jsunsoft.http.ResponseBodyProcessingException
 
ResponseBodyReadableContext - Interface in com.jsunsoft.http
 
ResponseBodyReader<T> - Interface in com.jsunsoft.http
Implementation of this interface must provided deserialization of response body to type T
ResponseBodyReaderContext<T> - Interface in com.jsunsoft.http
 
ResponseBodyReaderException - Exception in com.jsunsoft.http
 
ResponseBodyReaderException(String) - Constructor for exception com.jsunsoft.http.ResponseBodyReaderException
 
ResponseBodyReaderException(String, Throwable) - Constructor for exception com.jsunsoft.http.ResponseBodyReaderException
 
ResponseBodyReaderException(Throwable) - Constructor for exception com.jsunsoft.http.ResponseBodyReaderException
 
ResponseBodyReaderNotFoundException - Exception in com.jsunsoft.http
 
ResponseBodyReaderNotFoundException(String) - Constructor for exception com.jsunsoft.http.ResponseBodyReaderNotFoundException
 
ResponseBodyReaderNotFoundException(String, Throwable) - Constructor for exception com.jsunsoft.http.ResponseBodyReaderNotFoundException
 
ResponseBodyReaderNotFoundException(Throwable) - Constructor for exception com.jsunsoft.http.ResponseBodyReaderNotFoundException
 
ResponseException - Exception in com.jsunsoft.http
Signals an HTTP response processing error
ResponseException(int, String, URI) - Constructor for exception com.jsunsoft.http.ResponseException
 
ResponseException(int, String, URI, Throwable) - Constructor for exception com.jsunsoft.http.ResponseException
 
ResponseException(int, URI, Throwable) - Constructor for exception com.jsunsoft.http.ResponseException
 
ResponseHandler<T> - Interface in com.jsunsoft.http
ResponseHandler objects are immutable they can be shared.
retryableTarget(String, RetryContext) - Method in interface com.jsunsoft.http.HttpRequest
Build a new retryable web resource target.
retryableTarget(URI, RetryContext) - Method in interface com.jsunsoft.http.HttpRequest
Build a new retryable web resource target.
RetryContext - Interface in com.jsunsoft.http
 

S

setCharset(Charset) - Method in interface com.jsunsoft.http.WebTarget
Sets the charset for the request.
setConnectionRequestTimeout(int) - Method in class com.jsunsoft.http.ClientBuilder
 
setConnectionRequestTimeout(Timeout) - Method in class com.jsunsoft.http.ClientBuilder
The timeout in milliseconds used when requesting a connection from the connection manager.
setConnectionTimeToLive(int) - Method in class com.jsunsoft.http.ClientBuilder
Defines the total span of time connections can be kept alive or execute requests.
setConnectionTimeToLive(TimeValue) - Method in class com.jsunsoft.http.ClientBuilder
Defines the total span of time connections can be kept alive or execute requests.
setConnectTimeout(int) - Method in class com.jsunsoft.http.ClientBuilder
 
setConnectTimeout(Timeout) - Method in class com.jsunsoft.http.ClientBuilder
Determines the timeout in milliseconds until a connection is established.
setDefaultJsonMapper(ObjectMapper) - Method in class com.jsunsoft.http.HttpRequestBuilder
Sets the default JSON mapper for response body deserialization.
setDefaultMaxPoolSizePerRoute(int) - Method in class com.jsunsoft.http.ClientBuilder
 
setDefaultResponseBodyReader(ResponseBodyReader<?>) - Method in class com.jsunsoft.http.HttpRequestBuilder
Sets the default response body reader.
setDefaultXmlMapper(ObjectMapper) - Method in class com.jsunsoft.http.HttpRequestBuilder
Sets the default XML mapper for response body deserialization.
setMaxPoolSize(int) - Method in class com.jsunsoft.http.ClientBuilder
 
setMaxPoolSizePerRoute(HttpHost, int) - Method in class com.jsunsoft.http.ClientBuilder
Set the connection pool default max size of concurrent connections to a specific route
setPath(String) - Method in interface com.jsunsoft.http.WebTarget
Set path to the URI of the current target instance.
setRequestConfig(RequestConfig) - Method in interface com.jsunsoft.http.WebTarget
Sets the requestConfig to the request
setResponseTimeout(int) - Method in class com.jsunsoft.http.ClientBuilder
 
setResponseTimeout(Timeout) - Method in class com.jsunsoft.http.ClientBuilder
Determines the timeout until arrival of a response from the opposite endpoint.
setSocketTimeout(int) - Method in class com.jsunsoft.http.ClientBuilder
 
setSocketTimeout(Timeout) - Method in class com.jsunsoft.http.ClientBuilder
Defines the socket timeout (SO_TIMEOUT) in milliseconds, which is the timeout for waiting for data or, put differently, a maximum period inactivity between two consecutive data packets.
sslContext(SSLContext) - Method in class com.jsunsoft.http.ClientBuilder
stringReader() - Static method in interface com.jsunsoft.http.ResponseBodyReader
 

T

target(String) - Method in interface com.jsunsoft.http.HttpRequest
Build a new web resource target.
target(URI) - Method in interface com.jsunsoft.http.HttpRequest
Build a new web resource target.
throwIfNotSuccess() - Method in interface com.jsunsoft.http.ResponseHandler
Throws an UnexpectedStatusCodeException if the status code of the response is not successful.
toString() - Method in exception com.jsunsoft.http.ResponseException
 
toString() - Method in class com.jsunsoft.http.TypeReference
 
trace() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP TRACE method for the current request
trace(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP TRACE method for the current request
trace(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP TRACE method for the current request
TRACE - com.jsunsoft.http.HttpMethod
 
trustAllCertificates() - Method in class com.jsunsoft.http.ClientBuilder
Accept all certificates
trustAllHosts() - Method in class com.jsunsoft.http.ClientBuilder
Accept all hosts
TypeReference<T> - Class in com.jsunsoft.http
This generic abstract class is used for obtaining full generics type information Class is based on ideas from http://gafter.blogspot.com/2006/12/super-type-tokens.html, Additional idea (from a suggestion made in comments of the article) is to require bogus implementation of Comparable (any such generic interface would do, as long as it forces a method with generic type to be implemented).
TypeReference() - Constructor for class com.jsunsoft.http.TypeReference
Constructs a new generic type, deriving the generic type and class from type parameter.
TypeReference(Type) - Constructor for class com.jsunsoft.http.TypeReference
Constructs a new generic type, supplying the generic type information and deriving the class.

U

UnexpectedResponseException - Exception in com.jsunsoft.http
Deprecated.
UnexpectedResponseException(int, String, URI) - Constructor for exception com.jsunsoft.http.UnexpectedResponseException
Deprecated.
 
UnexpectedStatusCodeException - Exception in com.jsunsoft.http
Signals a non 2xx HTTP response.
UnexpectedStatusCodeException(int, String, URI) - Constructor for exception com.jsunsoft.http.UnexpectedStatusCodeException
 
updateHeader(String, String) - Method in interface com.jsunsoft.http.WebTarget
Replaces the first occurence of the header with the same name by the value.
updateHeader(Header) - Method in interface com.jsunsoft.http.WebTarget
Replaces the first occurence of the header with the same name.
useDefaultProxy() - Method in class com.jsunsoft.http.ClientBuilder
Instruct HttpClient to use the standard JRE proxy selector to obtain proxy.

V

valueOf(String) - Static method in enum com.jsunsoft.http.HttpMethod
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.jsunsoft.http.HttpMethod
Returns an array containing the constants of this enum type, in the order they are declared.

W

WebTarget - Interface in com.jsunsoft.http
A resource target identified by the resource URI.
whenNonSuccessStringReader() - Static method in interface com.jsunsoft.http.ResponseBodyReader
 
whenSuccessStringReader() - Static method in interface com.jsunsoft.http.ResponseBodyReader
 
A B C D E F G H I M N O P R S T U V W 
All Classes All Packages