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

A

AbstractResponseDeserializer<T> - Class in com.jsunsoft.http
 
AbstractResponseDeserializer(Type) - Constructor for class com.jsunsoft.http.AbstractResponseDeserializer
 
addContentType(ContentType) - Method in class com.jsunsoft.http.HttpRequestBuilder
Sets content type to header
addDefaultHeader(String, String) - Method in class com.jsunsoft.http.HttpRequestBuilder
Header needs to be the same for all requests
addDefaultHeader(Header) - Method in class com.jsunsoft.http.HttpRequestBuilder
Header needs to be the same for all requests
addDefaultHeader(Header...) - Method in class com.jsunsoft.http.HttpRequestBuilder
Header needs to be the same for all requests
addDefaultHeader(Collection<? extends Header>) - Method in class com.jsunsoft.http.HttpRequestBuilder
Header needs to be the same for all requests
addDefaultRequestParameter(String, String) - Method in class com.jsunsoft.http.HttpRequestBuilder
Parameter needs to be add for all requests.
addDefaultRequestParameter(NameValuePair...) - Method in class com.jsunsoft.http.HttpRequestBuilder
Parameters needs to be add for all requests.
addDefaultRequestParameter(Map<String, String>) - Method in class com.jsunsoft.http.HttpRequestBuilder
Parameters needs to be add for all requests.
addDefaultRequestParameter(Collection<? extends NameValuePair>) - Method in class com.jsunsoft.http.HttpRequestBuilder
Parameters needs to be add for all requests.
addUriPostfix(String) - Method in interface com.jsunsoft.http.HttpRequest
 

B

build() - Method in class com.jsunsoft.http.HttpRequestBuilder
Build Http request

C

changeUri(URI) - Method in interface com.jsunsoft.http.HttpRequest
 
changeUri(String) - Method in interface com.jsunsoft.http.HttpRequest
 
charset(Charset) - Method in class com.jsunsoft.http.HttpRequestBuilder
Added charset to request
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.
ConnectionConfig - Class in com.jsunsoft.http
Configured connection parameters.
connectionConfig(ConnectionConfig) - Method in class com.jsunsoft.http.HttpRequestBuilder
Configured connection parameters by instance connectionConfig
ConnectionFailureType - Enum in com.jsunsoft.http
Type to specified why connection is failure.
connectionRequestTimeout(int) - Method in class com.jsunsoft.http.ConnectionConfig
 
connectionRequestTimeout(int) - Method in class com.jsunsoft.http.HttpRequestBuilder
 
connectTimeout(int) - Method in class com.jsunsoft.http.ConnectionConfig
 
connectTimeout(int) - Method in class com.jsunsoft.http.HttpRequestBuilder
 
ContentType - Class in com.jsunsoft.http
 
contentTypeOfBody(ContentType) - Method in class com.jsunsoft.http.HttpRequestBuilder
 
create() - Static method in class com.jsunsoft.http.ConnectionConfig
 
create(String, Charset) - Static method in class com.jsunsoft.http.ContentType
 
create(String) - Static method in class com.jsunsoft.http.ContentType
 
create(HttpMethod, URI) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to get request
create(HttpMethod, URI, Class<T>) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to get request
create(HttpMethod, URI, TypeReference<T>) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to get request
create(HttpMethod, String) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to get request
create(HttpMethod, String, Class<T>) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to get request
create(HttpMethod, String, TypeReference<T>) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to get request
createGet(String, TypeReference<T>) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to get request
createGet(String, Class<T>) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to get request
createGet(String) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to get request
createGet(URI, TypeReference<T>) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to get request
createGet(URI, Class<T>) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to get request
createGet(URI) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to get request
createPost(String, TypeReference<T>) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to post request
createPost(String, Class<T>) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to post request
createPost(String) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to post request
createPost(URI, TypeReference<T>) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to post request
createPost(URI, Class<T>) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to post request
createPost(URI) - Static method in class com.jsunsoft.http.HttpRequestBuilder
Created Builder to build BasicHttpRequest to post request

