|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectservlet.AccessOperation
public class AccessOperation
Provides a whole of methods which to communicate with the server.
Field Summary | |
---|---|
private static BSForServletInterface |
boot
The reference to the remote object of the bootstrap |
private static MSForServletInterface |
msi
The reference to the remote object of the message |
Constructor Summary | |
---|---|
AccessOperation()
|
Method Summary | |
---|---|
static MessageServer |
askMsgServer(User user)
Asks the assignation of a Message Server |
private static void |
catchError(java.lang.String error)
Visualizes a graphic interface with the error |
static void |
changeStateUser(int form,
User user)
Changes the friendship's state with the user |
static boolean |
contactUser(User user)
Lets contact another user the first time |
static java.util.Vector<Message> |
getMail(User user,
java.lang.String pass,
MessageServer ms)
Downloads and deletes the messages received by the user |
static User |
getUser(User user)
Gets information about the requested user |
static ContactList |
logMsg(User user,
java.lang.String pass,
MessageServer ms)
This method finds the reference to the remote object of the message server, sets the State to true and downloads the Contacts List |
static void |
logOff()
Set the user's state to false. |
static boolean |
register(User user,
java.lang.String pass)
This method is of use to the user's registration |
static void |
sendMessage(Message mx)
Sends a message to the message server |
static boolean |
setConnBoot(java.net.InetAddress bootIa,
int port)
This method finds the reference to the remote object of the bootstrap. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static BSForServletInterface boot
private static MSForServletInterface msi
Constructor Detail |
---|
public AccessOperation()
Method Detail |
---|
public static boolean setConnBoot(java.net.InetAddress bootIa, int port)
bootIa
- the bootstrap's addressport
- the bootstrap's port
public static boolean register(User user, java.lang.String pass)
user
- the userpass
- the user's pass
public static MessageServer askMsgServer(User user)
user
- the user who to assign the Message Server to.
public static ContactList logMsg(User user, java.lang.String pass, MessageServer ms)
user
- the userpass
- the user's passwordms
- the message server
public static java.util.Vector<Message> getMail(User user, java.lang.String pass, MessageServer ms)
user
- the userpass
- the user's passwordms
- the message server
public static void changeStateUser(int form, User user)
form
- 0 to unlock the contact; 1 to lock the contactuser
- the userpublic static void logOff()
public static void sendMessage(Message mx)
mx
- the message serverpublic static User getUser(User user)
user
- the user
public static boolean contactUser(User user)
user
- the user
private static void catchError(java.lang.String error)
error
- the error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |