A B C D E F G H I M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addBodyReader(ResponseBodyReader<?>) - Method in class com.jsunsoft.http.HttpRequestBuilder
- addContentType(ContentType) - Method in class com.jsunsoft.http.ClientBuilder
-
Sets content type to header
- 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
- addDefaultDateDeserializationPattern(Class<?>, String) - Method in class com.jsunsoft.http.HttpRequestBuilder
-
Method defines by which pattern dates must be deserialized when default deserializer used.
- 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
-
Header needs to be the same for all requests which go through the built HttpRequest
- 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
-
Header needs to be the same for all requests which go through the built HttpRequest
- 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
-
Headers need to be the same for all requests which go through the built HttpRequest
- 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
-
Headers need to be the same for all requests which go through the built HttpRequest
- addDefaultPoolingHttpClientConnectionManagerCustomizer(Consumer<PoolingHttpClientConnectionManager>) - Method in class com.jsunsoft.http.ClientBuilder
- 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(Collection<? extends NameValuePair>) - Method in class com.jsunsoft.http.HttpRequestBuilder
-
Parameters 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(NameValuePair) - 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
- 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 theHttpClientBuilder
instance to customize theCloseableHttpClient
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
B
- basicAuth(String, String) - Method in class com.jsunsoft.http.HttpRequestBuilder
-
Basic Authentication - sending the Authorization header.
- 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
-
Build 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. - 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 interface com.jsunsoft.http.ResponseHandler
- 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
-
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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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
E
- enableAutomaticRetries() - Method in class com.jsunsoft.http.ClientBuilder
-
By default, the
HttpClientBuilder.disableAutomaticRetries()
called. - enableCookieManagement() - Method in class com.jsunsoft.http.ClientBuilder
-
By default, the
HttpClientBuilder.disableCookieManagement()
called. - enableDefaultBodyReader() - Method in class com.jsunsoft.http.HttpRequestBuilder
- 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.
- 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
- FilterSupport<T> - Class in com.jsunsoft.http
G
- 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(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
- getAllHeaders() - Method in interface com.jsunsoft.http.ResponseHandler
- getAsOptional() - Method in interface com.jsunsoft.http.ResponseHandler
- getAsOptionalOrThrow() - Method in interface com.jsunsoft.http.ResponseHandler
- getCode() - Method in interface com.jsunsoft.http.Response
-
Obtains the code of this response message.
- 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
- getDateTypeToPattern() - Method in interface com.jsunsoft.http.DateDeserializeContext
- 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
- getFirstHeader(String) - Method in interface com.jsunsoft.http.ResponseHandler
- getFirstHeaderValue(String) - Method in interface com.jsunsoft.http.ResponseHandler
- getGenericType() - Method in interface com.jsunsoft.http.ResponseBodyReadableContext
- getHeaders(String) - Method in interface com.jsunsoft.http.ResponseHandler
- getHttpEntity() - Method in interface com.jsunsoft.http.ResponseBodyReaderContext
- getLastHeader(String) - Method in interface com.jsunsoft.http.ResponseHandler
- getLastHeaderValue(String) - Method in interface com.jsunsoft.http.ResponseHandler
- getMimeType() - Method in exception com.jsunsoft.http.InvalidMimeTypeException
- getOrThrow(Supplier<X>) - Method in interface com.jsunsoft.http.ResponseHandler
- getOrThrow(T, Supplier<X>) - Method in interface com.jsunsoft.http.ResponseHandler
- 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.use
ResponseHandler.getCode()
instead. - getStatusLine() - Method in interface com.jsunsoft.http.ResponseHandler
-
Obtains the status line of this response.
- 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
- 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
- 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
- head() - Method in interface com.jsunsoft.http.WebTarget
-
Invoke HTTP HEAD method for the current request
- HEAD - com.jsunsoft.http.HttpMethod
- hostnameVerifier(HostnameVerifier) - Method in class com.jsunsoft.http.ClientBuilder
-
Sets
HostnameVerifier
- 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 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
- ifNotSuccess(Consumer<ResponseHandler<T>>) - Method in interface com.jsunsoft.http.ResponseHandler
-
If status code is not success , invoke 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 success , invoke the specified consumer with the responseHandler and returns
OtherwiseSupport
with ignore elseOtherwiseSupport
with not ignore. - immutableTarget(String) - Method in interface com.jsunsoft.http.HttpRequest
- immutableTarget(URI) - Method in interface com.jsunsoft.http.HttpRequest
- 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
- isReadable(ResponseBodyReadableContext) - Method in interface com.jsunsoft.http.ResponseBodyReader
- isSuccess() - Method in interface com.jsunsoft.http.Response
- isSuccess() - Method in interface com.jsunsoft.http.ResponseBodyReadableContext
- isSuccess() - Method in interface com.jsunsoft.http.ResponseHandler
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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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
- orElseThrow() - Method in interface com.jsunsoft.http.ResponseHandler
- orElseThrow(T) - Method in interface com.jsunsoft.http.ResponseHandler
- 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
-
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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- 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 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, 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 Stringpayload
- 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 Stringpayload
- 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 Stringpayload
- request(HttpMethod, String) - Method in interface com.jsunsoft.http.WebTarget
- request(HttpMethod, String, TypeReference<T>) - Method in interface com.jsunsoft.http.WebTarget
-
The same as
WebTarget.request(HttpMethod, HttpEntity, TypeReference)
wrappedpayload
intoStringEntity
- request(HttpMethod, String, Class<T>) - Method in interface com.jsunsoft.http.WebTarget
- 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.
- 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
- 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
- retryableTarget(URI, RetryContext) - Method in interface com.jsunsoft.http.HttpRequest
- RetryContext - Interface in com.jsunsoft.http
S
- setCharset(Charset) - Method in interface com.jsunsoft.http.WebTarget
-
Sets the charset for the request.
- setConnectTimeout(int) - 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
-
Set object mapper for default response body deserialization when response content type is
ContentType.APPLICATION_JSON
- setDefaultMaxPoolSizePerRoute(int) - Method in class com.jsunsoft.http.ClientBuilder
- setDefaultResponseBodyReader(ResponseBodyReader<?>) - Method in class com.jsunsoft.http.HttpRequestBuilder
- setDefaultXmlMapper(ObjectMapper) - Method in class com.jsunsoft.http.HttpRequestBuilder
-
Set object mapper for default response body deserialization when response content type is
ContentType.APPLICATION_XML
- 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 - 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
-
Sets
SSLContext
- 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
-
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(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
All Classes All Packages