D

DateDeserializeContext - Interface in com.jsunsoft.http
 
dateDeserializeContext(DateDeserializeContext) - Method in class com.jsunsoft.http.HttpRequestBuilder
Default date patterns to deserialize: for date is 'dd/MM/yyyy', for time is 'HH:mm:ss', for date time is 'dd/MM/yyyy HH:mm:ss'.
DateDeserializeContextImpl - Class in com.jsunsoft.http
 
DateDeserializeContextImpl(String, String, String) - Constructor for class com.jsunsoft.http.DateDeserializeContextImpl
 
deserialize(ResponseContext) - Method in interface com.jsunsoft.http.ResponseDeserializer
Method receives httpEntity of the response then deserialized to type T
deserializeFailure(ResponseContext) - Method in interface com.jsunsoft.http.ResponseDeserializer
 

E

enableDefaultRedirectStrategy() - Method in class com.jsunsoft.http.HttpRequestBuilder
By default, only GET requests resulting in a redirect are automatically followed.
enableLaxRedirectStrategy() - Method in class com.jsunsoft.http.HttpRequestBuilder
By default, only GET requests resulting in a redirect are automatically followed.
equals(Object) - Method in class com.jsunsoft.http.NameValuePairImpl
 
excludeCookies() - Method in class com.jsunsoft.http.HttpRequestBuilder
Disable cookies including in request.
execute(NameValuePair...) - Method in interface com.jsunsoft.http.HttpRequest
Sends request
execute(String, String) - Method in interface com.jsunsoft.http.HttpRequest
Sends request with one parameter (name: value)
execute() - Method in interface com.jsunsoft.http.HttpRequest
Sends request.
execute(String...) - Method in interface com.jsunsoft.http.HttpRequest
Sends request as [nameValues[0]: nameValues[1], nameValues[2]: nameValues[3], ...
execute(Collection<? extends NameValuePair>) - Method in interface com.jsunsoft.http.HttpRequest
Sends request
execute(Map<String, String>) - Method in interface com.jsunsoft.http.HttpRequest
Sends request
executeWithBody(String) - Method in interface com.jsunsoft.http.HttpRequest
Sends request with body.
executeWithQuery(String, String) - Method in interface com.jsunsoft.http.HttpRequest
Sends request by queryString of request.
executeWithQuery(String) - Method in interface com.jsunsoft.http.HttpRequest
Sends request by queryString of request.

F

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

G

get() - Method in class com.jsunsoft.http.ResponseHandler
 
getCharset() - Method in class com.jsunsoft.http.ContentType
 
getConnectionFailureType() - Method in class com.jsunsoft.http.ResponseHandler
If connection failed returns type of failure else ConnectionFailureType.NONE
getContent() - Method in interface com.jsunsoft.http.ResponseContext
 
getContentAsString() - Method in interface com.jsunsoft.http.ResponseContext
 
getContentLength() - Method in interface com.jsunsoft.http.ResponseContext
 
getContentType() - Method in interface com.jsunsoft.http.ResponseContext
 
getContentType() - Method in class com.jsunsoft.http.ResponseHandler
 
getDatePattern() - Method in interface com.jsunsoft.http.DateDeserializeContext
 
getDatePattern() - Method in class com.jsunsoft.http.DateDeserializeContextImpl
 
getDateTimePattern() - Method in interface com.jsunsoft.http.DateDeserializeContext
 
getDateTimePattern() - Method in class com.jsunsoft.http.DateDeserializeContextImpl
 
getErrorText() - Method in class com.jsunsoft.http.ResponseHandler
 
getHost() - Method in class com.jsunsoft.http.Proxy
 
getHttpMethod() - Method in interface com.jsunsoft.http.HttpRequest
 
getMimeType() - Method in class com.jsunsoft.http.ContentType
 
getMimeType() - Method in exception com.jsunsoft.http.InvalidMimeTypeException
 
getName() - Method in interface com.jsunsoft.http.Header
Get the name of the Header.
getName() - Method in class com.jsunsoft.http.HeaderImpl
 
getName() - Method in interface com.jsunsoft.http.NameValuePair
 
getName() - Method in class com.jsunsoft.http.NameValuePairImpl
 
getOrThrow(Supplier<X>) - Method in class com.jsunsoft.http.ResponseHandler
 
getOrThrow(T, Supplier<X>) - Method in class com.jsunsoft.http.ResponseHandler
 
getPort() - Method in class com.jsunsoft.http.Proxy
 
getScheme() - Method in class com.jsunsoft.http.Proxy
 
getStatusCode() - Method in exception com.jsunsoft.http.ResponseException
 
getStatusCode() - Method in class com.jsunsoft.http.ResponseHandler
 
getTimePattern() - Method in interface com.jsunsoft.http.DateDeserializeContext
 
getTimePattern() - Method in class com.jsunsoft.http.DateDeserializeContextImpl
 
getType() - Method in class com.jsunsoft.http.AbstractResponseDeserializer
 
getType() - Method in class com.jsunsoft.http.TypeReference
 
getUri() - Method in interface com.jsunsoft.http.HttpRequest
 
getUri() - Method in exception com.jsunsoft.http.ResponseException
 
getUri() - Method in class com.jsunsoft.http.ResponseHandler
 
getValue() - Method in interface com.jsunsoft.http.Header
Get the value of the Header.
getValue() - Method in class com.jsunsoft.http.HeaderImpl
 
getValue() - Method in interface com.jsunsoft.http.NameValuePair
 
getValue() - Method in class com.jsunsoft.http.NameValuePairImpl
 

H

hashCode() - Method in class com.jsunsoft.http.NameValuePairImpl
 
hasNotResult() - Method in class com.jsunsoft.http.ResponseHandler
 
hasResult() - Method in class com.jsunsoft.http.ResponseHandler
 
Header - Interface in com.jsunsoft.http
 
HeaderImpl - Class in com.jsunsoft.http
 
HeaderImpl(String, String) - Constructor for class com.jsunsoft.http.HeaderImpl
Constructor with name and value
HttpMethod - Enum in com.jsunsoft.http
 
HttpRequest<T> - Interface in com.jsunsoft.http
 
HttpRequestBuilder<T> - Class in com.jsunsoft.http
Builder to create BasicHttpRequest instance

I

ifHasResult(Consumer<? super T>) - Method in class com.jsunsoft.http.ResponseHandler
If has a result, invoke the specified consumer with the result, 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.ResponseHandler
If status code is success , invoke the specified consumer with the responseHandler and returns OtherwiseSupport with ignore else OtherwiseSupport with not ignore.
ignorableDeserializer() - Static method in interface com.jsunsoft.http.ResponseDeserializer
For ignore response deserialization you can use instance
includeCookies(Supplier<String>) - Method in class com.jsunsoft.http.HttpRequestBuilder
If method is called and requestSupplier non null enabled cookies including to request.
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.
isConnectionPoolEmpty() - Method in enum com.jsunsoft.http.ConnectionFailureType
 
isConnectTimeoutExpired() - Method in enum com.jsunsoft.http.ConnectionFailureType
 
isFailed() - Method in enum com.jsunsoft.http.ConnectionFailureType
 
isIOProblem() - Method in enum com.jsunsoft.http.ConnectionFailureType
 
isNonSuccess() - Method in class com.jsunsoft.http.ResponseHandler
 
isNotFailed() - Method in enum com.jsunsoft.http.ConnectionFailureType
 
isRemoteServerDown() - Method in enum com.jsunsoft.http.ConnectionFailureType
 
isRemoteServerHighLoaded() - Method in enum com.jsunsoft.http.ConnectionFailureType
 
isSuccess() - Method in class com.jsunsoft.http.ResponseHandler
 

M

maxPoolSize(int) - Method in class com.jsunsoft.http.ConnectionConfig
Set the connection pool max size of concurrent connections to a specific route, which is 128 by default.
maxPoolSize(int) - Method in class com.jsunsoft.http.HttpRequestBuilder
 

N

NameValuePair - Interface in com.jsunsoft.http
 
NameValuePairImpl - Class in com.jsunsoft.http
 
NameValuePairImpl(String, String) - Constructor for class com.jsunsoft.http.NameValuePairImpl
The value may be null.
NameValuePairImpl(Map.Entry<String, String>) - Constructor for class com.jsunsoft.http.NameValuePairImpl
 

O

orElse(T) - Method in class com.jsunsoft.http.ResponseHandler
 
orElseThrow(T) - Method in class com.jsunsoft.http.ResponseHandler
 
orElseThrow() - Method in class com.jsunsoft.http.ResponseHandler
 
orThrow(Function<ResponseHandler<? super T>, X>) - Method in class com.jsunsoft.http.ResponseHandler
 
orThrow(T, Function<ResponseHandler<? super T>, X>) - Method in class 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

proxy(Proxy) - Method in class com.jsunsoft.http.HttpRequestBuilder
Added proxy host.
proxy(URI) - Method in class com.jsunsoft.http.HttpRequestBuilder
Added proxy by proxyUri.
Proxy - Class in com.jsunsoft.http
 
Proxy(String, int, String) - Constructor for class com.jsunsoft.http.Proxy
 
Proxy(String, int) - Constructor for class com.jsunsoft.http.Proxy
 
Proxy(URI) - Constructor for class com.jsunsoft.http.Proxy
 

R

ResponseContext - 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
 
responseDeserializer(ResponseDeserializer<T>) - Method in class com.jsunsoft.http.HttpRequestBuilder
 
ResponseDeserializer<T> - Interface in com.jsunsoft.http
Implementation of this interface must provided deserialization of response body to type T
responseDeserializerF(Function<Type, ResponseDeserializer<T>>) - Method in class com.jsunsoft.http.HttpRequestBuilder
 
responseDeserializerS(Supplier<ResponseDeserializer<T>>) - Method in class com.jsunsoft.http.HttpRequestBuilder
 
ResponseException - Exception in com.jsunsoft.http
 
ResponseException(int, String, String) - Constructor for exception com.jsunsoft.http.ResponseException
 
ResponseException(int, String, Throwable) - Constructor for exception com.jsunsoft.http.ResponseException
 
ResponseException(int, String, String, Throwable) - Constructor for exception com.jsunsoft.http.ResponseException
 
ResponseHandler<T> - Class in com.jsunsoft.http
ResponseHandler objects are immutable they can be shared.
ResponseHandler(T, int, String, Type, ContentType, URI) - Constructor for class com.jsunsoft.http.ResponseHandler
 
ResponseHandler(T, int, String, Type, ContentType, URI, ConnectionFailureType) - Constructor for class com.jsunsoft.http.ResponseHandler
 

S

socketTimeOut(int) - Method in class com.jsunsoft.http.ConnectionConfig
 
socketTimeOut(int) - Method in class com.jsunsoft.http.HttpRequestBuilder
 

T

toString() - Method in class com.jsunsoft.http.NameValuePairImpl
 
toString() - Method in exception com.jsunsoft.http.ResponseException
 
toString() - Method in class com.jsunsoft.http.ResponseHandler
 
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
 
UnexpectedResponseException(int, String, String) - Constructor for exception com.jsunsoft.http.UnexpectedResponseException
 
useDefaultProxy() - Method in class com.jsunsoft.http.HttpRequestBuilder
Instruct HttpClient to use the standard JRE proxy selector to obtain proxy.

V

valueOf(String) - Static method in enum com.jsunsoft.http.ConnectionFailureType
Returns the enum constant of this type with the specified name.
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.ConnectionFailureType
Returns an array containing the constants of this enum type, in the order they are declared.
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.

_

_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 _ 
Skip navigation links

Copyright © 2017. All rights reserved.