public class AnonymousClient extends DirectHttpClient<AnonymousCredentials>
extractor
Constructor and Description |
---|
AnonymousClient() |
Modifier and Type | Method and Description |
---|---|
ClientType |
getClientType()
Return the client type.
|
AnonymousCredentials |
getCredentials(WebContext context)
Get the credentials from the web context.
|
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected BaseClient<AnonymousCredentials,CommonProfile> |
newClient()
Create a new instance of the client.
|
protected AnonymousProfile |
retrieveUserProfile(AnonymousCredentials credentials,
WebContext context) |
clone, getAuthenticator, getProfileCreator, setAuthenticator, setProfileCreator, toString
redirect
addAuthorizationGenerator, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName
init, reinit
protected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class DirectHttpClient<AnonymousCredentials>
context
- the web contextprotected BaseClient<AnonymousCredentials,CommonProfile> newClient()
BaseClient
newClient
in class BaseClient<AnonymousCredentials,CommonProfile>
public AnonymousCredentials getCredentials(WebContext context) throws RequiresHttpAction
Client
Get the credentials from the web context. If no validation was made remotely (direct client), credentials must be validated at this step.
In some cases, a RequiresHttpAction
may be thrown instead.
getCredentials
in interface Client<AnonymousCredentials,CommonProfile>
getCredentials
in class DirectHttpClient<AnonymousCredentials>
context
- the current web contextRequiresHttpAction
- whether an additional HTTP action is requiredprotected AnonymousProfile retrieveUserProfile(AnonymousCredentials credentials, WebContext context)
retrieveUserProfile
in class DirectHttpClient<AnonymousCredentials>
public ClientType getClientType()
BaseClient
getClientType
in class BaseClient<AnonymousCredentials,CommonProfile>
Copyright © 2016. All rights reserved.