ecologylab.services.authentication.nio
Class AuthClientManager
java.lang.Object
ecologylab.generic.Debug
ecologylab.services.distributed.server.clientmanager.AbstractClientManager
ecologylab.services.distributed.server.clientmanager.ClientManager
ecologylab.services.authentication.nio.AuthClientManager
- All Implemented Interfaces:
- AuthMessages, AuthServerRegistryObjects, NetworkingConstants, ServerConstants
public class AuthClientManager
- extends ClientManager
- implements ServerConstants, AuthServerRegistryObjects, AuthMessages
Stores information about the connection context for the client, including
authentication status. Only executes requests from an authenticated client.
Should be extended for more specific implementations. Handles accumulating
incoming messages and translating them into RequestMessage objects.
- Author:
- Zachary O. Toups (toupsz@cs.tamu.edu)
- See Also:
ClientManager
| Fields inherited from class ecologylab.services.distributed.server.clientmanager.AbstractClientManager |
frontend, headerBufOutgoing, headerMap, initialized, maxPacketSize, messageWaiting, msgBufIncoming, msgBufOutgoing, registry, requestQueue, server, sessionId, socketKey, startLine, startReadIndex, translationSpace |
| Fields inherited from interface ecologylab.services.distributed.common.NetworkingConstants |
CHARACTER_ENCODING, CONTENT_LENGTH_STRING, CONTENT_LENGTH_STRING_LENGTH, DECODER, ENCODER, HTTP_HEADER_LINE_DELIMITER, HTTP_HEADER_TERMINATOR, MAX_HTTP_HEADER_LENGTH, MAX_PACKET_SIZE_BYTES, MAX_PACKET_SIZE_CHARACTERS, UNIQUE_IDENTIFIER_STRING |
|
Method Summary |
protected ResponseMessage |
performService(RequestMessage requestMessage)
Calls performService on the given RequestMessage using the local
ObjectRegistry, if the client has been authenticated, or if the request is
to log in. |
| Methods inherited from class ecologylab.services.distributed.server.clientmanager.AbstractClientManager |
enqueueRequest, getLastActivity, getNextRequest, getSocketKey, isInitialized, isMessageWaiting, parseHeader, processAllMessagesAndSendResponses, processIncomingSequenceBufToQueue, setSocket, shutdown, translateStringToRequestMessage |
| Methods inherited from class ecologylab.generic.Debug |
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AuthClientManager
public AuthClientManager(java.lang.Object token,
int maxPacketSize,
NIOServerBackend server,
NIOServerFrontend frontend,
java.nio.channels.SelectionKey sk,
TranslationSpace translationSpace,
Scope registry,
AuthLogging servicesServer)
- Constructs a new AuthContextManager on a server to handle authenticating
client requests.
- Parameters:
token - maxPacketSize - server - frontend - socket - translationSpace - registry - servicesServer -
performService
protected ResponseMessage performService(RequestMessage requestMessage)
- Calls performService on the given RequestMessage using the local
ObjectRegistry, if the client has been authenticated, or if the request is
to log in. Can be overridden by subclasses to provide more specialized
functionality.
- Overrides:
performService in class AbstractClientManager
- Parameters:
requestMessage -
- Returns: