Class HttpServiceImpl
java.lang.Object
org.eclipse.equinox.http.servlet.internal.HttpServiceImpl
- All Implemented Interfaces:
ExtendedHttpService,HttpService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterFilter(String alias, javax.servlet.Filter filter, Dictionary<String, String> initparams, HttpContext httpContext) voidregisterResources(String alias, String name, HttpContext httpContext) voidregisterServlet(String alias, javax.servlet.Servlet servlet, Dictionary<?, ?> initparams, HttpContext httpContext) voidunregister(String alias) voidunregisterFilter(javax.servlet.Filter filter) Unregisters a previous filter registration done by theregisterFiltermethods.
-
Constructor Details
-
HttpServiceImpl
-
-
Method Details
-
createDefaultHttpContext
- Specified by:
createDefaultHttpContextin interfaceHttpService- See Also:
-
registerFilter
public void registerFilter(String alias, javax.servlet.Filter filter, Dictionary<String, String> initparams, HttpContext httpContext) - Specified by:
registerFilterin interfaceExtendedHttpService- Parameters:
alias- name in the URI namespace at which the filter is registeredfilter- the filter object to registerinitparams- initialization arguments for the filter ornullif there are none. This argument is used by the filter'sFilterConfigobject.httpContext- theHttpContextobject for the registered filter, ornullif a defaultHttpContextis to be created and used.- See Also:
-
registerResources
- Specified by:
registerResourcesin interfaceHttpService- See Also:
-
registerServlet
public void registerServlet(String alias, javax.servlet.Servlet servlet, Dictionary<?, ?> initparams, HttpContext httpContext) - Specified by:
registerServletin interfaceHttpService- See Also:
-
unregister
- Specified by:
unregisterin interfaceHttpService- See Also:
-
unregisterFilter
public void unregisterFilter(javax.servlet.Filter filter) Description copied from interface:ExtendedHttpServiceUnregisters a previous filter registration done by theregisterFiltermethods.After this call, the registered filter will no longer be available. The Http Service must call the
destroymethod 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, thedestroymethod 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 thedestroymethod of the filter to be called. This can be done in theBundleActivator.stopmethod of the bundle registering the filter.- Specified by:
unregisterFilterin interfaceExtendedHttpService- Parameters:
filter- the filter object to unregister- See Also:
-