Frage

Is there anyway to perform some action every time there is an HTTP request on a grizzly HttpServer? Is there maybe an event to subscribe to or something?

I have tried subclassing the HttpHandler classes I need and overriding the service() method to do the work I need done, but one of the HttpHandler classes I need is declared final.

Any ideas?

War es hilfreich?

Lösung

You might want to check out the HttpServerProbe

Probes may be registered with the HttpServerConfiguration object associated with your HttpServer instance.

Note that this may not be sufficient for your needs, in which case, it would be useful if you could provide details on what you're trying to accomplish.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top