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 <[email protected]> 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 > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/jetty-users >
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
