Pregunta

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?

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top