Class GenericRequest

  • All Implemented Interfaces:
    Dumpable, java.io.Serializable

    public class GenericRequest
    extends Request
    Version:
    1.0
    Author:
    Andreas Mueller, IIT GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • GenericRequest

        public GenericRequest​(int dispatchId,
                              boolean replyRequired,
                              java.io.Serializable payload)
        Parameters:
        dispatchId -
        replyRequired -
        payload -
    • Method Detail

      • writeContent

        public void writeContent​(java.io.DataOutput out)
                          throws java.io.IOException
        Write the content of this object to the stream.
        Specified by:
        writeContent in interface Dumpable
        Overrides:
        writeContent in class Request
        Parameters:
        out - output stream
        Throws:
        java.io.IOException - if an error occurs
      • readContent

        public void readContent​(java.io.DataInput in)
                         throws java.io.IOException
        Read the content of this object from the stream.
        Specified by:
        readContent in interface Dumpable
        Overrides:
        readContent in class Request
        Parameters:
        in - input stream
        Throws:
        java.io.IOException - if an error occurs
      • getPayload

        public java.io.Serializable getPayload()
        Returns:
      • setPayload

        public void setPayload​(java.io.Serializable payload)
        Parameters:
        payload -
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Request