public class RequestHandler extends Object
ExecuteRequest's for execution. The request is executed for a
short time, within the client will be served with an immediate result. If the
time runs out, the client will be served with a reference to the future
result. The client can come back later to retrieve the result. Uses
"computation_timeout_seconds" from wps.properties| Modifier and Type | Field and Description |
|---|---|
protected OutputStream |
os |
protected static RequestExecutor |
pool
Computation timeout in seconds
|
protected Request |
req |
protected String |
responseMimeType |
static String |
VERSION_ATTRIBUTE_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
RequestHandler() |
|
RequestHandler(InputStream is,
OutputStream os)
Handles requests of type HTTP_POST (currently executeProcess).
|
|
RequestHandler(Map<String,String[]> params,
OutputStream os)
Handles requests of type HTTP_GET (currently capabilities and
describeProcess).
|
| Modifier and Type | Method and Description |
|---|---|
String |
getResponseMimeType() |
void |
handle()
Handle a request after its type is determined.
|
protected void |
setResponseMimeType(ExecuteRequest req) |
public static final String VERSION_ATTRIBUTE_NAME
protected static RequestExecutor pool
protected OutputStream os
protected String responseMimeType
protected Request req
protected RequestHandler()
public RequestHandler(Map<String,String[]> params, OutputStream os) throws org.n52.wps.server.ExceptionReport
params - The client inputos - The OutputStream to write the response to.org.n52.wps.server.ExceptionReport - If the requested operation is not supportedpublic RequestHandler(InputStream is, OutputStream os) throws org.n52.wps.server.ExceptionReport
is - The client inputos - The OutputStream to write the response to.org.n52.wps.server.ExceptionReportpublic void handle()
throws org.n52.wps.server.ExceptionReport
req - The request of the client.org.n52.wps.server.ExceptionReportprotected void setResponseMimeType(ExecuteRequest req)
public String getResponseMimeType()
Copyright © 2019. All Rights Reserved.