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