Skip navigation links
A B C D E F G H I M N O P R S T U V W _ 

A

addContentType(ContentType) - Method in class com.jsunsoft.http.HttpRequestBuilder
Sets content type to header
addContentType(ContentType) - Method in interface com.jsunsoft.http.WebTarget
Sets content type to header
addDefaultHeader(String, String) - Method in class com.jsunsoft.http.HttpRequestBuilder
Header needs to be the same for all requests which go through the built HttpRequest
addDefaultHeader(Header) - Method in class com.jsunsoft.http.HttpRequestBuilder
Header needs to be the same for all requests which go through the built HttpRequest
addDefaultHeaders(Header...) - Method in class com.jsunsoft.http.HttpRequestBuilder
Headers need to be the same for all requests which go through the built HttpRequest
addDefaultHeaders(Collection<? extends Header>) - Method in class com.jsunsoft.http.HttpRequestBuilder
Headers need to be the same for all requests which go through the built HttpRequest
addDefaultRequestConfigCustomizer(Consumer<RequestConfig.Builder>) - Method in class com.jsunsoft.http.ClientBuilder
 
addDefaultRequestParameter(String, String) - Method in class com.jsunsoft.http.HttpRequestBuilder
Parameter needs to be add for all requests which go through the built HttpRequest
addDefaultRequestParameter(NameValuePair...) - Method in class com.jsunsoft.http.HttpRequestBuilder
Parameters need to be add for all requests which go through the built HttpRequest
addDefaultRequestParameter(NameValuePair) - Method in class com.jsunsoft.http.HttpRequestBuilder
Parameter needs to be add for all requests which go through the built HttpRequest
addDefaultRequestParameter(Map<String, String>) - Method in class com.jsunsoft.http.HttpRequestBuilder
Parameters needs to be add for all requests which go through the built HttpRequest
addDefaultRequestParameter(Collection<? extends NameValuePair>) - Method in class com.jsunsoft.http.HttpRequestBuilder
Parameters needs to be add for all requests which go through the built HttpRequest
addHeader(Header) - Method in class com.jsunsoft.http.BasicResponse
Adds a header to this message.
addHeader(String, String) - Method in class com.jsunsoft.http.BasicResponse
Adds a header to this message.
addHeader(Header) - Method in interface com.jsunsoft.http.WebTarget
Adds the given header to the request.
addHeader(String, String) - Method in interface com.jsunsoft.http.WebTarget
Adds the given name and value as 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(NameValuePair) - Method in interface com.jsunsoft.http.WebTarget
 
addParameter(String, String) - Method in interface com.jsunsoft.http.WebTarget
 
addParameters(NameValuePair...) - Method in interface com.jsunsoft.http.WebTarget
 
addParameters(String, Charset) - Method in interface com.jsunsoft.http.WebTarget
 
addParameters(String) - Method in interface com.jsunsoft.http.WebTarget
 
addParameters(String...) - Method in interface com.jsunsoft.http.WebTarget
 
addParameters(Collection<? extends NameValuePair>) - Method in interface com.jsunsoft.http.WebTarget
 
addParameters(Map<String, String>) - Method in interface com.jsunsoft.http.WebTarget
 

B

basicAuth(String, String) - Method in class com.jsunsoft.http.ClientBuilder
Basic Authentication - sending the Authorization header.
BasicDateDeserializeContext - Class in com.jsunsoft.http
 
BasicDateDeserializeContext(String, String, String) - Constructor for class com.jsunsoft.http.BasicDateDeserializeContext
 
BasicResponse - Class in com.jsunsoft.http
 
BasicResponse(CloseableHttpResponse, URI) - Constructor for class com.jsunsoft.http.BasicResponse
 
BasicResponseHandler<T> - Class in com.jsunsoft.http
ResponseHandler objects are immutable they can be shared.
build() - Method in class com.jsunsoft.http.ClientBuilder
Build CloseableHttpClient
build() - Method in class com.jsunsoft.http.HttpRequestBuilder
Build the HttpRequest instance

C

ClientBuilder - Class in com.jsunsoft.http
Builder for CloseableHttpClient.
close() - Method in class com.jsunsoft.http.BasicResponse
Closes this stream and releases any system resources associated with it.
com.jsunsoft.http - package com.jsunsoft.http
 
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.
connectionRequestTimeout(int) - Method in class com.jsunsoft.http.ClientBuilder
The timeout in milliseconds used when requesting a connection from the connection manager.
containsHeader(String) - Method in class com.jsunsoft.http.BasicResponse
Checks if a certain header is present in this message.
create() - Static method in class com.jsunsoft.http.ClientBuilder
 
