ants.p2p.http
Class HttpResponsePartMessage

java.lang.Object
  extended by ants.p2p.Message
      extended by ants.p2p.http.HttpResponsePartMessage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class HttpResponsePartMessage
extends Message
implements java.lang.Comparable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ants.p2p.Message
dest
 
Constructor Summary
HttpResponsePartMessage(byte[] body, Message httpRequest, java.lang.Integer id)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 void decrypt(javax.crypto.Cipher c)
           
 void encrypt(javax.crypto.Cipher c)
           
 byte[] getBody()
           
 java.lang.Integer getId()
           
 Message getRequest()
           
 
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

HttpResponsePartMessage

public HttpResponsePartMessage(byte[] body,
                               Message httpRequest,
                               java.lang.Integer id)
Method Detail

getBody

public byte[] getBody()

getId

public java.lang.Integer getId()

getRequest

public Message getRequest()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

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