Package protocolP2P

Class Payload

  • Direct Known Subclasses:
    FileList, FilePart, LoadRequest

    public class Payload
    extends java.lang.Object
    Representation of payload. If payload has a size, use subclasses instead.
    Version:
    1.0
    Author:
    Louis Royer, Flavien Haas, JS Auge
    • Constructor Detail

      • Payload

        public Payload​(RequestResponseCode requestResponseCode)
                throws InternalError
        Consructor used to create Payload with a payload size of zero using a RRCode.
        Parameters:
        requestResponseCode - Request/Response code associated with the payload
        Throws:
        InternalError
    • Method Detail

      • getRequestResponseCode

        public RequestResponseCode getRequestResponseCode()
        RRCode getter.
        Returns:
        Request/Response code