質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top