|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.presents.server.SessionFactory
public abstract class SessionFactory
Used to determine what type of PresentsSession to use to manage an authenticated client
as well the type of ClientResolver to use when resolving clients' runtime data.
| Field Summary | |
|---|---|
static SessionFactory |
DEFAULT
The default client factory. |
| Constructor Summary | |
|---|---|
SessionFactory()
|
|
| Method Summary | |
|---|---|
abstract Class<? extends ClientResolver> |
getClientResolverClass(Name username)
Returns the ClientResolver derived class to use to resolve a client with the
specified username or null if this factory does not handle clients of the supplied type. |
abstract Class<? extends PresentsSession> |
getSessionClass(AuthRequest areq)
Returns the PresentsSession derived class to use for the session that authenticated
with the supplied request or null if this factory does not handle sessions of the supplied
type. |
static SessionFactory |
newSessionFactory(Class<? extends Credentials> credsClass,
Class<? extends PresentsSession> sessionClass,
Class<? extends Name> nameClass,
Class<? extends ClientResolver> resolverClass)
Creates a session factory that handles clients with the supplied credentials and authentication name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static SessionFactory DEFAULT
| Constructor Detail |
|---|
public SessionFactory()
| Method Detail |
|---|
public static SessionFactory newSessionFactory(Class<? extends Credentials> credsClass,
Class<? extends PresentsSession> sessionClass,
Class<? extends Name> nameClass,
Class<? extends ClientResolver> resolverClass)
public abstract Class<? extends PresentsSession> getSessionClass(AuthRequest areq)
PresentsSession derived class to use for the session that authenticated
with the supplied request or null if this factory does not handle sessions of the supplied
type.
public abstract Class<? extends ClientResolver> getClientResolverClass(Name username)
ClientResolver derived class to use to resolve a client with the
specified username or null if this factory does not handle clients of the supplied type.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||