Class HttpServiceImpl
java.lang.Object
org.eclipse.equinox.http.servlet.internal.HttpServiceImpl
- All Implemented Interfaces:
ExtendedHttpService
,HttpService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerFilter
(String alias, javax.servlet.Filter filter, Dictionary<String, String> initparams, HttpContext httpContext) void
registerResources
(String alias, String name, HttpContext httpContext) void
registerServlet
(String alias, javax.servlet.Servlet servlet, Dictionary<?, ?> initparams, HttpContext httpContext) void
unregister
(String alias) void
unregisterFilter
(javax.servlet.Filter filter) Unregisters a previous filter registration done by theregisterFilter
methods.
-
Constructor Details
-
HttpServiceImpl
-
-
Method Details
-
createDefaultHttpContext
- Specified by:
createDefaultHttpContext
in interfaceHttpService
- See Also:
-
registerFilter
public void registerFilter(String alias, javax.servlet.Filter filter, Dictionary<String, String> initparams, HttpContext httpContext) - Specified by:
registerFilter
in interfaceExtendedHttpService
- Parameters:
alias
- name in the URI namespace at which the filter is registeredfilter
- the filter object to registerinitparams
- initialization arguments for the filter ornull
if there are none. This argument is used by the filter'sFilterConfig
object.httpContext
- theHttpContext
object for the registered filter, ornull
if a defaultHttpContext
is to be created and used.- See Also:
-
registerResources
- Specified by:
registerResources
in interfaceHttpService
- See Also:
-
registerServlet
public void registerServlet(String alias, javax.servlet.Servlet servlet, Dictionary<?, ?> initparams, HttpContext httpContext) - Specified by:
registerServlet
in interfaceHttpService
- See Also:
-
unregister
- Specified by:
unregister
in interfaceHttpService
- See Also:
-
unregisterFilter
public void unregisterFilter(javax.servlet.Filter filter) Description copied from interface:ExtendedHttpService
Unregisters a previous filter registration done by theregisterFilter
methods.After this call, the registered filter will no longer be available. The Http Service must call the
destroy
method of the filter before returning.If the bundle which performed the registration is stopped or otherwise "unget"s the Http Service without calling
ExtendedHttpService.unregisterFilter(javax.servlet.Filter)
then the Http Service must automatically unregister the filter registration. However, thedestroy
method of the filter will not be called in this case since the bundle may be stopped.ExtendedHttpService.unregisterFilter(javax.servlet.Filter)
must be explicitly called to cause thedestroy
method of the filter to be called. This can be done in theBundleActivator.stop
method of the bundle registering the filter.- Specified by:
unregisterFilter
in interfaceExtendedHttpService
- Parameters:
filter
- the filter object to unregister- See Also:
-