public class EndpointsModule
extends com.google.inject.servlet.ServletModule
ServletModule.configureServlets().| Constructor and Description |
|---|
EndpointsModule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureEndpoints(java.lang.String urlPattern,
java.lang.Iterable<? extends java.lang.Class<?>> serviceClasses)
Configure Endpoints given a list of service classes using
GuiceEndpointsServlet. |
protected void |
configureEndpoints(java.lang.String urlPattern,
java.lang.Iterable<? extends java.lang.Class<?>> serviceClasses,
boolean useLegacyServlet)
Deprecated.
the legacy servlet is no longer available.
|
protected void |
configureEndpoints(java.lang.String urlPattern,
com.google.api.server.spi.ServletInitializationParameters initParameters)
Configure Endpoints given
ServletInitializationParameters using
GuiceEndpointsServlet. |
protected void |
configureEndpoints(java.lang.String urlPattern,
com.google.api.server.spi.ServletInitializationParameters initParameters,
boolean useLegacyServlet)
Configure Endpoints given
ServletInitializationParameters. |
configure, configureServlets, filter, filterRegex, getServletContext, serve, serveRegexaddError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingprotected void configureEndpoints(java.lang.String urlPattern,
java.lang.Iterable<? extends java.lang.Class<?>> serviceClasses)
GuiceEndpointsServlet.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.serviceClasses - the list of backend classes to be included@Deprecated
protected void configureEndpoints(java.lang.String urlPattern,
java.lang.Iterable<? extends java.lang.Class<?>> serviceClasses,
boolean useLegacyServlet)
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.serviceClasses - the list of backend classes to be includeduseLegacyServlet - whether or not to use the old style servletprotected void configureEndpoints(java.lang.String urlPattern,
com.google.api.server.spi.ServletInitializationParameters initParameters)
ServletInitializationParameters using
GuiceEndpointsServlet.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 issueinitParameters - the initialization parameters. Must include service classes to be usefulprotected void configureEndpoints(java.lang.String urlPattern,
com.google.api.server.spi.ServletInitializationParameters initParameters,
boolean useLegacyServlet)
ServletInitializationParameters.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 issueinitParameters - the initialization parameters. Must include service classes to be usefuluseLegacyServlet - whether or not to use the old style servlet