Class Protocol.SimplePostData

  • Enclosing interface:
    Protocol

    public static class Protocol.SimplePostData
    extends Object
    Represents simple POST data.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      byte[] data
      The request data that will be posted (uploaded) to the server.
      Map<String,​String> headerMap
      The MIME header fields, where each key is the field-name (without the terminating ":") and the corresponding value is the field-body-contents.
    • Constructor Summary

      Constructors 
      Constructor Description
      SimplePostData​(byte[] data)
      Instantiates a simple post data object.
    • Field Detail

      • headerMap

        public final Map<String,​String> headerMap
        The MIME header fields, where each key is the field-name (without the terminating ":") and the corresponding value is the field-body-contents.
      • data

        public final byte[] data
        The request data that will be posted (uploaded) to the server.
    • Constructor Detail

      • SimplePostData

        public SimplePostData​(byte[] data)
        Instantiates a simple post data object.
        Parameters:
        data - the data to be posted.