ants.p2p.messages
Class ControlMessage

java.lang.Object
  extended by ants.p2p.Message
      extended by ants.p2p.messages.ControlMessage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
FileInfosPullErrorControlMessage, FileSizePullErrorControlMessage, FileTransferEndControlMessage, FileTransferErrorControlMessage, HttpInterruptTransferMessage, HttpTransferEndControlMessage, SecureConnectionErrorControlMessage

public class ControlMessage
extends Message

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ants.p2p.Message
dest
 
Constructor Summary
ControlMessage(java.lang.Integer controlID, byte[] content, java.lang.String message)
           
ControlMessage(Message m, java.lang.Integer controlID, byte[] content, java.lang.String message)
           
 
Method Summary
 void decrypt(javax.crypto.Cipher c)
           
 void encrypt(javax.crypto.Cipher c)
           
 byte[] getContent()
           
 java.lang.Integer getControlId()
           
 java.lang.String getMessage()
           
 
Methods inherited from class ants.p2p.Message
disableAutoRetransmit, equals, fillMessageProperties, getAck_Id, getDelivered, getDest, getPublicKey, getRetrasmissions, getSignableMessage, getSignature, getSource, getSourceAddress, getType, getVersion, invalidate, resetDelivered, resetDest, resetSource, retrasmitted, setDelivered, setPublicKey, setSignature
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlMessage

public ControlMessage(Message m,
                      java.lang.Integer controlID,
                      byte[] content,
                      java.lang.String message)

ControlMessage

public ControlMessage(java.lang.Integer controlID,
                      byte[] content,
                      java.lang.String message)
Method Detail

getContent

public byte[] getContent()

getMessage

public java.lang.String getMessage()

getControlId

public java.lang.Integer getControlId()

encrypt

public void encrypt(javax.crypto.Cipher c)
             throws java.lang.Exception
Overrides:
encrypt in class Message
Throws:
java.lang.Exception

decrypt

public void decrypt(javax.crypto.Cipher c)
             throws java.lang.Exception
Overrides:
decrypt in class Message
Throws:
java.lang.Exception