create(CloseableHttpClient) - Static method in class com.jsunsoft.http.HttpRequestBuilder
 

D

DateDeserializeContext - Interface in com.jsunsoft.http
 
delete() - Method in interface com.jsunsoft.http.WebTarget
 
delete(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
 
delete(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
delete(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
delete(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
delete(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
delete(String) - Method in interface com.jsunsoft.http.WebTarget
 
delete(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
delete(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
deserialize(ResponseBodyReaderContext) - Method in interface com.jsunsoft.http.ResponseDeserializer
Method receives httpEntity of the response then deserialized to type T
deserializeFailure(ResponseBodyReaderContext) - Method in interface com.jsunsoft.http.ResponseDeserializer
 

E

enableDefaultRedirectStrategy() - Method in class com.jsunsoft.http.ClientBuilder
By default, only GET requests resulting in a redirect are automatically followed.
enableLaxRedirectStrategy() - Method in class com.jsunsoft.http.ClientBuilder
By default, only GET requests resulting in a redirect are automatically followed.

F

filter(Predicate<ResponseHandler<T>>) - Method in class com.jsunsoft.http.BasicResponseHandler
 
filter(Predicate<ResponseHandler<T>>) - Method in class com.jsunsoft.http.FilterSupport
 
filter(Predicate<ResponseHandler<T>>) - Method in interface com.jsunsoft.http.ResponseHandler
 
FilterSupport<T> - Class in com.jsunsoft.http
 

G

get() - Method in class com.jsunsoft.http.BasicResponseHandler
Strongly recommend call get method after check content is present.
get() - Method in interface com.jsunsoft.http.ResponseHandler
Strongly recommend call get method after check content is present.
get() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP GET method for the current request
get(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP GET method for the current request
get(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
get(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
get(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
get(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
get(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
get(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
get(String) - Method in interface com.jsunsoft.http.WebTarget
 
getAllHeaders() - Method in class com.jsunsoft.http.BasicResponse
Returns all the headers of this message.
getContent() - Method in interface com.jsunsoft.http.ResponseBodyReaderContext
 
getContentAsString() - Method in interface com.jsunsoft.http.ResponseBodyReaderContext
 
getContentLength() - Method in exception com.jsunsoft.http.InvalidContentLengthException
 
getContentLength() - Method in interface com.jsunsoft.http.ResponseBodyReaderContext
Tells the length of the content, if known.
getContentType() - Method in class com.jsunsoft.http.BasicResponseHandler
 
getContentType() - Method in interface com.jsunsoft.http.ResponseBodyReaderContext
 
getContentType() - Method in interface com.jsunsoft.http.ResponseHandler
 
getDatePattern() - Method in class com.jsunsoft.http.BasicDateDeserializeContext
 
getDatePattern() - Method in interface com.jsunsoft.http.DateDeserializeContext
 
getDateTimePattern() - Method in class com.jsunsoft.http.BasicDateDeserializeContext
 
getDateTimePattern() - Method in interface com.jsunsoft.http.DateDeserializeContext
 
getEntity() - Method in class com.jsunsoft.http.BasicResponse
Obtains the message entity of this response, if any.
getErrorText() - Method in class com.jsunsoft.http.BasicResponseHandler
 
getErrorText() - Method in interface com.jsunsoft.http.ResponseHandler
 
getFirstHeader(String) - Method in class com.jsunsoft.http.BasicResponse
Returns the first header with a specified name of this message.
getHeaders(String) - Method in class com.jsunsoft.http.BasicResponse
Returns all the headers with a specified name of this message.
getHttpEntity() - Method in interface com.jsunsoft.http.ResponseBodyReaderContext
 
getLastHeader(String) - Method in class com.jsunsoft.http.BasicResponse
Returns the last header with a specified name of this message.
getLocale() - Method in class com.jsunsoft.http.BasicResponse
Obtains the locale of this response.
getMimeType() - Method in exception com.jsunsoft.http.InvalidMimeTypeException
 
getOrThrow(Supplier<X>) - Method in class com.jsunsoft.http.BasicResponseHandler
 
getOrThrow(T, Supplier<X>) - Method in class com.jsunsoft.http.BasicResponseHandler
 
getOrThrow(Supplier<X>) - Method in interface com.jsunsoft.http.ResponseHandler
 
getOrThrow(T, Supplier<X>) - Method in interface com.jsunsoft.http.ResponseHandler
 
getParams() - Method in class com.jsunsoft.http.BasicResponse
Deprecated.
(4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config'
getProtocolVersion() - Method in class com.jsunsoft.http.BasicResponse
Returns the protocol version this message is compatible with.
getStatusCode() - Method in class com.jsunsoft.http.BasicResponseHandler
 
getStatusCode() - Method in interface com.jsunsoft.http.Response
 
getStatusCode() - Method in exception com.jsunsoft.http.ResponseException
 
getStatusCode() - Method in interface com.jsunsoft.http.ResponseHandler
 
getStatusLine() - Method in class com.jsunsoft.http.BasicResponse
Obtains the status line of this response.
getStatusLine() - Method in class com.jsunsoft.http.BasicResponseHandler
Obtains the status line of this response.
getStatusLine() - Method in interface com.jsunsoft.http.ResponseHandler
Obtains the status line of this response.
getTimePattern() - Method in class com.jsunsoft.http.BasicDateDeserializeContext
 
getTimePattern() - Method in interface com.jsunsoft.http.DateDeserializeContext
 
getType() - Method in interface com.jsunsoft.http.ResponseBodyReaderContext
 
getType() - Method in class com.jsunsoft.http.TypeReference
 
getUri() - Method in class com.jsunsoft.http.BasicResponseHandler
 
getUri() - Method in exception com.jsunsoft.http.ResponseException
 
getUri() - Method in interface com.jsunsoft.http.ResponseHandler
 

H

hasContent() - Method in class com.jsunsoft.http.BasicResponseHandler
 
hasContent() - Method in interface com.jsunsoft.http.ResponseHandler
 
hasNotContent() - Method in class com.jsunsoft.http.BasicResponseHandler
 
hasNotContent() - Method in interface com.jsunsoft.http.ResponseHandler
 
head() - Method in interface com.jsunsoft.http.WebTarget
 
head(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
 
head(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
head(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
head(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
head(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
head(String) - Method in interface com.jsunsoft.http.WebTarget
 
head(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
head(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
headerIterator() - Method in class com.jsunsoft.http.BasicResponse
Returns an iterator of all the headers.
headerIterator(String) - Method in class com.jsunsoft.http.BasicResponse
Returns an iterator of the headers with a given name.
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
 

I

ifHasContent(Consumer<? super T>) - Method in class com.jsunsoft.http.BasicResponseHandler
If has a content, invoke the specified consumer with the content, otherwise do nothing.
ifHasContent(Consumer<? super T>) - Method in interface com.jsunsoft.http.ResponseHandler
If has a content, invoke the specified consumer with the content, otherwise do nothing.
ifNotPassed(Consumer<ResponseHandler<T>>) - Method in class com.jsunsoft.http.FilterSupport
 
ifPassed(Consumer<ResponseHandler<T>>) - Method in class com.jsunsoft.http.FilterSupport
 
ifSuccess(Consumer<ResponseHandler<T>>) - Method in class com.jsunsoft.http.BasicResponseHandler
If status code is success , invoke the specified consumer with the responseHandler and returns OtherwiseSupport with ignore else OtherwiseSupport with not ignore.
ifSuccess(Consumer<ResponseHandler<T>>) - Method in interface com.jsunsoft.http.ResponseHandler
If status code is success , invoke the specified consumer with the responseHandler and returns OtherwiseSupport with ignore else OtherwiseSupport with not ignore.
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 class com.jsunsoft.http.BasicResponseHandler
 
isNonSuccess() - Method in interface com.jsunsoft.http.ResponseHandler
 
isSuccess() - Method in class com.jsunsoft.http.BasicResponseHandler
 
isSuccess() - Method in interface com.jsunsoft.http.ResponseHandler
 

M

maxPoolSize(int) - Method in class com.jsunsoft.http.ClientBuilder
 

N

NoSuchContentException - Exception in com.jsunsoft.http
 

O

options() - Method in interface com.jsunsoft.http.WebTarget
 
options(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
 
options(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
options(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
options(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
options(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
options(String) - Method in interface com.jsunsoft.http.WebTarget
 
options(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
options(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
orElse(T) - Method in class com.jsunsoft.http.BasicResponseHandler
 
orElse(T) - Method in interface com.jsunsoft.http.ResponseHandler
 
orElseThrow(T) - Method in class com.jsunsoft.http.BasicResponseHandler
 
orElseThrow() - Method in class com.jsunsoft.http.BasicResponseHandler
 
orElseThrow(T) - Method in interface com.jsunsoft.http.ResponseHandler
 
orElseThrow() - Method in interface com.jsunsoft.http.ResponseHandler
 
orThrow(Function<ResponseHandler<? super T>, X>) - Method in class com.jsunsoft.http.BasicResponseHandler
 
orThrow(T, Function<ResponseHandler<? super T>, X>) - Method in class com.jsunsoft.http.BasicResponseHandler
 
orThrow(Function<ResponseHandler<? super T>, X>) - Method in interface com.jsunsoft.http.ResponseHandler
 
orThrow(T, Function<ResponseHandler<? super T>, X>) - Method in interface com.jsunsoft.http.ResponseHandler
 
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
 
patch(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
 
patch(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
patch(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
patch(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
patch(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
patch(String) - Method in interface com.jsunsoft.http.WebTarget
 
patch(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
patch(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
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
 
post(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
 
post(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
post(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
post(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
post(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
post(String) - Method in interface com.jsunsoft.http.WebTarget
 
post(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
post(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
proxy(HttpHost) - Method in class com.jsunsoft.http.ClientBuilder
Added proxy host.
proxy(URI) - Method in class com.jsunsoft.http.ClientBuilder
Added proxy by proxyUri.
proxy(String, int) - Method in class com.jsunsoft.http.ClientBuilder
 
put() - Method in interface com.jsunsoft.http.WebTarget
 
put(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
 
put(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
put(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
put(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
put(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
put(String) - Method in interface com.jsunsoft.http.WebTarget
 
put(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
put(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 

R

rawDelete() - Method in interface com.jsunsoft.http.WebTarget
 
rawGet() - Method in interface com.jsunsoft.http.WebTarget
Invoke HTTP GET method for the current request
rawHead() - Method in interface com.jsunsoft.http.WebTarget
 
rawOptions() - Method in interface com.jsunsoft.http.WebTarget
 
rawPatch() - Method in interface com.jsunsoft.http.WebTarget
 
rawPost() - Method in interface com.jsunsoft.http.WebTarget
 
rawPut() - Method in interface com.jsunsoft.http.WebTarget
 
rawRequest(HttpMethod) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request.
rawTrace() - Method in interface com.jsunsoft.http.WebTarget
 
redirectStrategy(RedirectStrategy) - Method in class com.jsunsoft.http.ClientBuilder
By default disabled.
removeHeader(Header) - Method in class com.jsunsoft.http.BasicResponse
Removes a header from this message.
removeHeader(Header) - Method in interface com.jsunsoft.http.WebTarget
Removes the given header.
removeHeaders(String) - Method in class com.jsunsoft.http.BasicResponse
Removes all headers with a certain name from this message.
removeHeaders(String) - Method in interface com.jsunsoft.http.WebTarget
Removes all headers with name.
request(HttpMethod) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request.
request(HttpMethod, HttpEntity) - 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, HttpEntity, 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, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
Invoke an arbitrary method for the current request.
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, String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
request(HttpMethod, String) - Method in interface com.jsunsoft.http.WebTarget
 
RequestException - Exception in com.jsunsoft.http
Signals an error in the HTTP protocol.
RequestException() - Constructor for exception com.jsunsoft.http.RequestException
 
RequestException(String) - Constructor for exception com.jsunsoft.http.RequestException
 
RequestException(Throwable) - Constructor for exception com.jsunsoft.http.RequestException
 
RequestException(String, Throwable) - Constructor for exception com.jsunsoft.http.RequestException
 
Response - Interface in com.jsunsoft.http
 
ResponseBodyReaderContext - Interface in com.jsunsoft.http
 
ResponseDeserializeException - Exception in com.jsunsoft.http
 
ResponseDeserializeException(String, Throwable) - Constructor for exception com.jsunsoft.http.ResponseDeserializeException
 
ResponseDeserializeException(Throwable) - Constructor for exception com.jsunsoft.http.ResponseDeserializeException
 
ResponseDeserializeException(String) - Constructor for exception com.jsunsoft.http.ResponseDeserializeException
 
ResponseDeserializer<T> - Interface in com.jsunsoft.http
Implementation of this interface must provided deserialization of response body to type T
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, URI, Throwable) - Constructor for exception com.jsunsoft.http.ResponseException
 
ResponseException(int, String, URI, Throwable) - Constructor for exception com.jsunsoft.http.ResponseException
 
ResponseHandler<T> - Interface in com.jsunsoft.http
ResponseHandler objects are immutable they can be shared.

S

setConnectTimeout(int) - Method in class com.jsunsoft.http.ClientBuilder
Determines the timeout in milliseconds until a connection is established.
setDefaultMaxPoolSizePerRoute(int) - Method in class com.jsunsoft.http.ClientBuilder
 
setEntity(HttpEntity) - Method in class com.jsunsoft.http.BasicResponse
Associates a response entity with this response.
setHeader(Header) - Method in class com.jsunsoft.http.BasicResponse
Overwrites the first header with the same name.
setHeader(String, String) - Method in class com.jsunsoft.http.BasicResponse
Overwrites the first header with the same name.
setHeaders(Header[]) - Method in class com.jsunsoft.http.BasicResponse
Overwrites all the headers in the message.
setLocale(Locale) - Method in class com.jsunsoft.http.BasicResponse
Changes the locale of this response.
setMaxPoolSizePerRoute(HttpHost, int) - Method in class com.jsunsoft.http.ClientBuilder
Set the connection pool default max size of concurrent connections to a specific route
setParams(HttpParams) - Method in class com.jsunsoft.http.BasicResponse
Deprecated.
(4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config'
setReasonPhrase(String) - Method in class com.jsunsoft.http.BasicResponse
Updates the status line of this response with a new reason phrase.
setRequestConfig(RequestConfig) - Method in interface com.jsunsoft.http.WebTarget
Sets the requestConfig to the request
setStatusCode(int) - Method in class com.jsunsoft.http.BasicResponse
Updates the status line of this response with a new status code.
setStatusLine(StatusLine) - Method in class com.jsunsoft.http.BasicResponse
Sets the status line of this response.
setStatusLine(ProtocolVersion, int) - Method in class com.jsunsoft.http.BasicResponse
Sets the status line of this response.
setStatusLine(ProtocolVersion, int, String) - Method in class com.jsunsoft.http.BasicResponse
Sets the status line of this response with a reason phrase.
socketTimeOut(int) - 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

T

target(URI) - Method in interface com.jsunsoft.http.HttpRequest
Build a new web resource target.
target(String) - Method in interface com.jsunsoft.http.HttpRequest
Build a new web resource target.
toString() - Method in class com.jsunsoft.http.BasicResponseHandler
 
toStringDeserializer() - Static method in interface com.jsunsoft.http.ResponseDeserializer
For ignore response deserialization you can use instance
trace() - Method in interface com.jsunsoft.http.WebTarget
 
trace(HttpEntity) - Method in interface com.jsunsoft.http.WebTarget
 
trace(HttpEntity, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
trace(HttpEntity, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
trace(String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
trace(String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
trace(String) - Method in interface com.jsunsoft.http.WebTarget
 
trace(Class<T>) - Method in interface com.jsunsoft.http.WebTarget
 
trace(TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
 
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
 

U

UnexpectedResponseException - Exception in com.jsunsoft.http
Signals an unexpected HTTP response
UnexpectedResponseException(int, String, URI) - Constructor for exception com.jsunsoft.http.UnexpectedResponseException
 
UnexpectedStatusCodeException - Exception in com.jsunsoft.http
Signals a non 2xx HTTP response.
UnexpectedStatusCodeException(int, String, URI) - Constructor for exception com.jsunsoft.http.UnexpectedStatusCodeException
 
updateHeader(Header) - Method in interface com.jsunsoft.http.WebTarget
Replaces the first occurence of the header with the same name.
updateHeader(String, String) - Method in interface com.jsunsoft.http.WebTarget
Replaces the first occurence of the header with the same name by the value.
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.

_

_type - Variable in class com.jsunsoft.http.TypeReference
 
A B C D E F G H I M N O P R S T U V W _ 
Skip navigation links

Copyright © 2019. All rights reserved.