public class RequestHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected OutputStream |
os |
protected static org.n52.wps.server.handler.RequestExecutor |
pool
Computation timeout in seconds
|
protected org.n52.wps.server.request.Request |
req |
protected String |
responseMimeType |
static String |
VERSION_ATTRIBUTE_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
RequestHandler() |
|
RequestHandler(InputStream is,
OutputStream os,
org.gcube.dataanalysis.wps.statisticalmanager.synchserver.mapping.EnvironmentVariableManager env)
Handles requests of type HTTP_POST (currently executeProcess).
|
|
RequestHandler(Map<String,String[]> params,
OutputStream os,
org.gcube.dataanalysis.wps.statisticalmanager.synchserver.mapping.EnvironmentVariableManager env)
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 org.n52.wps.server.handler.RequestExecutor pool
protected OutputStream os
protected String responseMimeType
protected org.n52.wps.server.request.Request req
protected RequestHandler()
public RequestHandler(Map<String,String[]> params, OutputStream os, org.gcube.dataanalysis.wps.statisticalmanager.synchserver.mapping.EnvironmentVariableManager env) 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, org.gcube.dataanalysis.wps.statisticalmanager.synchserver.mapping.EnvironmentVariableManager env) 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 © 2022. All Rights Reserved.