/** * urlPatterns - Any Servlet-style patterns. examples: /*, /html/*, *.html, etc. Since: 4.1 * * @param urlPatterns * The url pattern to apply * * @return The system serving at the generated address */ public ServletKeyBindingBuilder serve$(Iterable<String> urlPatterns) { return super.serve(urlPatterns); }
/** * urlPatterns - Any Servlet-style patterns. examples: /*, /html/*, *.html, etc. Since: 4.1 * * @param urlPattern * The url pattern * @param morePatterns * The url pattern * * @return the key builder */ public ServletKeyBindingBuilder serve$(String urlPattern, String... morePatterns) { return super.serve(urlPattern, morePatterns); }
/** * urlPatterns - Any Servlet-style patterns. examples: /*, /html/*, *.html, etc. Since: 4.1 * * @param urlPatterns * The url pattern to apply * * @return The system serving at the generated address */ public ServletKeyBindingBuilder serve$(Iterable<String> urlPatterns) { return super.serve(urlPatterns); }
/** * urlPatterns - Any Servlet-style patterns. examples: /*, /html/*, *.html, etc. Since: 4.1 * * @param urlPattern * The url pattern * @param morePatterns * The url pattern * * @return the key builder */ public ServletKeyBindingBuilder serve$(String urlPattern, String... morePatterns) { return super.serve(urlPattern, morePatterns); }
/** * Configure Endpoints given {@link ServletInitializationParameters}. * * @param urlPattern the URL pattern to configure the servlet on. For the legacy servlet, use * "/_ah/spi/*". For the new servlet, use "/_ah/api/*" if backwards compatibility is desired, or * any other pattern if compatibility is not an issue * @param initParameters the initialization parameters. Must include service classes to be useful * @param useLegacyServlet whether or not to use the old style servlet */ protected void configureEndpoints( String urlPattern, ServletInitializationParameters initParameters, boolean useLegacyServlet) { bind(ServiceMap.class) .toInstance(ServiceMap.create(binder(), initParameters.getServiceClasses())); if (useLegacyServlet) { logger.severe("the legacy servlet is no longer available."); } super.serve(urlPattern).with(GuiceEndpointsServlet.class, initParameters.asMap()); } }