public interface ServiceFilter
Osm2poService.handle(HttpExchange)
gerufen.RateLimitFilter
,
HttpLogFilter
Modifier and Type | Method and Description |
---|---|
void |
init(Config config,
int index)
Quasi-Konstruktor wird von
Osm2poService gerufen. |
void |
postHandle(com.sun.net.httpserver.HttpExchange htx,
boolean success)
Wird vor dem Schreiben von HTTP-Header und -Response gerufen.
|
boolean |
preHandle(com.sun.net.httpserver.HttpExchange htx,
java.lang.String endpoint)
Filtert einen HTTP-Request vor der Verarbeitung.
|
void |
shutDown()
Signal, dass Server gleich runterfaehrt.
|
void init(Config config, int index)
Osm2poService
gerufen.config
- Config
index
- int Index in der Konfigurationboolean preHandle(com.sun.net.httpserver.HttpExchange htx, java.lang.String endpoint) throws java.lang.Exception
htx
- HttpExchange
endpoint
- optional name of the requested resourceServiceException
- z.B. ServiceException
/ Auth-Fehlerjava.lang.Exception
void postHandle(com.sun.net.httpserver.HttpExchange htx, boolean success)
htx
- HttpExchange
success
- true: Response fehlerfrei erstellt, HTTP 200 wird gesendet.void shutDown()