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 |
callbackUrl, logger, NEEDS_CLIENT_REDIRECTION_PARAMETER
Constructor and Description |
---|
BaseHttpClient() |
Modifier and Type | Method and Description |
---|---|
BaseHttpClient |
clone() |
ProfileCreator |
getProfileCreator() |
Protocol |
getProtocol() |
UsernamePasswordAuthenticator |
getUsernamePasswordAuthenticator() |
protected void |
internalInit() |
protected HttpProfile |
retrieveUserProfile(UsernamePasswordCredentials credentials) |
void |
setProfileCreator(ProfileCreator profileCreator) |
void |
setUsernamePasswordAuthenticator(UsernamePasswordAuthenticator usernamePasswordAuthenticator) |
getCallbackUrl, getCredentials, getName, getRedirectionUrl, getRedirectionUrl, getUserProfile, isDirectRedirection, newClient, retrieveCredentials, retrieveRedirectionUrl, setCallbackUrl, 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)
retrieveUserProfile
in class BaseClient<UsernamePasswordCredentials,HttpProfile>
public UsernamePasswordAuthenticator getUsernamePasswordAuthenticator()
public void setUsernamePasswordAuthenticator(UsernamePasswordAuthenticator usernamePasswordAuthenticator)
public ProfileCreator getProfileCreator()
public void setProfileCreator(ProfileCreator profileCreator)
public Protocol getProtocol()
getProtocol
in class BaseClient<UsernamePasswordCredentials,HttpProfile>
Copyright © 2013. All Rights Reserved.