Class PutQuery


  • public class PutQuery
    extends Query<java.lang.Boolean>
    Executes an HTTP PUT operation.
    • Constructor Detail

      • PutQuery

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

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

        public PutQuery​(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 PUT 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 PUT to the server when the query is executed.
        Parameters:
        value - The value to PUT to the server.
      • execute

        public java.lang.Boolean execute()
                                  throws QueryException
        Synchronously executes the PUT operation.
        Specified by:
        execute in class Task<java.lang.Boolean>
        Returns:
        true if the operation resulted in the creation of a server resource; false, otherwise.
        Throws:
        QueryException