org.locomotive.loco.perm
Class PermHandler

java.lang.Object
  |
  +--org.locomotive.loco.perm.PermHandler

public class PermHandler
extends java.lang.Object
implements Handler

Handler for the optional permissions module of the Locomotive.


Constructor Summary
PermHandler()
           
 
Method Summary
 void handleRequest(HandlerData hd_in)
          This is the entry point for the server upon receipt of a new request.
 boolean init(Log initlog)
          Called during Handler initiation.
 boolean shutdown(Log log)
          The required shutdown method, as defined in org.locomotive.loco.Handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermHandler

public PermHandler()
Method Detail

handleRequest

public void handleRequest(HandlerData hd_in)
This is the entry point for the server upon receipt of a new request.
Specified by:
handleRequest in interface Handler
Parameters:
hd_in - a HandlerData object, containing request specific information

init

public boolean init(Log initlog)
Called during Handler initiation. Initializes the PermissionSet class.
Specified by:
init in interface Handler
Parameters:
initlog - - a Log instance used to log details of initiation

shutdown

public boolean shutdown(Log log)
The required shutdown method, as defined in org.locomotive.loco.Handler. In this example, we don't actually need to do anything. In the future we'll probably make sure the current state of the cache is saved, though that shouldn't really be necessary.
Specified by:
shutdown in interface Handler
See Also:
org.locomotive.loco.Handler#shutdown