|
Restlet Framework 2.2.3 OSGi Environments |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationProvider
This is an OSGi service interface for registering Restlet applications with a
server servlet. Users are expected to register an instance as an OSGi
service. It is recommended that you use the 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.
Field Summary | |
---|---|
static String |
SERVLET_CONFIG_ATTRIBUTE
The key constant that may be used to look up the ServletConfig instance from the child context |
static String |
SERVLET_CONTEXT_ATTRIBUTE
The key constant that may be used to look up the ServletContext instance from the child context |
Method Summary | |
---|---|
Application |
createApplication(Context context)
|
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. |
Dictionary<String,Object> |
getInitParms()
The parameters are passed to HttpService.registerServlet(String alias, Servlet servlet, Dictionary initparams, HttpContext context)
when the servlet is registered. |
Field Detail |
---|
static final String SERVLET_CONFIG_ATTRIBUTE
ServletConfig
instance from the child context
static final String SERVLET_CONTEXT_ATTRIBUTE
ServletContext
instance from the child context
Method Detail |
---|
Application createApplication(Context context)
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.
Dictionary<String,Object> getInitParms()
HttpService.registerServlet(String alias, Servlet servlet, Dictionary initparams, HttpContext context)
when the servlet is registered.
|
Restlet Framework 2.2.3 OSGi Environments |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |