Searched refs:ServletDefinition (Results 1 – 6 of 6) sorted by relevance
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
D | ManagedServletPipeline.java | 48 private final ServletDefinition[] servletDefinitions; 49 private static final TypeLiteral<ServletDefinition> SERVLET_DEFS = 50 TypeLiteral.get(ServletDefinition.class); 68 private ServletDefinition[] collectServletDefinitions(Injector injector) { in collectServletDefinitions() 69 List<ServletDefinition> servletDefinitions = Lists.newArrayList(); in collectServletDefinitions() 70 for (Binding<ServletDefinition> entry : injector.findBindingsByType(SERVLET_DEFS)) { in collectServletDefinitions() 75 return servletDefinitions.toArray(new ServletDefinition[servletDefinitions.size()]); in collectServletDefinitions() 81 for (ServletDefinition servletDefinition : servletDefinitions) { in init() 90 for (ServletDefinition servletDefinition : servletDefinitions) { in service() 102 for (ServletDefinition servletDefinition : servletDefinitions) { in destroy() [all …]
|
D | ServletDefinition.java | 54 class ServletDefinition implements ProviderWithExtensionVisitor<ServletDefinition> { class 65 public ServletDefinition(String pattern, Key<? extends HttpServlet> servletKey, in ServletDefinition() method in ServletDefinition 74 public ServletDefinition get() { in get()
|
D | ServletsModuleBuilder.java | 94 binder.bind(Key.get(ServletDefinition.class, UniqueAnnotations.create())).toProvider( in with() 95 new ServletDefinition(pattern, servletKey, UriPatternType in with()
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | ServletPipelineRequestDispatcherTest.java | 67 final ServletDefinition servletDefinition = new ServletDefinition(pattern, in testIncludeManagedServlet() 101 final Key<ServletDefinition> servetDefsKey = Key in testIncludeManagedServlet() 102 .get(TypeLiteral.get(ServletDefinition.class)); in testIncludeManagedServlet() 104 Binding<ServletDefinition> mockBinding = createMock(Binding.class); in testIncludeManagedServlet() 106 .andReturn(ImmutableList.<Binding<ServletDefinition>>of(mockBinding)); in testIncludeManagedServlet() 107 Provider<ServletDefinition> bindingProvider = Providers.of(servletDefinition); in testIncludeManagedServlet() 130 final ServletDefinition servletDefinition = new ServletDefinition(pattern, in testForwardToManagedServlet() 171 final Key<ServletDefinition> servetDefsKey = Key in testForwardToManagedServlet() 172 .get(TypeLiteral.get(ServletDefinition.class)); in testForwardToManagedServlet() 174 Binding<ServletDefinition> mockBinding = createMock(Binding.class); in testForwardToManagedServlet() [all …]
|
D | ServletDefinitionTest.java | 75 final ServletDefinition servletDefinition = new ServletDefinition(pattern, in testServletInitAndConfig() 111 final ServletDefinition servletDefinition = new ServletDefinition(pattern, in testServiceWithContextPath()
|
D | ServletDefinitionPathsTest.java | 98 ServletDefinition servletDefinition = new ServletDefinition(mapping, Key.get(HttpServlet.class), in servletPath() 198 ServletDefinition servletDefinition = new ServletDefinition(mapping, Key.get(HttpServlet.class), in pathInfoWithServletStyleMatching() 298 ServletDefinition servletDefinition = new ServletDefinition(mapping, Key.get(HttpServlet.class), in pathInfoWithRegexMatching()
|