|
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
.
ClassLoader.getResource
(also suitable for use with
Class.getResource
by prepending a slash ('/') to the return value).
*
.
ContentCodingType.ALL
.
MediaType.ALL
.
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.HttpMessageConverter
that can read and write Atom feeds.Base64.InputStream
will read data from another
java.io.InputStream, given in the constructor,
and encode/decode to/from Base64 notation on the fly.Base64.InputStream
in DECODE mode.
Base64.InputStream
in
either ENCODE or DECODE mode.
Base64.OutputStream
will write data to another
java.io.OutputStream, given in the constructor,
and encode/decode to/from Base64 notation on the fly.Base64.OutputStream
in ENCODE mode.
Base64.OutputStream
in
either ENCODE or DECODE mode.
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.String
, changing the first letter to
upper case as per Character.toUpperCase(char)
.
Enum.valueOf(Class, String)
.
Resource
implementation for class path resources.ClientHttpRequest
objects.HttpComponentsClientHttpRequestFactory
CommonsHttpRequestFactory
with a default HttpClient
that uses a
default MultiThreadedHttpConnectionManager
.
CommonsHttpRequestFactory
with the given HttpClient
instance.
ContentCodingType
to another alphabetically.
MediaType
to another alphabetically.
true
if any element in 'candidates
' is contained in 'source
';
otherwise returns false
.
ContentCodingType
for the given type.
ContentCodingType
for the given type and quality value.
ContentCodingType
for the given type, and parameters.
HttpContext
for the given HTTP method and URI.
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
.
ResponseErrorHandler
interface.HttpConnectionManager
'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
.
HttpEntity
, with no body or headers.
raw
ByteBuffer,
writing it to the encoded
ByteBuffer.
raw
ByteBuffer,
writing it to the encoded
CharBuffer.
UriComponents
instance.
UriComponents
instance.
Base64.encodeBytes(byte[])
but returns
a byte array instead of instantiating a String.
Base64.encodeBytes(byte[], int, int, int)
but returns
a byte array instead of instantiating a String.
UriComponentsBuilder
; see note about query param encoding
UriComponentsBuilder
; see note about query param encoding
UriComponentsBuilder
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
.
ClientHttpResponse
and return it.
Resource
implementation for java.io.File
handles.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."int") and
array class names (e.g.
UriComponents
object from the string HTTP URL.
URI
.
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.
null
).
Content-Encoding
header.
Content-Length
header.
Content-Type
header.
Date
header.
Charset
is ISO-8859-1.
obj
is
not null
; otherwise returns an empty String.
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.
HttpClient
used by this factory.
HttpClient
used by this factory.
If-None-Match
header.
IfModifiedSince
header.
InputStream
.
JavaType
for the specified class.
JavaType
for the specified class.
Last-Modified
header.
Location
header.
IllegalStateException
).
null
).
ObjectMapper
for this view.
ObjectMapper
for this view.
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.
HttpRequests
.
RestTemplate
for the gateway.
MediaType
objects supported by this converter.
TypeVariable names
to concrete
Class
for the specified Class
.
AbstractResource.getURL()
.
java.net.URL
.
User-Agent
header.
null
)
GsonHttpMessageConverter
with a default Gson
.
GsonHttpMessageConverter
.
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.
RestTemplate
and other HTTP accessing gateway helpers, defining
common properties such as the ClientHttpRequestFactory
to operate on.HttpClientErrorException
based on a HttpStatus
.
HttpClientErrorException
based on a HttpStatus
and status text.
HttpClientErrorException
based on a HttpStatus
, status text, and
response body content.
ClientHttpRequestFactory
implementation that uses Http Components HttpClient to create requests.HttpComponentsClientHttpRequestFactory
with a default HttpClient
that uses a default ThreadSafeClientConnManager
.
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.
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 a HttpStatus
.
HttpServerErrorException
based on a HttpStatus
and status text.
HttpServerErrorException
based on a HttpStatus
, status text, and
response body content.
HttpStatus
.HttpStatusCodeException
based on a HttpStatus
.
HttpStatusCodeException
based on a HttpStatus
and status text.
HttpStatusCodeException
based on a HttpStatus
, status text, and
response body content.
identity
.
ContentCodingType.IDENTITY
.
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
.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.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.
superType.isAssignableFrom(subType)
is true
.
superType.isAssignableFrom(subType)
is true
.
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.
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 not.
*
or not.
*
or not.
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.
HttpMessageConverter
that can read and write JSON using Jackson 2's ObjectMapper
.BindingJacksonHttpMessageConverter
.
HttpMessageConverter
that can read and write JSON using Jackson's ObjectMapper
.BindingJacksonHttpMessageConverter
.
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.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.
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
.
true
if both are null
or false
if only one is
null
.
Object.hashCode()
.
ContentCodingType
.
ContentCodingType
objects.
localeString
value into a Locale
.
MediaType
.
MediaType
objects.
decode
/ valueOf
methods.
ResponseEntity
.
HttpEntity
.
ResponseEntity
.
Location
header.
Location
header.
Location
header.
HttpMethodBase
before it
is returned as part of a CommonsClientHttpRequest
.
HttpUriRequest
before it is returned as part of a
HttpComponentsClientHttpRequest
.
HttpURLConnection
.
ContentCodingType.sortByQualityValue(List)
.
MediaType.sortByQualityValue(List)
.
AbstractHttpMessageConverter.readInternal(Class, HttpInputMessage)
.
Base64.InputStream.read()
repeatedly until the end of stream
is reached or len bytes are read.
AbstractHttpMessageConverter.read(Class, HttpInputMessage)
.
HttpHeaders
object that can only be read, not written to.
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
.
RestTemplate
.
RestTemplate
based on the given ClientHttpRequestFactory
.
RestTemplate
based on the given ClientHttpRequestFactory
.
exception
, which is presumably the
target exception of an InvocationTargetException
.
exception
, which is presumably the
target exception of an InvocationTargetException
.
HttpMessageConverter
that can read and write RSS feeds.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.
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.
Content-Disposition
header for form-data
.
Content-Encoding
header.
Content-Encoding
header.
Content-Length
header.
Content-Type
header.
Date
header.
ETag
header.
Expires
header.
field object
on the
specified target object
to the specified value
.
Gson
for this view.
HttpClient
used by this factory.
HttpClient
used by this factory.
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.
Pragma
header.
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.
User-Agent
header.
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.
HttpMessageConverter
that can read and write Source
objects.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
.
StringKeyGenerator
that hex-encodes SecureRandom
keys of 8 bytes in length.
HttpMessageConverter
that can read and write strings.Charset
of ISO-8859-1,
and default list of available Charset
's from Charset.availableCharsets()
.
Charset
,
and default list of available Charset
's from Charset.availableCharsets()
.
Charset
,
and list of available Charset
's.
String
utility methods.HttpMessageConverter
that can read and write RSS and
ATOM feeds.supportedMediaTypes
to
application/rss+xml
and application/atom+xml
.
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.
Source
to the Result
.
String.trim()
on each of them.
String
, changing the first letter to
lower case as per Character.toLowerCase(char)
.
UriComponents
.UriTemplate
with the given URI String.
Resource
implementation for java.net.URL
locators.java.lang.Object
.
ContentCodingType
object.
MediaType
object.
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.
Base64.OutputStream.write(int)
repeatedly until len
bytes are written.
AbstractXmlHttpMessageConverter.writeInternal(Object, HttpOutputMessage)
.
FormHttpMessageConverter
,
adding support for XML-based parts through a SourceHttpMessageConverter
.
|
Spring for Android | ||||||||
PREV NEXT | FRAMES NO FRAMES |