Package org.apache.pivot.web
Class DeleteQuery
- java.lang.Object
-
- org.apache.pivot.util.concurrent.Task<V>
-
- org.apache.pivot.io.IOTask<V>
-
- org.apache.pivot.web.Query<java.lang.Void>
-
- org.apache.pivot.web.DeleteQuery
-
public class DeleteQuery extends Query<java.lang.Void>
Executes an HTTP DELETE operation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.pivot.web.Query
Query.Method, Query.Status
-
Nested classes/interfaces inherited from class org.apache.pivot.io.IOTask
IOTask.MonitoredInputStream, IOTask.MonitoredOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description static Query.Method
METHOD
-
Fields inherited from class org.apache.pivot.web.Query
DEFAULT_PORT
-
Fields inherited from class org.apache.pivot.io.IOTask
bytesReceived, bytesSent
-
Fields inherited from class org.apache.pivot.util.concurrent.Task
abort, DEFAULT_EXECUTOR_SERVICE, timeout
-
-
Constructor Summary
Constructors Constructor Description DeleteQuery(java.lang.String hostname, int port, java.lang.String path, boolean secure)
DeleteQuery(java.lang.String hostname, int port, java.lang.String path, boolean secure, java.util.concurrent.ExecutorService executorService)
DeleteQuery(java.lang.String hostname, java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Void
execute()
Synchronously executes the DELETE operation.Query.Method
getMethod()
-
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 org.apache.pivot.util.concurrent.Task
abort, execute, execute, getBackgroundThread, getExecutorService, getFault, getResult, getTimeout, isPending, setTimeout
-
-
-
-
Field Detail
-
METHOD
public static final Query.Method METHOD
-
-
Constructor Detail
-
DeleteQuery
public DeleteQuery(java.lang.String hostname, java.lang.String path)
-
DeleteQuery
public DeleteQuery(java.lang.String hostname, int port, java.lang.String path, boolean secure)
-
DeleteQuery
public DeleteQuery(java.lang.String hostname, int port, java.lang.String path, boolean secure, java.util.concurrent.ExecutorService executorService)
-
-
Method Detail
-
getMethod
public Query.Method getMethod()
-
execute
public java.lang.Void execute() throws QueryException
Synchronously executes the DELETE operation.- Specified by:
execute
in classTask<java.lang.Void>
- Returns:
- The result of the task's execution.
- Throws:
QueryException
-
-