Package | Description |
---|---|
com.google.api.client.http |
Subset of HTTP 1.1 needed from the specification in RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1.
|
com.google.api.client.http.apache |
HTTP Transport library for Google API's based on Apache HTTP Client version 4.
|
com.google.api.client.http.javanet |
HTTP Transport library for Google API's based on the
java.net package. |
com.google.api.client.json |
Utilities for JSON as specified in RFC 4627: The
application/json Media Type for JavaScript Object Notation (JSON) and Introducing JSON.
|
com.google.api.client.json.rpc2 | |
com.google.api.client.json.webtoken | |
com.google.api.client.testing.http |
Beta Testing utilities used for writing tests based on this library. |
com.google.api.client.testing.http.apache |
Beta Testing utilities used for writing tests based on the Apache HTTP Client. |
com.google.api.client.testing.http.javanet | |
com.google.api.client.testing.json |
Beta Testing utilities used for writing tests based on this library. |
com.google.api.client.testing.json.webtoken |
Beta Testing utilities used for writing tests for JSON WebToken. |
com.google.api.client.testing.util |
Beta Testing utilities used for writing tests based on this library. |
com.google.api.client.util |
General utilities used throughout this library.
|
Package | Description |
---|---|
com.google.api.client.json.rpc2 | |
com.google.api.client.testing.http |
Beta Testing utilities used for writing tests based on this library. |
com.google.api.client.testing.http.apache |
Beta Testing utilities used for writing tests based on the Apache HTTP Client. |
com.google.api.client.testing.http.javanet | |
com.google.api.client.testing.json |
Beta Testing utilities used for writing tests based on this library. |
com.google.api.client.testing.json.webtoken |
Beta Testing utilities used for writing tests for JSON WebToken. |
com.google.api.client.testing.util |
Beta Testing utilities used for writing tests based on this library. |
Modifier and Type | Interface and Description |
---|---|
interface |
BackOffPolicy
Deprecated.
(scheduled to be removed in 1.18) Use
HttpBackOffUnsuccessfulResponseHandler
instead. |
class |
ExponentialBackOffPolicy
Deprecated.
(scheduled to be removed in 1.18). Use
HttpBackOffUnsuccessfulResponseHandler
with ExponentialBackOff instead. |
static class |
ExponentialBackOffPolicy.Builder
Deprecated.
|
class |
HttpBackOffIOExceptionHandler
|
class |
HttpBackOffUnsuccessfulResponseHandler
|
static interface |
HttpBackOffUnsuccessfulResponseHandler.BackOffRequired
|
interface |
HttpIOExceptionHandler
|
class |
OpenCensusUtils
Beta Utilities for Census monitoring and tracing. |
Modifier and Type | Method and Description |
---|---|
Future<HttpResponse> |
HttpRequest.executeAsync()
Beta Executes this request asynchronously using HttpRequest.executeAsync(Executor) in a single separate
thread using Executors#newFixedThreadPool(1) . |
Future<HttpResponse> |
HttpRequest.executeAsync(Executor executor)
Beta Executes this request asynchronously in a single separate thread using the supplied executor. |
BackOffPolicy |
HttpRequest.getBackOffPolicy()
Deprecated.
(scheduled to be removed in 1.18).
HttpRequest.setUnsuccessfulResponseHandler(HttpUnsuccessfulResponseHandler) with a new HttpBackOffUnsuccessfulResponseHandler instead. |
HttpIOExceptionHandler |
HttpRequest.getIOExceptionHandler()
|
boolean |
HttpRequest.getRetryOnExecuteIOException()
Deprecated.
(scheduled to be removed in 1.18) Use
HttpRequest.setIOExceptionHandler(HttpIOExceptionHandler) instead. |
HttpRequest |
HttpRequest.setBackOffPolicy(BackOffPolicy backOffPolicy)
Deprecated.
(scheduled to be removed in 1.18). Use
HttpRequest.setUnsuccessfulResponseHandler(HttpUnsuccessfulResponseHandler) with a new HttpBackOffUnsuccessfulResponseHandler instead. |
HttpRequest |
HttpRequest.setIOExceptionHandler(HttpIOExceptionHandler ioExceptionHandler)
|
HttpRequest |
HttpRequest.setRetryOnExecuteIOException(boolean retryOnExecuteIOException)
Deprecated.
(scheduled to be removed in 1.18) Use
HttpRequest.setIOExceptionHandler(HttpIOExceptionHandler) instead. |
Modifier and Type | Method and Description |
---|---|
ApacheHttpTransport.Builder |
ApacheHttpTransport.Builder.doNotValidateCertificate()
Beta Disables validating server SSL certificates by setting the SSL socket factory using SslUtils.trustAllSSLContext() for the SSL context and SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER for the host name verifier. |
Modifier and Type | Method and Description |
---|---|
NetHttpTransport.Builder |
NetHttpTransport.Builder.doNotValidateCertificate()
Beta Disables validating server SSL certificates by setting the SSL socket factory using SslUtils.trustAllSSLContext() for the SSL context and SslUtils.trustAllHostnameVerifier() for the host name verifier. |
Modifier and Type | Class and Description |
---|---|
class |
CustomizeJsonParser
Beta Customizes the behavior of a JSON parser. |
interface |
JsonPolymorphicTypeMap
Beta Declares that the data type enclosing this field is polymorphic, and that the value of this field in a heterogeneous JSON schema will determine what type the data should be parsed into. |
Modifier and Type | Method and Description |
---|---|
<T> T |
JsonParser.parse(Class<T> destinationClass,
CustomizeJsonParser customizeParser)
Beta Parse a JSON object, array, or value into a new instance of the given destination class, optionally using the given parser customizer. |
void |
JsonParser.parse(Object destination,
CustomizeJsonParser customizeParser)
Beta Parse a JSON object from the given JSON parser into the given destination object, optionally using the given parser customizer. |
Object |
JsonParser.parse(Type dataType,
boolean close,
CustomizeJsonParser customizeParser)
Beta Parse a JSON object, array, or value into a new instance of the given destination class, optionally using the given parser customizer. |
<T> T |
JsonParser.parseAndClose(Class<T> destinationClass,
CustomizeJsonParser customizeParser)
Beta Parse a JSON object, array, or value into a new instance of the given destination class using JsonParser.parse(Class, CustomizeJsonParser) , and then closes the parser. |
void |
JsonParser.parseAndClose(Object destination,
CustomizeJsonParser customizeParser)
Beta Parse a JSON Object from the given JSON parser -- which is closed after parsing completes -- into the given destination object, optionally using the given parser customizer. |
<T> Collection<T> |
JsonParser.parseArray(Class<?> destinationCollectionClass,
Class<T> destinationItemClass,
CustomizeJsonParser customizeParser)
Beta Parse a JSON Array from the given JSON parser into the given destination collection, optionally using the given parser customizer. |
<T> void |
JsonParser.parseArray(Collection<? super T> destinationCollection,
Class<T> destinationItemClass,
CustomizeJsonParser customizeParser)
Beta Parse a JSON Array from the given JSON parser into the given destination collection, optionally using the given parser customizer. |
<T> Collection<T> |
JsonParser.parseArrayAndClose(Class<?> destinationCollectionClass,
Class<T> destinationItemClass,
CustomizeJsonParser customizeParser)
Beta Parse a JSON Array from the given JSON parser (which is closed after parsing completes) into the given destination collection, optionally using the given parser customizer. |
<T> void |
JsonParser.parseArrayAndClose(Collection<? super T> destinationCollection,
Class<T> destinationItemClass,
CustomizeJsonParser customizeParser)
Beta Parse a JSON Array from the given JSON parser (which is closed after parsing completes) into the given destination collection, optionally using the given parser customizer. |
Modifier and Type | Class and Description |
---|---|
class |
JsonRpcRequest
Beta JSON-RPC 2.0 request object. |
Modifier and Type | Method and Description |
---|---|
X509Certificate |
JsonWebSignature.verifySignature()
Beta Verifies the signature of the content using the certificate chain embedded in the signature. |
X509Certificate |
JsonWebSignature.verifySignature(X509TrustManager trustManager)
Beta Verifies the signature of the content using the certificate chain embedded in the signature. |
Modifier and Type | Class and Description |
---|---|
class |
FixedClock
Beta A thread-safe fixed time implementation of the Clock to be used for unit testing. |
class |
HttpTesting
Beta Utilities and constants related to testing the HTTP library. |
class |
MockHttpContent
|
class |
MockHttpTransport
|
static class |
MockHttpTransport.Builder
|
class |
MockHttpUnsuccessfulResponseHandler
|
class |
MockLowLevelHttpRequest
|
class |
MockLowLevelHttpResponse
|
Modifier and Type | Class and Description |
---|---|
class |
MockHttpClient
|
Modifier and Type | Class and Description |
---|---|
class |
MockHttpURLConnection
|
Modifier and Type | Class and Description |
---|---|
class |
MockJsonFactory
|
class |
MockJsonGenerator
|
class |
MockJsonParser
|
Modifier and Type | Class and Description |
---|---|
class |
TestCertificates
Beta Test certificates. |
static class |
TestCertificates.CertData
Beta Wrapper for a PEM encoded certificate providing utility routines. |
Modifier and Type | Class and Description |
---|---|
class |
LogRecordingHandler
Beta Logging handler that stores log records. |
class |
MockBackOff
|
class |
MockSleeper
|
class |
SecurityTestUtils
|
class |
TestableByteArrayInputStream
Beta Testable extension for a byte array input stream. |
class |
TestableByteArrayOutputStream
Beta Testable extension for a byte array output stream. |
Modifier and Type | Class and Description |
---|---|
class |
BackOffUtils
|
class |
PemReader
Beta PEM file reader. |
Modifier and Type | Method and Description |
---|---|
static HostnameVerifier |
SslUtils.trustAllHostnameVerifier()
Beta Returns a verifier that trusts all host names. |
static SSLContext |
SslUtils.trustAllSSLContext()
Beta Returns an SSL context in which all X.509 certificates are trusted. |
Copyright © 2011–2019 Google. All rights reserved.