public interface ApplicationProvider
BaseApplicationProvider
implementation. You may extend it if necessary, or for complete control,
provide your own implementation of ApplicationProvider
. A server
servlet will be created and registered with the web container at the
specified alias. The application will then be registered with the servlet.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVLET_CONFIG_ATTRIBUTE
The key constant that may be used to look up the
ServletConfig instance from the child context |
static java.lang.String |
SERVLET_CONTEXT_ATTRIBUTE
The key constant that may be used to look up the
ServletContext instance from the child context |
Modifier and Type | Method and Description |
---|---|
Application |
createApplication(Context context) |
java.lang.String |
getAlias()
The alias is passed to
HttpService.registerServlet(String alias, Servlet servlet, Dictionary initparams, HttpContext context)
when the servlet is registered. |
org.osgi.service.http.HttpContext |
getContext()
The context is passed to
HttpService.registerServlet(String alias, Servlet servlet, Dictionary initparams, HttpContext context)
when the servlet is registered. |
java.util.Dictionary<java.lang.String,java.lang.Object> |
getInitParms()
The parameters are passed to
HttpService.registerServlet(String alias, Servlet servlet, Dictionary initparams, HttpContext context)
when the servlet is registered. |
static final java.lang.String SERVLET_CONFIG_ATTRIBUTE
ServletConfig
instance from the child contextstatic final java.lang.String SERVLET_CONTEXT_ATTRIBUTE
ServletContext
instance from the child contextApplication createApplication(Context context)
java.lang.String getAlias()
HttpService.registerServlet(String alias, Servlet servlet, Dictionary initparams, HttpContext context)
when the servlet is registered.org.osgi.service.http.HttpContext getContext()
HttpService.registerServlet(String alias, Servlet servlet, Dictionary initparams, HttpContext context)
when the servlet is registered.java.util.Dictionary<java.lang.String,java.lang.Object> getInitParms()
HttpService.registerServlet(String alias, Servlet servlet, Dictionary initparams, HttpContext context)
when the servlet is registered.Copyright © 2005-2020 Restlet.