pivot.web
Class PutQuery
java.lang.Object
pivot.util.concurrent.Task<V>
pivot.io.IOTask<V>
pivot.web.Query<java.lang.Void>
pivot.web.PutQuery
public class PutQuery
- extends Query<java.lang.Void>
Executes an HTTP PUT operation.
- Author:
- gbrown
Constructor Summary |
PutQuery(java.lang.String hostname,
int port,
java.lang.String path,
boolean secure)
|
PutQuery(java.lang.String hostname,
java.lang.String path)
|
Method Summary |
java.lang.Void |
execute()
Synchronously executes the PUT operation. |
java.lang.Object |
getValue()
Returns the value that will be PUT to the server when the query is
executed. |
void |
setValue(java.lang.Object value)
Sets the value that will be PUT to the server when the query is
executed. |
Methods inherited from class pivot.web.Query |
execute, getArguments, getBytesExpected, getBytesReceived, getBytesSent, getHostname, getHostnameVerifier, getLocation, getPath, getPort, getQueryListeners, getRequestProperties, getResponseProperties, getSerializer, isSecure, setHostnameVerifier, setSerializer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
getValue
public java.lang.Object getValue()
- Returns the value that will be PUT to the server when the query is
executed.
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.Void execute()
throws QueryException
- Synchronously executes the PUT operation.
- Specified by:
execute
in class Task<java.lang.Void>
- Returns:
- The result of the task's execution.
- Throws:
QueryException