added initial PresenceServiceImpl
git-svn-id: svn://anubis/gvsu@270 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
03f596c387
commit
0188972780
66
cs656/lab4/PresenceServiceImpl.java
Normal file
66
cs656/lab4/PresenceServiceImpl.java
Normal file
@ -0,0 +1,66 @@
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.restlet.Client;
|
||||
import org.restlet.data.Form;
|
||||
import org.restlet.data.Method;
|
||||
import org.restlet.data.Protocol;
|
||||
import org.restlet.data.Request;
|
||||
import org.restlet.data.Response;
|
||||
|
||||
import edu.gvsu.cis.cs656.lab4.server.PresenceService;
|
||||
import edu.gvsu.cis.cs656.lab4.server.RegistrationInfo;
|
||||
|
||||
public class MyApplicationTester implements PresenceService
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a client with the presence service.
|
||||
* @param reg The information that is to be registered about a client.
|
||||
*/
|
||||
void register(RegistrationInfo reg) throws Exception
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Unregister a client from the presence service. Client must call this
|
||||
* method when it terminates execution.
|
||||
* @param userName The name of the user to be unregistered.
|
||||
*/
|
||||
void unregister(String userName) throws Exception
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Lookup the registration information of another client.
|
||||
* @param name The name of the client that is to be located.
|
||||
* @return The RegistrationInfo info for the client, or null if
|
||||
* no such client was found.
|
||||
*/
|
||||
RegistrationInfo lookup(String name) throws Exception
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the user's presence status.
|
||||
* @param name The name of the user whose status is to be set.
|
||||
* @param status true if user is available, false otherwise.
|
||||
*/
|
||||
void setStatus(String userName, boolean status) throws Exception
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine all users who are currently registered in the system.
|
||||
* @return An array of RegistrationInfo objects - one for each client
|
||||
* present in the system.
|
||||
*/
|
||||
RegistrationInfo[] listRegisteredUsers() throws Exception
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user