Class PostQuery


  • public class PostQuery
    extends Query<java.net.URL>
    Executes an HTTP POST operation.
    • Constructor Detail

      • PostQuery

        public PostQuery​(java.lang.String hostname,
                         java.lang.String path)
      • PostQuery

        public PostQuery​(java.lang.String hostname,
                         int port,
                         java.lang.String path,
                         boolean secure)
      • PostQuery

        public PostQuery​(java.lang.String hostname,
                         int port,
                         java.lang.String path,
                         boolean secure,
                         java.util.concurrent.ExecutorService executorService)
    • Method Detail

      • getValue

        public java.lang.Object getValue()
        Returns the value that will be POSTed to the server when the query is executed.
        Returns:
        The value to send.
      • setValue

        public void setValue​(java.lang.Object value)
        Sets the value that will be POSTed to the server when the query is executed.
        Parameters:
        value - The value to POST to the server.
      • execute

        public java.net.URL execute()
                             throws QueryException
        Synchronously executes the POST operation.
        Specified by:
        execute in class Task<java.net.URL>
        Returns:
        A URL that uniquely identifies the location of the resource created on the server by the operation, or null if the server did not return a location.
        Throws:
        QueryException