Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(String, String) - Method in class org.shakespeareframework.retrofit.HeaderInterceptor
-
Adds a header that will be added to the intercepted request.
- addConverterFactory(Converter.Factory) - Method in class org.shakespeareframework.retrofit.CallHttpApis.Builder
-
Adds the given
Converter.Factory
to theCallHttpApis.Builder.retrofitBuilder
. - addInterceptor(Interceptor) - Method in class org.shakespeareframework.retrofit.CallHttpApis.Builder
-
Adds the given
Interceptor
to theCallHttpApis.Builder.okHttpClientBuilder
. - addJacksonConverterFactory() - Method in class org.shakespeareframework.retrofit.CallHttpApis.Builder
-
Adds a
JacksonConverterFactory
to theCallHttpApis.Builder.retrofitBuilder
. - addJacksonConverterFactory(ObjectMapper) - Method in class org.shakespeareframework.retrofit.CallHttpApis.Builder
-
Adds a
JacksonConverterFactory
using the given objectMapper to theCallHttpApis.Builder.retrofitBuilder
. - addScalarsConverterFactory() - Method in class org.shakespeareframework.retrofit.CallHttpApis.Builder
-
Adds a
ScalarsConverterFactory
to theCallHttpApis.Builder.retrofitBuilder
. - authenticate(Route, Response) - Method in class org.shakespeareframework.retrofit.oauth2.RetryingTokenAuthenticator
- authenticator(Authenticator) - Method in class org.shakespeareframework.retrofit.CallHttpApis.Builder
-
Sets the
Authenticator
of theCallHttpApis.Builder.okHttpClientBuilder
.
B
- baseUrl(String) - Method in class org.shakespeareframework.retrofit.CallHttpApis.Builder
-
Sets the base URL to the
CallHttpApis.Builder.retrofitBuilder
. - build(Class<? extends C>) - Method in class org.shakespeareframework.retrofit.CallHttpApis.Builder
-
Finalizes the build and returns the client.
- buildClient() - Method in class org.shakespeareframework.retrofit.CallHttpApis
-
Creates a new
CallHttpApis.Builder
.
C
- CallHttpApis - Class in org.shakespeareframework.retrofit
-
Ability
to call RESTful APIs usingRetrofit
. - CallHttpApis() - Constructor for class org.shakespeareframework.retrofit.CallHttpApis
- CallHttpApis.Builder - Class in org.shakespeareframework.retrofit
-
Builder wrapping a
Retrofit.Builder
and aOkHttpClient.Builder
to allow setting both with one class.
G
- getAccessToken() - Method in class org.shakespeareframework.retrofit.oauth2.Oauth2Token
- getToken() - Method in class org.shakespeareframework.retrofit.oauth2.ResourceOwnerPasswordTokenAuthenticator
- getToken() - Method in class org.shakespeareframework.retrofit.oauth2.RetryingTokenAuthenticator
H
- HeaderInterceptor - Class in org.shakespeareframework.retrofit
-
Interceptor
to add headers to any request. - HeaderInterceptor() - Constructor for class org.shakespeareframework.retrofit.HeaderInterceptor
I
- intercept(Interceptor.Chain) - Method in class org.shakespeareframework.retrofit.HeaderInterceptor
- isExpired() - Method in class org.shakespeareframework.retrofit.oauth2.Oauth2Token
-
Checks if this is expired or will be expired in less than 10 seconds.
O
- oauth2Api - Variable in class org.shakespeareframework.retrofit.oauth2.RetryingTokenAuthenticator
-
Oauth2Api
instance to obtain a token. - Oauth2AuthenticationFailedException - Exception in org.shakespeareframework.retrofit.oauth2
-
An exception thrown when OAuth2 authentication fails.
- Oauth2AuthenticationFailedException() - Constructor for exception org.shakespeareframework.retrofit.oauth2.Oauth2AuthenticationFailedException
- Oauth2Token - Class in org.shakespeareframework.retrofit.oauth2
-
A parsed OAuth2 token.
- Oauth2Token(String, Integer) - Constructor for class org.shakespeareframework.retrofit.oauth2.Oauth2Token
- org.shakespeareframework.retrofit - package org.shakespeareframework.retrofit
-
The retrofit package contains the
CallHttpApis
Ability
, which enables anActor
to call HTTP APIs usingRetrofit
generated clients. - org.shakespeareframework.retrofit.oauth2 - package org.shakespeareframework.retrofit.oauth2
-
The authentication package contains
Authenticator
s for OAuth 2.0 Authorization flows:ResourceOwnerPasswordTokenAuthenticator
R
- remove(String) - Method in class org.shakespeareframework.retrofit.HeaderInterceptor
-
Removes a header that will no longer be added to the intercepted request.
- ResourceOwnerPasswordTokenAuthenticator - Class in org.shakespeareframework.retrofit.oauth2
-
RetryingTokenAuthenticator
to automatically authenticate with theOauth2Api
via resource owner password flow (grant typepassword
) and add the access token as a header. - ResourceOwnerPasswordTokenAuthenticator(String, String, String, String, String, String) - Constructor for class org.shakespeareframework.retrofit.oauth2.ResourceOwnerPasswordTokenAuthenticator
- RetryingTokenAuthenticator - Class in org.shakespeareframework.retrofit.oauth2
-
Authenticator
that will retry authentication at the #tokenServiceUrl formaxRetries
times. - RetryingTokenAuthenticator(String, int) - Constructor for class org.shakespeareframework.retrofit.oauth2.RetryingTokenAuthenticator
All Classes and Interfaces|All Packages|Serialized Form