org.apache.pivot.web
Class GetQuery
java.lang.Object
org.apache.pivot.util.concurrent.Task<V>
org.apache.pivot.io.IOTask<V>
org.apache.pivot.web.Query<Object>
org.apache.pivot.web.GetQuery
public class GetQuery
- extends Query<Object>
Executes an HTTP GET operation.
| Nested classes/interfaces inherited from class org.apache.pivot.io.IOTask |
org.apache.pivot.io.IOTask.MonitoredInputStream, org.apache.pivot.io.IOTask.MonitoredOutputStream |
| 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 |
| 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, getExecutorService, getFault, getResult, getTimeout, isPending, setTimeout |
| 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
GetQuery
public GetQuery(String hostname,
String path)
GetQuery
public GetQuery(String hostname,
int port,
String path,
boolean secure)
GetQuery
public GetQuery(String hostname,
int port,
String path,
boolean secure,
ExecutorService executorService)
getMethod
public Query.Method getMethod()
- Specified by:
getMethod in class Query<Object>
execute
public Object execute()
throws QueryException
- Synchronously executes the GET operation.
- Specified by:
execute in class org.apache.pivot.util.concurrent.Task<Object>
- Returns:
- The result of the operation, deserialized using the query's serializer.
- Throws:
QueryException