@Test(expected = IllegalArgumentException.class) public void testHasHandlerForRequiresNonNullRequest() { this.testee.hasHandlerFor(null); }
public boolean hasHandlerFor(HttpServletRequest request) { if (request == null) { throw new IllegalArgumentException("Method argument request must not be null."); } if (!this.initialized) { return false; } try { return super.getHandler(request) != null; } catch (Exception e) { throw new RuntimeException("Unable to lookup a handler for " + request + ".", e); } }
BundleSpecificDispatcherServlet extends DispatcherServlet implements ApplicationListener<ApplicationEvent> { public boolean hasHandlerFor(HttpServletRequest request) { if (request == null) { throw new IllegalArgumentException("Method argument request must not be null."); } if (!this.initialized) { return false; } try { return super.getHandler(request) != null; } catch (Exception e) { throw new RuntimeException("Unable to lookup a handler for " + request + ".", e); } } }
BundleSpecificDispatcherServlet extends DispatcherServlet implements ApplicationListener<ApplicationEvent> { public boolean hasHandlerFor(HttpServletRequest request) { if (request == null) { throw new IllegalArgumentException("Method argument request must not be null."); } if (!this.initialized) { return false; } try { return super.getHandler(request) != null; } catch (Exception e) { throw new RuntimeException("Unable to lookup a handler for " + request + ".", e); } } BundleSpecificDispatcherServlet(ServletConfig servletConfig,
                                    ServletResolver servletResolver,
                                    ConfigurableListableBeanFactory factory); }
BundleSpecificDispatcherServlet extends DispatcherServlet implements ApplicationListener<ApplicationEvent> { public boolean hasHandlerFor(HttpServletRequest request) { if (request == null) { throw new IllegalArgumentException("Method argument request must not be null."); } if (!this.initialized) { return false; } try { return super.getHandler(request) != null; } catch (Exception e) { throw new RuntimeException("Unable to lookup a handler for " + request + ".", e); } } BundleSpecificDispatcherServlet(ServletConfig servletConfig,
                                    ServletResolver servletResolver,
                                    ConfigurableListableBeanFactory factory); @Override void onApplicationEvent(@Nonnull ApplicationEvent event); @Override ServletConfig getServletConfig(); boolean hasHandlerFor(HttpServletRequest request); }
BundleSpecificDispatcherServlet extends DispatcherServlet implements ApplicationListener<ApplicationEvent> { public boolean hasHandlerFor(HttpServletRequest request) { if (request == null) { throw new IllegalArgumentException("Method argument request must not be null."); } if (!this.initialized) { return false; } try { return super.getHandler(request) != null; } catch (Exception e) { throw new RuntimeException("Unable to lookup a handler for " + request + ".", e); } } BundleSpecificDispatcherServlet(ServletConfig servletConfig,
                                    ServletResolver servletResolver,
                                    ConfigurableListableBeanFactory factory); @Override void onApplicationEvent(@Nonnull ApplicationEvent event); @Override ServletConfig getServletConfig(); boolean hasHandlerFor(HttpServletRequest request);  }