|
Spring for Android | ||||||||
PREV NEXT | FRAMES NO FRAMES |
ClientHttpRequest
that makes sure that headers
and body are not written multiple times.ClientHttpRequestFactory
implementations that decorate another request factory.AbstractClientHttpRequestFactoryWrapper
wrapping the given request factory.
ClientHttpResponse
.UrlResource
or ClassPathResource
.HttpMessageConverter
implementations.AbstractHttpMessageConverter
with no supported media types.
AbstractHttpMessageConverter
with one supported media type.
AbstractHttpMessageConverter
with multiple supported media type.
Resource
implementations,
pre-implementing typical behavior.HttpMessageConverters
that convert from/to XML.supportedMediaTypes
to text/xml
and application/xml
, and application/*-xml
.
Accept
header field name.
Accept-Charset
header field name.
Accept-Encoding
header field name.
Accept-Language
header field name.
Accept-Ranges
header field name.
DefaultConversionService.addDefaultConverters(ConverterRegistry)
ClassLoader.getResource
(also suitable for use with Class.getResource
by prepending a
slash ('/') to the return value).
Age
header field name.
*
.
ContentCodingType.ALL
.
MediaType.ALL
.
FormHttpMessageConverter
,
adding support for XML and JSON-based parts.Allow
header field name.
application/atom+xml
.
MediaType.APPLICATION_ATOM_XML
.
application/x-www-form-urlencoded
.
MediaType.APPLICATION_FORM_URLENCODED
.
application/json
.
MediaType.APPLICATION_JSON
.
application/octet-stream
.
MediaType.APPLICATION_OCTET_STREAM
.
application/rss+xml
.
MediaType.APPLICATION_RSS_XML
.
application/*+xml
.
MediaType.APPLICATION_WILDCARD_XML
.
application/xhtml+xml
.
MediaType.APPLICATION_XHTML_XML
.
application/xml
.
MediaType.APPLICATION_XML
.
Resource
implementation for Android asset resources.Authorization
header field name.
Base64
class.bridge Methods
to the
Method
being bridged.ClientHttpRequestFactory
that buffers all outgoing and incoming streams in memory.UriComponents
instance from the various components contained in this builder.
UriComponents
instance from the various components
contained in this builder.
UriComponents
instance and replaces URI template variables
with the values from a map.
UriComponents
instance and replaces URI template variables
with the values from an array.
HttpMessageConverter
that can read and write byte arrays.ByteArrayHttpMessageConverter
.
Resource
implementation for a given byte array.Cache-Control
header field name.
true
if objects of sourceType
can be converted to the targetType
.
true
if objects of sourceType
can be converted to the targetType
.
true
if the given media type includes any of the
supported media types.
String
, changing the first letter to
upper case as per Character.toUpperCase(char)
.
Enum.valueOf(Class, String)
.
Resource
implementation for class path resources.ClassPathResource
for ClassLoader
usage.
ClassPathResource
for ClassLoader
usage.
ClassPathResource
for Class
usage.
ClassPathResource
with optional ClassLoader
and Class
.
ClientHttpRequest
objects.Collection
type.
ContentCodingType
to another alphabetically.
MediaType
to another alphabetically.
ConcurrentMap
is available on Android 2.3ConcurrentHashMap
that uses soft
or
weak references for both keys
and values
.ConcurrentReferenceHashMap
instance.
ConcurrentReferenceHashMap
instance.
ConcurrentReferenceHashMap
instance.
ConcurrentReferenceHashMap
instance.
ConcurrentReferenceHashMap
instance.
ConcurrentReferenceHashMap
instance.
ConcurrentReferenceHashMap
instance.
ConcurrentReferenceHashMap.Entry
contained in the map.ConcurrentReferenceHashMap.Reference
s.Converter
, GenericConverter
or ConverterFactory
to
conditionally execute based on attributes of the source
and target
TypeDescriptor
.GenericConverter
that may conditionally execute based on attributes
of the source
and target
TypeDescriptor
.ConversionService
types.Connection
header field name.
true
if any element in 'candidates
' is
contained in 'source
'; otherwise returns false
.
Content-Disposition
header field name
Content-Encoding
header field name.
Content-Language
header field name.
Content-Length
header field name.
Content-Location
header field name.
Content-Range
header field name.
Content-Type
header field name.
ContentCodingType
for the given type.
ContentCodingType
for the given type and quality value.
ContentCodingType
for the given type, and parameters.
ConversionService
configurations.source
to the specified targetType
.
source
to the specified targetType
.
Comparator
that converts values before they are compared.ConvertingComparator
instance.
ConvertingComparator
instance.
ComparableComparator
instance.
PropertyEditor
for any given
ConversionService
and specific target type.ConversionService
and the given target type.
Cookie
header field name.
DefaultConversionService.DefaultConversionService()
HttpContext
for the given HTTP method and URI.
HttpContext
for the given HTTP method and
URI.
ConcurrentReferenceHashMap.Reference
.
ConcurrentReferenceHashMap.ReferenceManager
.
AbstractClientHttpRequestFactoryWrapper.createRequest(URI, HttpMethod, ClientHttpRequestFactory)
with the wrapped request factory provided to the
constructor.
ClientHttpRequest
for the specified URI and HTTP method by using the
passed-on request factory.
ClientHttpRequest
for the specified URI and HTTP method.
ClientHttpRequest
via this template's ClientHttpRequestFactory
.
URLConnection
, obtained in the course of an
AbstractFileResolvingResource.exists()
, AbstractFileResolvingResource.contentLength()
or AbstractFileResolvingResource.lastModified()
call.
HttpURLConnection
, obtained in the course of an
AbstractFileResolvingResource.exists()
, AbstractFileResolvingResource.contentLength()
or AbstractFileResolvingResource.lastModified()
call.
Date
header field name.
Base64Utils.decodeFromString(String)
GenericConversionService
configured by default with
converters appropriate for most environments.DefaultConversionService
with the set of
default converters.
ResponseErrorHandler
interface.Resource
implementation that holds a resource description
but does not point to an actually readable resource.ClientConnectionManager
's connection pool, if any.
ClientConnectionManager
's
connection pool, if any.
RestTemplate.execute(java.lang.String, org.springframework.http.HttpMethod, org.springframework.web.client.RequestCallback, org.springframework.web.client.ResponseExtractor, java.lang.Object...)
with an opened ClientHttpRequest
.
Collection
or an Array, creates a element TypeDescriptor from the provided collection or array element.
HttpEntity
, with no body or headers.
UriComponents
instance.
UriComponents
instance.
UriComponentsBuilder
; see note about query param encoding
UriComponentsBuilder
; see note about query param encoding
UriComponentsBuilder
ETag
header field name.
ResponseEntity
.
ResponseEntity
.
ResponseEntity
.
ResponseEntity
.
ResponseEntity
.
ResponseEntity
.
ClientHttpResponse
that can be read.
RequestCallback
, and reading the response with a ResponseExtractor
.
RequestCallback
, and reading the response with a ResponseExtractor
.
RequestCallback
, and reading the response with a ResponseExtractor
.
true
.
true
.
UriComponents.UriTemplateVariables
.
Expect
header field name.
Expires
header field name.
ClientHttpResponse
and return it.
Resource
implementation for java.io.File
handles.FileSystemResource
from a File
handle.
FileSystemResource
from a file path.
bridge Method
.
field
on the supplied Class
with the
supplied name
.
field
on the supplied Class
with the
supplied name
and/or type
.
candidates
' that is contained in
'source
'.
Method
on the supplied class with the supplied name
and no parameters.
Method
on the supplied class with the supplied name
and parameter types.
HttpMessageConverter
that can handle form data, including multipart form data (i.e.ClassUtils.forName(String, ClassLoader)
Class.forName()
that also returns Class instances
for primitives (e.g.
From
header field name.
UriComponents
object from the string HTTP URL.
URI
.
ConversionService
implementation suitable for use in most environments.HttpMessageConverter
that can convert an HTTP
request into a target object of a specified generic type.null
if the entry is no longer
available.
Accept
header.
Accept-Charset
header.
Charset
.
Accept-Encoding
header.
Accept-Language
header.
HTTP methods
,
as specified by the Allow
header.
Authorization
header.
Cache-Control
header.
charset
parameter, if any.
Connection
header.
null
).
Content-Encoding
header.
Content-Length
header.
Content-Type
header.
Date
header.
obj
is
not null
; otherwise returns an empty String.
TypeDescriptor.getElementTypeDescriptor()
ETag
header.
Expires
header.
field object
on the
specified target object
.
java.io.File
,
i.e.
java.io.File
,
i.e.
java.io.File
,
i.e.
java.io.File
,
i.e.
java.io.File
,
i.e.
null
,
assuming that this resource type does not have a filename.
IllegalArgumentException
if the value cannot be parsed as a date.
Gson
instance for this converter.
HttpClient
used by this factory.
HttpClient
used for synchronous execution.
If-Modified-Since
header.
If-None-Match
header.
HttpHeaders.getIfModifiedSince()
InputStream
.
JavaType
for the specified type and context class.
JavaType
for the specified type and context class.
Last-Modified
header.
Location
header.
TypeDescriptor.getMapKeyTypeDescriptor()
Map
and its key type is parameterized, returns the map's key type.
Map
, creates a mapKey TypeDescriptor
from the provided map key.
TypeDescriptor.getMapValueTypeDescriptor()
Map
and its value type is parameterized, returns the map's value type.
Map
, creates a mapValue TypeDescriptor
from the provided map value.
IllegalStateException
).
null
).
null
ObjectMapper
for this view.
ObjectMapper
for this view.
TypeDescriptor.getType()
that accounts for a primitive type by returning its object wrapper type.
Origin
header.
OutputStream
for the underlying resource,
allowing to (over-)write its content.
null
if they cannot be determined.
null
if they cannot be determined.
Pragma
header.
q
parameter, if any.
q
parameter, if any.
ConcurrentReferenceHashMap.Reference
to the ConcurrentReferenceHashMap.Entry
for the specified key
,
or null
if not found.
HttpRequests
.
RestTemplate
for the gateway.
MediaType
objects supported by this converter.
TypeToken
for the specified type.
TypeVariable names
to
concrete classes
for the specified Class
.
Upgrade
header.
AbstractResource.getURL()
.
java.net.URL
.
User-Agent
header.
null
)
HttpMessageConverter
that can read and write JSON using the
Google Gson library's
Gson
class.GsonHttpMessageConverter
.
gzip
.
ContentCodingType.GZIP
.
HttpClientErrorException
if the response status code
is HttpStatus.Series.CLIENT_ERROR
, a HttpServerErrorException
if it is HttpStatus.Series.SERVER_ERROR
,
and a RestClientException
in other cases.
DefaultResponseErrorHandler.hasError(HttpStatus)
with the response status code.
DefaultResponseErrorHandler.hasError(ClientHttpResponse)
.
Boolean.hashCode()
}.
Double.hashCode()
}.
Float.hashCode()
}.
Long.hashCode()
}.
null
and not the empty String.
null
and not the empty String.
null
nor of length 0.
null
nor of length 0.
null
and must contain at least one non-whitespace character.
null
and must contain at least one non-whitespace character.
Host
header field name.
RestTemplate
and other HTTP accessing gateway helpers, defining common properties
such as the ClientHttpRequestFactory
to operate on.HttpClientErrorException
based on an
HttpStatus
.
HttpClientErrorException
based on an
HttpStatus
and status text.
HttpClientErrorException
based on an
HttpStatus
, status text, and response body content.
HttpClientErrorException
based on an
HttpStatus
, status text, and response body content.
HttpComponentsClientHttpRequestFactory
HttpComponentsAndroidClientHttpRequestFactory
with a default HttpClient
that uses a default ThreadSafeClientConnManager
.
HttpClient
instance.
ClientHttpRequestFactory
implementation that
uses Apache
HttpComponents Android HttpClient to create requests.HttpComponentsClientHttpRequestFactory
with a
default HttpClient
.
HttpComponentsClientHttpRequestFactory
with
the given HttpClient
instance.
HttpEntity
.
HttpEntity
with the given body and no headers.
HttpEntity
with the given headers and no body.
HttpEntity
with the given body and headers.
HttpHeaders
object.
HttpMessageConverter
implementations when the conversion fails.T
.HttpMessageConverterExtractor
with the given
response type and message converters.
HttpMessageConverterExtractor
with the given
response type and message converters.
HttpMessageConverter
implementations when the
read
method fails.HttpMessageConverter
implementations when the
write
method fails.HttpRequest
interface that can be overridden to adapt the
request.HttpRequest
wrapping the given request object.
HttpServerErrorException
based on an
HttpStatus
.
HttpServerErrorException
based on an
HttpStatus
and status text.
HttpServerErrorException
based on an
HttpStatus
, status text, and response body content.
HttpServerErrorException
based on a
HttpStatus
, status text, and response body content.
HttpStatus
.HttpStatusCodeException
based on an
HttpStatus
.
HttpStatusCodeException
based on an
HttpStatus
and status text.
HttpStatusCodeException
based on an
HttpStatus
, status text, and response body content.
HttpStatusCodeException
based on an
HttpStatus
, status text, and response body content.
identity
.
ContentCodingType.IDENTITY
.
If-Match
header field name.
If-Modified-Since
header field name.
If-None-Match
header field name.
If-Range
header field name.
If-Unmodified-Since
header field name.
image/gif
.
MediaType.IMAGE_GIF
.
image/jpeg
.
MediaType.IMAGE_JPEG
.
image/png
.
MediaType.IMAGE_PNG
.
ContentCodingType
includes the given coding type.
MediaType
includes the given media type.
Resource
implementation for a given InputStream.InputStream
.InstanceComparator
instance.
ClientHttpRequestFactory
that has support for ClientHttpRequestInterceptor
s.InterceptingClientHttpRequestFactory
with the given parameters.
RestTemplate
and other HTTP accessing gateway helpers, adding
interceptor-related properties to HttpAccessor
's common properties.MediaType.parseMediaType(String)
in case of
encountering an invalid media type specification String.Method
against the supplied target
object with no arguments.
Method
against the supplied target
object with the supplied arguments.
Method
against the supplied target object with no arguments.
Method
against the supplied target object with the
supplied arguments.
HttpStatus.Series.INFORMATIONAL
.
HttpStatus.Series.SUCCESSFUL
.
HttpStatus.Series.REDIRECTION
.
HttpStatus.Series.CLIENT_ERROR
.
HttpStatus.Series.SERVER_ERROR
.
superType.isAssignableFrom(subType)
is true
.
superType.isAssignableFrom(subType)
is true
.
Collection
type?
ContentCodingType
is compatible with the given coding type.
MediaType
is compatible with the given media type.
true
if the supplied Collection is null
or empty.
true
if the supplied Map is null
or empty.
Map
type?
null
.
null
.
Object
.
false
.
true
.
ClassUtils.isPresent(String, ClassLoader)
Class
identified by the supplied name is present
and can be loaded.
true
.
IllegalArgumentException
if the test result is false
.
IllegalArgumentException
if the test result is false
.
*
or the wildcard character followed by a sufiix (e.g.
*
or not.
*
or not.
Last-Modified
header field name.
Link
header field name.
LinkedHashMap
variant that stores String keys in a case-insensitive
manner, for example for key-based access in a results table.LinkedHashMap
with the given initial capacity and stores lower-case keys according
to the default Locale.
LinkedHashMap
with the given initial capacity and stores lower-case keys according
to the given Locale.
MultiValueMap
that wraps a LinkedHashMap
,
storing multiple values in a LinkedList
.LinkedHashMap
.
LinkedHashMap
with the given initial capacity.
Location
header field name.
Map
type.
ConvertingComparator
that compares map * entries
based on their keys
.
ConvertingComparator
that compares map entries
based on their values
.
HttpMessageConverter
that can read and write JSON using Jackson 2's ObjectMapper
.MappingJackson2HttpMessageConverter
.
MappingJackson2HttpMessageConverter
MappingJacksonHttpMessageConverter
.
sourceType
to targetType
currently under
consideration be selected?
Max-Forwards
header field name.
MediaType
for the given primary type.
MediaType
for the given primary type and subtype.
MediaType
for the given type, subtype, and character set.
MediaType
for the given type, subtype, and quality value.
MediaType
,
and allows for different parameter.
MediaType
for the given type, subtype, and parameters.
multipart/form-data
.
MediaType.MULTIPART_FORM_DATA
.
Map
interface that stores multiple values.TypeDescriptor
by setting its type to the class of the provided value.
Exceptions
with a root cause.NestedCheckedException
with the specified detail message.
NestedCheckedException
with the specified detail message
and nested exception.
IOException
that properly handles a root cause,
exposing the root cause just like NestedChecked/RuntimeException does.NestedIOException
with the specified detail message.
NestedIOException
with the specified detail message
and nested exception.
Exceptions
with a root cause.NestedRuntimeException
with the specified detail message.
NestedRuntimeException
with the specified detail message
and nested exception.
InputStream
where calling
close()
has no effect.
OutputStream
where calling
close()
has no effect.
null
and must have at least one element.
null
and must have at least one element.
null
and must have at least one element.
null
and must have at least one element.
null
and must have at least one entry.
null
and must have at least one entry.
null
.
null
.
null
based on the
provided flag, decorating the given Comparator.
true
if both are null
or false
if only one is
null
.
Object#hashCode()
}.
HttpMessageConverter
that uses StringHttpMessageConverter
for reading and writing content and a ConversionService
for converting
the String content to and from the target object type.ConversionService
to use to convert the
(String) message body to/from the target class type.
ConversionService
as well as a default
charset.
ClientHttpRequestFactory
implementation that uses OkHttp to create requests.Origin
header field name.
Type
.ContentCodingType
.
ContentCodingType
objects.
localeString
value into a Locale
.
MediaType
.
MediaType
objects.
decode
/ valueOf
methods.
null
if no references need purging.
ResponseEntity
.
HttpEntity
.
ResponseEntity
.
Location
header.
Location
header.
Location
header.
HttpUriRequest
before it is returned as part of a
HttpComponentsAndroidClientHttpRequest
.
HttpUriRequest
before it
is returned as part of a HttpComponentsClientHttpRequest
.
Pragma
header field name.
HttpURLConnection
.
java.beans.PropertyDescriptor
.Proxy-Authenticate
header field name.
Proxy-Authorization
header field name.
ContentCodingType.sortByQualityValue(List)
.
MediaType.sortByQualityValue(List)
.
Range
header field name.
AbstractHttpMessageConverter.readInternal(Class, HttpInputMessage)
.
AbstractHttpMessageConverter.read(Class, HttpInputMessage)
.
HttpHeaders
object that can only be read, not written to.
Referer
header field name.
ReferenceManager#pollForPurge()
.
ClientHttpRequest
.HttpIOException
with the given message.
HttpIOException
with the given message and IOException
.
HttpMessageConverter
that can read and write Resources
.HttpEntity
that adds a HttpStatus
status code.ResponseEntity
with the given status code, and no body nor headers.
ResponseEntity
with the given body and status code, and no headers.
HttpEntity
with the given headers and status code, and no body.
HttpEntity
with the given body, headers, and status code.
RestTemplate
to determine whether a particular response has an error or not.RestTemplate
's retrieval methods
Implementations of this interface perform the actual work of extracting data
from a ClientHttpResponse
, but don't need to worry about exception
handling or closing resources.RestTemplate
whenever it encounters
client-side HTTP errors.HttpClientException
with the given message.
HttpClientException
with the given message and
exception.
RestGatewaySupport
, with default parameters.
RestGatewaySupport
, with the given ClientHttpRequestFactory
.
RestTemplate
using default settings.
RestTemplate.RestTemplate(List)
RestTemplate
based on the given ClientHttpRequestFactory
.
RestTemplate.RestTemplate(List)
and HttpAccessor.setRequestFactory(ClientHttpRequestFactory)
RestTemplate
using the given list of
HttpMessageConverter
to use
exception
, which is presumably the
target exception of an InvocationTargetException
.
exception
, which is presumably the
target exception of an InvocationTargetException
.
Retry-After
header field name.
BytesKeyGenerator
that uses a SecureRandom
to generate keys of 8 bytes in length.
BytesKeyGenerator
that uses a SecureRandom
to generate keys of a custom length.
Server
header field name.
Set-Cookie
header field name.
Set-Cookie2
header field name.
Accept
header.
Accept-Charset
header.
Accept-Encoding
header.
Accept-Encoding
header.
Accept-Language
header.
HTTP methods
,
as specified by the Allow
header.
Authorization
header.
Cache-Control
header.
Connection
header.
Connection
header.
Content-Disposition
header
for form-data
.
Content-Encoding
header.
Content-Encoding
header.
Content-Length
header.
Content-Type
header.
Date
header.
"EEE, dd MMM yyyy HH:mm:ss zzz"
.
ETag
header.
Expires
header.
field object
on the
specified target object
to the specified value
.
Gson
instance to use.
HttpClient
used by this factory.
HttpClient
used for
If-Modified-Since
header.
If-None-Match
header.
If-None-Match
header.
Last-Modified
header.
Location
header.
ObjectMapper
for this view.
ObjectMapper
for this view.
Origin
header.
Pragma
header.
DefaultPrettyPrinter
when writing JSON.
DefaultPrettyPrinter
when writing JSON.
Proxy
to use for this request factory.
HttpRequests
.
RestTemplate
for the gateway.
Serializer
for this view.
MediaType
objects supported by this converter.
MediaType
objects supported by this converter.
Upgrade
header.
User-Agent
header.
Accept-Charset
should be written to any outgoing request.
Accept-Charset
should be written to any outgoing request.
BytesKeyGenerator
that returns a single, shared SecureRandom
key of a custom length.
ClientHttpRequestFactory
implementation that uses standard J2SE facilities.HttpMessageConverter
that can read and write XML using Simple's Serializer
abstraction.SimpleXmlHttpMessageConverter
with a default Serializer
.
SimpleXmlHttpMessageConverter
with a customized Serializer
.
ContentCodingType
objects by quality value.
MediaType
objects by quality value.
MediaType
objects by specificity.
MediaType
objects by specificity as the
primary criteria and quality value the secondary.
HttpMessageConverter
that can read and write Source
objects.supportedMediaTypes
to text/xml
and application/xml
, and application/*-xml
.
MediaType.sortBySpecificity(List)
.
ConnectionRepository
that uses SQLite to persist connection data to a relational database.UsersConnectionRepository
that uses SQLite to persist connection data to a relational database.IllegalStateException
if the test result is false
.
IllegalStateException
if the test result is false
.
OutputStream
.StringKeyGenerator
that hex-encodes SecureRandom
keys of 8 bytes in length.
HttpMessageConverter
that can read and write strings."ISO-8859-1"
as the default charset.
String
utility methods.TE
header field name.
text/html
.
MediaType.TEXT_HTML
.
text/plain
.
MediaType.TEXT_PLAIN
.
text/xml
.
MediaType.TEXT_XML
.
Map<K, List<V>>
to an MultiValueMap<K,V>
.
MultiValueMap
.
ContentCodingType
objects.
MediaType
objects.
URI
from this UriComponents
instance.
UriComponents
instance.
Trailer
header field name.
Transfer-Encoding
header field name.
Source
to the Result
.
String.trim()
on each of them.
MethodParameter
.
Field
.
Property
.
String
, changing the first letter to
lower case as per Character.toLowerCase(char)
.
HttpStatusCodeException
based on an
HttpStatus
, status text, and response body content.
TypeDescriptor
to a superclass or implemented interface
preserving annotations and nested type context.
Upgrade
header field name.
UriComponents
.
UriComponents
.UriTemplate
with the given URI String.
Resource
implementation for java.net.URL
locators."useCaches"
flag on the
given connection, preferring false
but leaving the
flag at true
for JNLP based resources.
User-Agent
header field name.
java.lang.Object
.
ContentCodingType
object.
MediaType
object,
with this method name following the 'valueOf' naming convention
(as supported by ConversionService
.
Vary
header field name.
Via
header field name.
Warning
header field name.
AbstractHttpMessageConverter.getDefaultContentType(Object)
if a content
type was not provided, calls AbstractHttpMessageConverter.getContentLength(T, org.springframework.http.MediaType)
, and sets the corresponding headers
on the output message.
OutputStream
.
AbstractXmlHttpMessageConverter.writeInternal(Object, HttpOutputMessage)
.
WWW-Authenticate
header field name.
AllEncompassingFormHttpMessageConverter
|
Spring for Android | ||||||||
PREV NEXT | FRAMES NO FRAMES |