public class HttpsURLConnectionClientAdapter extends Object implements TokenServiceHttpClient
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpsURLConnectionClientAdapter.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
DEFAULT_PATH| Constructor and Description |
|---|
HttpsURLConnectionClientAdapter(URL baseSeviceUrl,
HttpsUrlConnectionFactory connectionFactory,
HttpLoggingFormatter logFormat,
DataBindingProvider<?> dataBindingProvider,
Class<T> tokenClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleProtocolError(int code,
String responsePayload,
String contentType) |
<T extends AccessToken> |
post(String urlPath,
AccessTokenGrantRequest grantRequest) |
public HttpsURLConnectionClientAdapter(URL baseSeviceUrl, HttpsUrlConnectionFactory connectionFactory, HttpLoggingFormatter logFormat, DataBindingProvider<?> dataBindingProvider, Class<T> tokenClass)
public <T extends AccessToken> T post(String urlPath, AccessTokenGrantRequest grantRequest) throws IOException, OAuth2ProtocolException
post in interface TokenServiceHttpClientIOExceptionOAuth2ProtocolExceptionprotected void handleProtocolError(int code,
String responsePayload,
String contentType)
throws IOException
IOExceptionCopyright © 2017. All rights reserved.