protected final FilterChain guiceFilterChain;
protected NetworkSwitcherRest(Injector injector, ResourceUrlPaths urlPaths) {
this.urlPaths = urlPaths;
GreazeFilterChain filters = injector.getInstance(GreazeFilterChain.class);
final GreazeDispatcherServlet dispatcher =
new GreazeDispatcherServlet(injector, urlPaths.getResourcePrefix(), filters);
this.guiceFilterChain = new FilterChain() {
@Override
public void doFilter(ServletRequest request, ServletResponse response) throws IOException,
ServletException {
dispatcher.service(request, response);
}
};
}