agents
Class Message

java.lang.Object
  |
  +--agents.Message
All Implemented Interfaces:
java.io.Serializable

public class Message
extends java.lang.Object
implements java.io.Serializable

Class that stores the information sent to the server and to the client.

See Also:
Serialized Form

Field Summary
 java.util.Vector body
           
 java.lang.Object ticket
           
 
Constructor Summary
Message()
          Method for creation of a new instance from this class.
Message(byte[] ticket)
          Method for creation of a new instance from this class when threre is a ticket already.
 
Method Summary
 void decode(java.lang.String passwd)
          Method for decoding the message with the user's password.
 void encode(java.lang.String passwd)
          Method for encoding the message with the user's password.
 boolean isEncoded()
          Method for verifying if the ticket is enconded.
 boolean wasEncoded()
          Method for verifying if the ticket was encoded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ticket

public java.lang.Object ticket

body

public java.util.Vector body
Constructor Detail

Message

public Message()
Method for creation of a new instance from this class.

Message

public Message(byte[] ticket)
Method for creation of a new instance from this class when threre is a ticket already.
Method Detail

decode

public void decode(java.lang.String passwd)
            throws java.io.IOException,
                   java.lang.ClassNotFoundException
Method for decoding the message with the user's password. This password is into the ticket object.

encode

public void encode(java.lang.String passwd)
            throws java.io.IOException
Method for encoding the message with the user's password. This password is into the ticket object.

isEncoded

public boolean isEncoded()
Method for verifying if the ticket is enconded.

wasEncoded

public boolean wasEncoded()
Method for verifying if the ticket was encoded.