public abstract class DirectHttpClient<C extends Credentials> extends DirectClient<C,CommonProfile>
This class is the base HTTP client to authenticate directly users through HTTP protocol.
All the logic is based on Extractor
, Authenticator
and ProfileCreator
.
It returns a HttpProfile
.
HttpProfile
Modifier and Type | Field and Description |
---|---|
protected Extractor<C> |
extractor |
logger
Constructor and Description |
---|
DirectHttpClient() |
Modifier and Type | Method and Description |
---|---|
DirectHttpClient<C> |
clone() |
Authenticator<C> |
getAuthenticator() |
C |
getCredentials(WebContext context) |
ProfileCreator<C,CommonProfile> |
getProfileCreator() |
protected void |
internalInit(WebContext context) |
protected CommonProfile |
retrieveUserProfile(C credentials,
WebContext context) |
void |
setAuthenticator(Authenticator<C> authenticator) |
void |
setProfileCreator(ProfileCreator<C,CommonProfile> profileCreator) |
String |
toString() |
redirect
addAuthorizationGenerator, getAuthorizationGenerators, getClientType, getName, getUserProfile, newClient, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName
init, reinit
protected Extractor<C extends Credentials> extractor
protected void internalInit(WebContext context)
internalInit
in class InitializableWebObject
public DirectHttpClient<C> clone()
clone
in class BaseClient<C extends Credentials,CommonProfile>
public C getCredentials(WebContext context) throws RequiresHttpAction
RequiresHttpAction
protected CommonProfile retrieveUserProfile(C credentials, WebContext context)
retrieveUserProfile
in class BaseClient<C extends Credentials,CommonProfile>
public String toString()
toString
in class BaseClient<C extends Credentials,CommonProfile>
public Authenticator<C> getAuthenticator()
public void setAuthenticator(Authenticator<C> authenticator)
public ProfileCreator<C,CommonProfile> getProfileCreator()
public void setProfileCreator(ProfileCreator<C,CommonProfile> profileCreator)
Copyright © 2016. All Rights Reserved.