org.cumulus4j.keymanager.channel
Class AbstractRequestHandler<R extends Request>
java.lang.Object
org.cumulus4j.keymanager.channel.AbstractRequestHandler<R>
- Type Parameters:
R
- the request type for which this request handler is responsible.
- All Implemented Interfaces:
- RequestHandler<R>
- Direct Known Subclasses:
- GetActiveEncryptionKeyRequestHandler, GetKeyRequestHandler
public abstract class AbstractRequestHandler<R extends Request>
- extends Object
- implements RequestHandler<R>
Abstract base class for RequestHandler
implementations.
Implementors should subclass this class instead of directly implementing the
RequestHandler
interface.
- Author:
- Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRequestHandler
public AbstractRequestHandler()
getKeyManagerChannelManager
public KeyManagerChannelManager getKeyManagerChannelManager()
- Description copied from interface:
RequestHandler
- Get the
KeyManagerChannelManager
.
- Specified by:
getKeyManagerChannelManager
in interface RequestHandler<R extends Request>
- Returns:
- the
KeyManagerChannelManager
or null
, if it has not yet been set.
setKeyManagerChannelManager
public void setKeyManagerChannelManager(KeyManagerChannelManager keyManagerChannelManager)
- Description copied from interface:
RequestHandler
- Set the
KeyManagerChannelManager
. This method is called by the KeyManagerChannelManager
after instantiating a new RequestHandler
instance and before invoking RequestHandler.handle(Request)
.
- Specified by:
setKeyManagerChannelManager
in interface RequestHandler<R extends Request>
- Parameters:
keyManagerChannelManager
- the KeyManagerChannelManager
Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.