public interface ServiceHandler
Osm2poService
.handle(String, Config, Graph, Properties, ServiceResourcesChecker)
Modifier and Type | Field and Description |
---|---|
static int |
HTTP_200
OK
|
static int |
HTTP_202
OK (accepted) - convention: show in MessageBox instead
|
static int |
HTTP_404
Not Found
|
static int |
HTTP_501
Unsupported Operation
|
static java.lang.String |
MIME_JSON |
static java.lang.String |
MIME_TEXT |
Modifier and Type | Method and Description |
---|---|
ServiceResponse |
handle(java.lang.String cmd,
Config config,
Graph graph,
java.util.Properties request,
ServiceResourcesChecker src)
Handler fuer
Osm2poService . |
static final java.lang.String MIME_TEXT
static final java.lang.String MIME_JSON
static final int HTTP_200
static final int HTTP_202
static final int HTTP_404
static final int HTTP_501
ServiceResponse handle(java.lang.String cmd, Config config, Graph graph, java.util.Properties request, ServiceResourcesChecker src) throws java.lang.Exception
Osm2poService
.cmd
- String beliebiger Kommando-Name.config
- Config
graph
- Graph
request
- Query-Parameter als Properties
src
- ServiceResourcesChecker
ServiceResponse
oder NULL fuer "Nicht verarbeitet".java.lang.Exception