Class HttpServiceRuntimeImpl
java.lang.Object
org.eclipse.equinox.http.servlet.internal.HttpServiceRuntimeImpl
- All Implemented Interfaces:
HttpServiceRuntime
,ServiceTrackerCustomizer<ServletContextHelper,
AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController>>
public class HttpServiceRuntimeImpl
extends Object
implements HttpServiceRuntime, ServiceTrackerCustomizer<ServletContextHelper,AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController>>
- Author:
- Raymond Augé
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHttpServiceRuntimeImpl
(BundleContext trackingContext, BundleContext consumingContext, javax.servlet.ServletContext parentServletContext, Dictionary<String, Object> attributes) -
Method Summary
Modifier and TypeMethodDescriptionadaptContextPath
(String contextPath, ServiceReference<ServletContextHelper> helper) AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController>
addingService
(ServiceReference<ServletContextHelper> serviceReference) void
void
void
destroy()
void
void
fireSessionIdChanged
(String oldSessionId) Collection<org.eclipse.equinox.http.servlet.internal.context.ContextController>
getDefaultContextSelectFilter
(ServiceReference<?> httpWhiteBoardService) org.eclipse.equinox.http.servlet.internal.context.DispatchTargets
getDispatchTargets
(String requestURI, String extension, String queryString, org.eclipse.equinox.http.servlet.internal.servlet.Match match, RequestInfoDTO requestInfoDTO) org.eclipse.equinox.http.servlet.internal.context.DispatchTargets
getDispatchTargets
(String pathString, RequestInfoDTO requestInfoDTO) org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionTracker
javax.servlet.ServletContext
Map<ServiceReference<Preprocessor>,
org.eclipse.equinox.http.servlet.internal.registration.PreprocessorRegistration> void
boolean
isDefaultContext
(org.eclipse.equinox.http.servlet.internal.context.ContextController contextController) boolean
isFailedErrorPageDTO
(ServiceReference<?> serviceReference) boolean
isFailedResourceDTO
(ServiceReference<?> serviceReference) boolean
isFailedServletDTO
(ServiceReference<?> serviceReference) boolean
matches
(ServiceReference<?> serviceReference) boolean
matchesAnyContext
(ServiceReference<?> serviceReference) void
modifiedService
(ServiceReference<ServletContextHelper> serviceReference, AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController> contextController) void
open()
void
recordFailedErrorPageDTO
(ServiceReference<?> serviceReference, FailedErrorPageDTO failedErrorPageDTO) void
recordFailedFilterDTO
(ServiceReference<javax.servlet.Filter> serviceReference, FailedFilterDTO failedFilterDTO) void
recordFailedListenerDTO
(ServiceReference<EventListener> serviceReference, FailedListenerDTO failedListenerDTO) void
recordFailedPreprocessorDTO
(ServiceReference<Preprocessor> serviceReference, FailedPreprocessorDTO failedPreprocessorDTO) void
recordFailedResourceDTO
(ServiceReference<?> serviceReference, FailedResourceDTO failedResourceDTO) void
recordFailedServletContextDTO
(ServiceReference<ServletContextHelper> serviceReference, long shadowingServiceId, int failureReason) void
recordFailedServletDTO
(ServiceReference<?> serviceReference, FailedServletDTO failedServletDTO) void
registerHttpServiceFilter
(Bundle bundle, String alias, javax.servlet.Filter filter, Dictionary<String, String> initparams, org.eclipse.equinox.http.servlet.internal.context.HttpContextHolder httpContextHolder) void
registerHttpServiceResources
(Bundle bundle, String alias, String name, org.eclipse.equinox.http.servlet.internal.context.HttpContextHolder httpContextHolder) void
registerHttpServiceServlet
(Bundle bundle, String alias, javax.servlet.Servlet servlet, Dictionary<?, ?> initparams, org.eclipse.equinox.http.servlet.internal.context.HttpContextHolder httpContextHolder) void
removedService
(ServiceReference<ServletContextHelper> serviceReference, AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController> contextControllerRef) void
removeFailedErrorPageDTO
(ServiceReference<javax.servlet.Servlet> serviceReference) void
removeFailedFilterDTO
(ServiceReference<javax.servlet.Filter> serviceReference) void
removeFailedListenerDTO
(ServiceReference<EventListener> serviceReference) void
removeFailedPreprocessorDTO
(ServiceReference<Preprocessor> serviceReference) void
removeFailedResourceDTO
(ServiceReference<Object> serviceReference) void
removeFailedServletDTO
(ServiceReference<javax.servlet.Servlet> serviceReference) void
sessionDestroyed
(String sessionId) void
setHsrRegistration
(ServiceRegistration<HttpServiceRuntime> hsrRegistration) void
unregisterHttpServiceAlias
(Bundle bundle, String alias) void
unregisterHttpServiceFilter
(Bundle bundle, javax.servlet.Filter filter) void
unregisterHttpServiceObjects
(Bundle bundle)
-
Constructor Details
-
HttpServiceRuntimeImpl
public HttpServiceRuntimeImpl(BundleContext trackingContext, BundleContext consumingContext, javax.servlet.ServletContext parentServletContext, Dictionary<String, Object> attributes)
-
-
Method Details
-
open
public void open() -
addingService
public AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController> addingService(ServiceReference<ServletContextHelper> serviceReference) - Specified by:
addingService
in interfaceServiceTrackerCustomizer<ServletContextHelper,
AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController>>
-
adaptContextPath
-
getConsumingContext
-
getDefaultContextSelectFilter
-
isDefaultContext
public boolean isDefaultContext(org.eclipse.equinox.http.servlet.internal.context.ContextController contextController) -
isFailedResourceDTO
-
isFailedServletDTO
-
isFailedErrorPageDTO
-
calculateRequestInfoDTO
- Specified by:
calculateRequestInfoDTO
in interfaceHttpServiceRuntime
-
destroy
public void destroy() -
getDispatchTargets
public org.eclipse.equinox.http.servlet.internal.context.DispatchTargets getDispatchTargets(String pathString, RequestInfoDTO requestInfoDTO) -
getHttpSessionTracker
public org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionTracker getHttpSessionTracker() -
getRegisteredObjects
-
getTargetFilter
-
getParentServletContext
public javax.servlet.ServletContext getParentServletContext() -
getHttpServiceEndpoints
-
getRuntimeDTO
- Specified by:
getRuntimeDTO
in interfaceHttpServiceRuntime
-
debug
-
debug
-
error
-
matches
-
matchesAnyContext
-
modifiedService
public void modifiedService(ServiceReference<ServletContextHelper> serviceReference, AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController> contextController) - Specified by:
modifiedService
in interfaceServiceTrackerCustomizer<ServletContextHelper,
AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController>>
-
removedService
public void removedService(ServiceReference<ServletContextHelper> serviceReference, AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController> contextControllerRef) - Specified by:
removedService
in interfaceServiceTrackerCustomizer<ServletContextHelper,
AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController>>
-
getContextControllers
public Collection<org.eclipse.equinox.http.servlet.internal.context.ContextController> getContextControllers() -
getDispatchTargets
public org.eclipse.equinox.http.servlet.internal.context.DispatchTargets getDispatchTargets(String requestURI, String extension, String queryString, org.eclipse.equinox.http.servlet.internal.servlet.Match match, RequestInfoDTO requestInfoDTO) -
getServletContextDTOs
-
getPreprocessorDTOs
-
getPreprocessorRegistrations
public Map<ServiceReference<Preprocessor>,org.eclipse.equinox.http.servlet.internal.registration.PreprocessorRegistration> getPreprocessorRegistrations() -
registerHttpServiceFilter
public void registerHttpServiceFilter(Bundle bundle, String alias, javax.servlet.Filter filter, Dictionary<String, String> initparams, org.eclipse.equinox.http.servlet.internal.context.HttpContextHolder httpContextHolder) -
registerHttpServiceResources
public void registerHttpServiceResources(Bundle bundle, String alias, String name, org.eclipse.equinox.http.servlet.internal.context.HttpContextHolder httpContextHolder) throws NamespaceException - Throws:
NamespaceException
-
registerHttpServiceServlet
public void registerHttpServiceServlet(Bundle bundle, String alias, javax.servlet.Servlet servlet, Dictionary<?, ?> initparams, org.eclipse.equinox.http.servlet.internal.context.HttpContextHolder httpContextHolder) throws NamespaceException, javax.servlet.ServletException- Throws:
NamespaceException
javax.servlet.ServletException
-
unregisterHttpServiceAlias
-
unregisterHttpServiceFilter
-
unregisterHttpServiceObjects
-
getListenerFilter
-
getErrorPageFilter
-
getFilterFilter
-
getServletFilter
-
getResourceFilter
-
recordFailedErrorPageDTO
public void recordFailedErrorPageDTO(ServiceReference<?> serviceReference, FailedErrorPageDTO failedErrorPageDTO) -
recordFailedFilterDTO
public void recordFailedFilterDTO(ServiceReference<javax.servlet.Filter> serviceReference, FailedFilterDTO failedFilterDTO) -
recordFailedListenerDTO
public void recordFailedListenerDTO(ServiceReference<EventListener> serviceReference, FailedListenerDTO failedListenerDTO) -
recordFailedResourceDTO
public void recordFailedResourceDTO(ServiceReference<?> serviceReference, FailedResourceDTO failedResourceDTO) -
recordFailedServletContextDTO
public void recordFailedServletContextDTO(ServiceReference<ServletContextHelper> serviceReference, long shadowingServiceId, int failureReason) -
recordFailedServletDTO
public void recordFailedServletDTO(ServiceReference<?> serviceReference, FailedServletDTO failedServletDTO) -
recordFailedPreprocessorDTO
public void recordFailedPreprocessorDTO(ServiceReference<Preprocessor> serviceReference, FailedPreprocessorDTO failedPreprocessorDTO) -
removeFailedErrorPageDTO
-
removeFailedFilterDTO
-
removeFailedListenerDTO
-
removeFailedResourceDTO
-
removeFailedServletDTO
-
removeFailedPreprocessorDTO
-
fireSessionIdChanged
-
sessionDestroyed
-
setHsrRegistration
-
incrementServiceChangecount
public void incrementServiceChangecount()
-