org.xmlBlaster.protocol.rmi
Class AuthServerImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.xmlBlaster.protocol.rmi.AuthServerImpl
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, I_AuthServer
public class AuthServerImpl
- extends java.rmi.server.UnicastRemoteObject
- implements I_AuthServer
Interface to login to xmlBlaster.
- Author:
- xmlBlaster@marcelruff.info
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
java.lang.String |
connect(java.lang.String qos_literal)
Login to xmlBlaster. |
void |
disconnect(java.lang.String sessionId,
java.lang.String qos_literal)
|
java.lang.String |
ping(java.lang.String qos)
Ping to check if the authentication server is alive. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
glob
private final Global glob
log
private static java.util.logging.Logger log
authenticate
private final I_Authenticate authenticate
addressServer
private final AddressServer addressServer
AuthServerImpl
public AuthServerImpl(Global glob,
AddressServer addressServer,
I_Authenticate authenticate,
I_XmlBlaster blasterNative)
throws java.rmi.RemoteException
- One instance implements an authentication server.
This server delegates all requests to xmlBlaster.authenticate package
- Parameters:
authenticate
- The authentication serviceblasterNative
- The interface to access xmlBlaster
- Throws:
java.rmi.RemoteException
connect
public java.lang.String connect(java.lang.String qos_literal)
throws java.rmi.RemoteException,
XmlBlasterException
- Login to xmlBlaster.
- Specified by:
connect
in interface I_AuthServer
- Parameters:
qos_literal
- See ConnectQosServer.java
- Returns:
- The xml string from ConnectReturnQos.java
We could return the ConnectReturnQos object as well, but adding
attributes to this object would force clients to install the new class
declaration. In future we could use the Jini apporach here.
- Throws:
java.rmi.RemoteException
XmlBlasterException
- See Also:
ConnectQosServer
,
ConnectReturnQosServer
disconnect
public void disconnect(java.lang.String sessionId,
java.lang.String qos_literal)
throws java.rmi.RemoteException,
XmlBlasterException
- Specified by:
disconnect
in interface I_AuthServer
- Throws:
java.rmi.RemoteException
XmlBlasterException
ping
public java.lang.String ping(java.lang.String qos)
throws java.rmi.RemoteException
- Ping to check if the authentication server is alive.
- Specified by:
ping
in interface I_AuthServer
- Returns:
- Currently an empty string ""
- Throws:
java.rmi.RemoteException
- See Also:
org.xmlBlaster.protocol.I_XmlBlaster#ping(String)
Copyright © 1999-2014 The xmlBlaster.org contributers.