Query.Method, Query.Status
IOTask.MonitoredInputStream, IOTask.MonitoredOutputStream
Modifier and Type | Field and Description |
---|---|
static Query.Method |
METHOD |
DEFAULT_PORT
bytesReceived, bytesSent
abort, DEFAULT_EXECUTOR_SERVICE, timeout
Constructor and Description |
---|
PostQuery(String hostname,
int port,
String path,
boolean secure) |
PostQuery(String hostname,
int port,
String path,
boolean secure,
ExecutorService executorService) |
PostQuery(String hostname,
String path) |
Modifier and Type | Method and Description |
---|---|
URL |
execute()
Synchronously executes the POST operation.
|
Query.Method |
getMethod() |
Object |
getValue()
Returns the value that will be POSTed to the server when the query is
executed.
|
void |
setValue(Object value)
Sets the value that will be POSTed to the server when the query is
executed.
|
execute, getBytesExpected, getBytesReceived, getBytesSent, getHostname, getHostnameVerifier, getLocation, getParameters, getPath, getPort, getProxy, getQueryListeners, getRequestHeaders, getResponseHeaders, getSerializer, getStatus, isSecure, setHostnameVerifier, setProxy, setSerializer
abort, execute, execute, getExecutorService, getFault, getResult, getTimeout, isPending, setTimeout
public static final Query.Method METHOD
public PostQuery(String hostname, int port, String path, boolean secure, ExecutorService executorService)
public Query.Method getMethod()
public Object getValue()
public void setValue(Object value)
value
- The value to POST to the server.public URL execute() throws QueryException
execute
in class Task<URL>
QueryException