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 |
---|---|
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. |
NetHttpTransport.Builder |
NetHttpTransport.Builder.trustCertificates(KeyStore trustStore,
KeyStore mtlsKeyStore,
String mtlsKeyStorePassword)
Beta Sets the SSL socket factory based on a root certificate trust store and a client certificate key store. |
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 KeyStore |
SecurityUtils.createMtlsKeyStore(InputStream certAndKey)
Beta Create a keystore for mutual TLS with the certificate and private key provided. |
static SSLContext |
SslUtils.initSslContext(SSLContext sslContext,
KeyStore trustStore,
TrustManagerFactory trustManagerFactory,
KeyStore mtlsKeyStore,
String mtlsKeyStorePassword,
KeyManagerFactory keyManagerFactory)
Beta Initializes the SSL context to the trust managers supplied by the trust manager factory for the given trust store, and to the key managers supplied by the key manager factory for the given key store. |
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–2024 Google. All rights reserved.