jreceiver.common.rpc
Class RpcBaseDirect
java.lang.Object
|
+--jreceiver.common.rpc.RpcBaseDirect
- All Implemented Interfaces:
- RpcBase
- Direct Known Subclasses:
- CommandListenerDirect, ControllerListenerDirect, SettingListenerDirect, StatusListenerDirect
- public abstract class RpcBaseDirect
- extends java.lang.Object
- implements RpcBase
Basic implementation of a direct interface to an RPC endpoint.
- Version:
- $Revision: 1.6 $ $Date: 2002/09/24 18:38:00 $
- Author:
- Reed Esau
Fields inherited from interface jreceiver.common.rpc.RpcBase |
DETECT |
Method Summary |
protected void |
authorize(java.lang.String rpc_method)
obtain the authorization mask in a basic security check |
boolean |
detect()
returns true if server is detected and active |
abstract java.lang.String |
getHandlerName()
handler name needed for authorization; must be defined by subclasses |
abstract jreceiver.common.BaseSecurityBean |
getSecurityBean()
Obtain a security bean instance to authenticate requests for this listener. |
User |
getUser()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RpcBaseDirect
public RpcBaseDirect()
RpcBaseDirect
public RpcBaseDirect(User user)
getHandlerName
public abstract java.lang.String getHandlerName()
- handler name needed for authorization; must be defined by subclasses
detect
public boolean detect()
- returns true if server is detected and active
- Specified by:
detect
in interface RpcBase
- Following copied from interface:
jreceiver.common.rpc.RpcBase
- Returns:
-
getUser
public final User getUser()
authorize
protected final void authorize(java.lang.String rpc_method)
throws jreceiver.common.JRecSecurityException
- obtain the authorization mask in a basic security check
- Parameters:
rpc_method
- String
the name of the method to access- Throws:
jreceiver.common.JRecSecurityException
- - if user is unauthorized to use handler/method
getSecurityBean
public abstract jreceiver.common.BaseSecurityBean getSecurityBean()
- Obtain a security bean instance to authenticate requests for this listener.
Usually a reference to a singleton instance is returned.
Copyright © 2001-2002 Reed Esau, All Rights Reserved.