public abstract class BaseHttpClient extends BaseClient<UsernamePasswordCredentials,HttpProfile>
UsernamePasswordAuthenticator
must be defined through the
setUsernamePasswordAuthenticator(UsernamePasswordAuthenticator)
method.
To create the profile, a ProfileCreator
must be defined through the setProfileCreator(ProfileCreator)
method.
It returns a HttpProfile
.HttpProfile
Modifier and Type | Field and Description |
---|---|
protected UsernamePasswordAuthenticator |
usernamePasswordAuthenticator |
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, logger, NEEDS_CLIENT_REDIRECTION_PARAMETER
Constructor and Description |
---|
BaseHttpClient() |
Modifier and Type | Method and Description |
---|---|
BaseHttpClient |
clone() |
ProfileCreator |
getProfileCreator() |
UsernamePasswordAuthenticator |
getUsernamePasswordAuthenticator() |
protected void |
internalInit() |
protected HttpProfile |
retrieveUserProfile(UsernamePasswordCredentials credentials,
WebContext context) |
void |
setProfileCreator(ProfileCreator profileCreator) |
void |
setUsernamePasswordAuthenticator(UsernamePasswordAuthenticator usernamePasswordAuthenticator) |
addAuthorizationGenerator, getAuthorizationGenerators, getCallbackUrl, getContextualCallbackUrl, getCredentials, getMechanism, getName, getRedirectAction, getRedirectionUrl, getStateParameter, getUserProfile, isDirectRedirection, isEnableContextualRedirects, newClient, prependHostToUrlIfNotPresent, redirect, retrieveCredentials, retrieveRedirectAction, setAuthorizationGenerator, setAuthorizationGenerators, setCallbackUrl, setEnableContextualRedirects, setName, toString
init, reinit
protected UsernamePasswordAuthenticator usernamePasswordAuthenticator
public BaseHttpClient clone()
clone
in class BaseClient<UsernamePasswordCredentials,HttpProfile>
protected void internalInit()
internalInit
in class InitializableObject
protected HttpProfile retrieveUserProfile(UsernamePasswordCredentials credentials, WebContext context)
retrieveUserProfile
in class BaseClient<UsernamePasswordCredentials,HttpProfile>
public UsernamePasswordAuthenticator getUsernamePasswordAuthenticator()
public void setUsernamePasswordAuthenticator(UsernamePasswordAuthenticator usernamePasswordAuthenticator)
public ProfileCreator getProfileCreator()
public void setProfileCreator(ProfileCreator profileCreator)
Copyright © 2014. All Rights Reserved.