📄 loginservicermiimpl.java
字号:
/*
* LoginServiceRMIImpl.java
*
* Created on 17 pa焏ziernik 2005, 20:38
*
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the Source Editor.
*/
package net.sf.jawp.gf.server.rmi;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import javax.security.auth.login.LoginException;
import net.sf.jawp.gf.api.services.LoginService;
import net.sf.jawp.gf.api.services.rmi.LoginServiceRMI;
import net.sf.jawp.gf.api.services.rmi.SessionServiceRMI;
/**
*
* @author jarek
* @version $Revision: 1.5 $
*
* @param <GAMESERVICE> native game service
*/
public final class LoginServiceRMIImpl<GAMESERVICE > extends UnicastRemoteObject
implements LoginServiceRMI<GAMESERVICE>
{
/**
*
*/
private static final long serialVersionUID = 1L;
private final LoginService<GAMESERVICE> service;
/** Creates a new instance of LoginServiceRMIImpl */
public LoginServiceRMIImpl(final LoginService<GAMESERVICE> srv) throws RemoteException
{
this.service = srv;
}
public String getServerSeed()
{
return this.service.getServerSeed();
}
public SessionServiceRMI<GAMESERVICE> login(final String clientString)
throws RemoteException, LoginException
{
return new SessionServiceRMIImpl<GAMESERVICE>( this.service.login(clientString));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -