Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] ContextHandlerCollection as a child handler of ContextHandler

Hi John, 
I don't believe Handlers have Filters like Servlets, but I suppose a basic implementation would be to put an AbstractHandler somewhere in the handler chaining and have it check the request path, then have the ContextHandlerCollection have each ContextHandler with its full path including the '/internal' bit. 

On Fri, Sep 12, 2014 at 12:10 PM, John English <john.foreign@xxxxxxxxx> wrote:
On 12/09/2014 12:06, Neil Williams wrote:
The reason for this is that we have a few context handlers that provide some
read only internal information about the server, such as ThreadPool stats, a
jetty StatisticsHandler, we don't want these to be publicly viewable but want
them all to exist on a base context, something like /internal/httpstats,
/internal/dbstats.  That way we can stick an authentication check on the handler
after /internal/ ContextHandler but before it hits the ContextHandlerCollection.

Couldn't you use a filter to do this?
John English

jetty-users mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top