HomeSort by relevance Sort by last modified time
    Searched refs:SERVLET (Results 1 - 9 of 9) sorted by null

  /external/guice/extensions/servlet/test/com/google/inject/servlet/
ExtensionSpiTest.java 17 package com.google.inject.servlet;
19 import static com.google.inject.servlet.UriPatternType.REGEX;
20 import static com.google.inject.servlet.UriPatternType.SERVLET;
29 import com.google.inject.servlet.ServletSpiVisitor.Params;
81 new Params("/class", Key.get(DummyFilterImpl.class), ImmutableMap.of(), SERVLET),
82 new Params("/class/2", Key.get(DummyFilterImpl.class), ImmutableMap.of(), SERVLET),
83 new Params("/key", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of(), SERVLET),
84 new Params("/key/2", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of(), SERVLET),
85 new Params("/instance", dummyFilter1, ImmutableMap.of(), SERVLET),
    [all...]
UriPatternTypeTest.java 18 package com.google.inject.servlet;
25 UriPatternMatcher pattern = UriPatternType.get(UriPatternType.SERVLET, "/foo/*");
33 pattern = UriPatternType.get(UriPatternType.SERVLET, "*.bar");
41 pattern = UriPatternType.get(UriPatternType.SERVLET, "/asdf");
ServletDefinitionTest.java 17 package com.google.inject.servlet;
38 import javax.servlet.ServletConfig;
39 import javax.servlet.ServletContext;
40 import javax.servlet.ServletException;
41 import javax.servlet.http.HttpServlet;
42 import javax.servlet.http.HttpServletRequest;
43 import javax.servlet.http.HttpServletResponse;
76 Key.get(HttpServlet.class), UriPatternType.get(UriPatternType.SERVLET, pattern), initParams, null);
112 Key.get(HttpServlet.class), UriPatternType.get(UriPatternType.SERVLET, pattern),
FilterDefinitionTest.java 1 package com.google.inject.servlet;
23 import javax.servlet.Filter;
24 import javax.servlet.FilterChain;
25 import javax.servlet.FilterConfig;
26 import javax.servlet.ServletContext;
27 import javax.servlet.ServletException;
28 import javax.servlet.ServletRequest;
29 import javax.servlet.ServletResponse;
30 import javax.servlet.http.HttpServletRequest;
71 UriPatternType.get(UriPatternType.SERVLET, pattern), initParams, null)
    [all...]
ServletPipelineRequestDispatcherTest.java 17 package com.google.inject.servlet;
19 import static com.google.inject.servlet.ManagedServletPipeline.REQUEST_DISPATCHER_REQUEST;
47 import javax.servlet.RequestDispatcher;
48 import javax.servlet.ServletException;
49 import javax.servlet.http.HttpServlet;
50 import javax.servlet.http.HttpServletRequest;
51 import javax.servlet.http.HttpServletResponse;
55 * servlet spec).
68 Key.get(HttpServlet.class), UriPatternType.get(UriPatternType.SERVLET, pattern),
113 // Have to init the Servlet before we can dispatch to it
    [all...]
ServletDefinitionPathsTest.java 17 package com.google.inject.servlet;
19 import static com.google.inject.servlet.ManagedServletPipeline.REQUEST_DISPATCHER_REQUEST;
37 import javax.servlet.ServletException;
38 import javax.servlet.http.HttpServlet;
39 import javax.servlet.http.HttpServletRequest;
40 import javax.servlet.http.HttpServletResponse;
43 * Ensures servlet spec compliance for CGI-style variables and general
78 //get an instance of this servlet
99 UriPatternType.get(UriPatternType.SERVLET, mapping), new HashMap<String, String>(), null);
104 assertTrue("Servlet did not run!", run[0])
    [all...]
  /external/guice/extensions/servlet/src/com/google/inject/servlet/
UriPatternType.java 16 package com.google.inject.servlet;
27 SERVLET, REGEX;
31 case SERVLET:
50 * Matches URIs using the pattern grammar of the Servlet API and web.xml.
108 return UriPatternType.SERVLET;
134 // with the servlet style mapping where the path is a capture of
FiltersModuleBuilder.java 16 package com.google.inject.servlet;
26 import javax.servlet.Filter;
44 return new FilterKeyBindingBuilderImpl(patterns, UriPatternType.SERVLET);
ServletsModuleBuilder.java 16 package com.google.inject.servlet;
28 import javax.servlet.http.HttpServlet;
33 * {@link com.google.inject.servlet.FiltersModuleBuilder}.
48 return new ServletKeyBindingBuilderImpl(urlPatterns, UriPatternType.SERVLET);
73 public void with(HttpServlet servlet) {
74 with(servlet, new HashMap<String, String>());
92 binder.addError("More than one servlet was mapped to the same URI pattern: " + pattern);
101 public void with(HttpServlet servlet,
104 binder.bind(servletKey).toInstance(servlet);
105 with(servletKey, initParams, servlet);
    [all...]

Completed in 57 milliseconds