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) voidvoidvoiddestroy()voidvoidfireSessionIdChanged(String oldSessionId) Collection<org.eclipse.equinox.http.servlet.internal.context.ContextController> getDefaultContextSelectFilter(ServiceReference<?> httpWhiteBoardService) org.eclipse.equinox.http.servlet.internal.context.DispatchTargetsgetDispatchTargets(String requestURI, String extension, String queryString, org.eclipse.equinox.http.servlet.internal.servlet.Match match, RequestInfoDTO requestInfoDTO) org.eclipse.equinox.http.servlet.internal.context.DispatchTargetsgetDispatchTargets(String pathString, RequestInfoDTO requestInfoDTO) org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionTrackerjavax.servlet.ServletContextMap<ServiceReference<Preprocessor>, org.eclipse.equinox.http.servlet.internal.registration.PreprocessorRegistration> voidbooleanisDefaultContext(org.eclipse.equinox.http.servlet.internal.context.ContextController contextController) booleanisFailedErrorPageDTO(ServiceReference<?> serviceReference) booleanisFailedResourceDTO(ServiceReference<?> serviceReference) booleanisFailedServletDTO(ServiceReference<?> serviceReference) booleanmatches(ServiceReference<?> serviceReference) booleanmatchesAnyContext(ServiceReference<?> serviceReference) voidmodifiedService(ServiceReference<ServletContextHelper> serviceReference, AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController> contextController) voidopen()voidrecordFailedErrorPageDTO(ServiceReference<?> serviceReference, FailedErrorPageDTO failedErrorPageDTO) voidrecordFailedFilterDTO(ServiceReference<javax.servlet.Filter> serviceReference, FailedFilterDTO failedFilterDTO) voidrecordFailedListenerDTO(ServiceReference<EventListener> serviceReference, FailedListenerDTO failedListenerDTO) voidrecordFailedPreprocessorDTO(ServiceReference<Preprocessor> serviceReference, FailedPreprocessorDTO failedPreprocessorDTO) voidrecordFailedResourceDTO(ServiceReference<?> serviceReference, FailedResourceDTO failedResourceDTO) voidrecordFailedServletContextDTO(ServiceReference<ServletContextHelper> serviceReference, long shadowingServiceId, int failureReason) voidrecordFailedServletDTO(ServiceReference<?> serviceReference, FailedServletDTO failedServletDTO) voidregisterHttpServiceFilter(Bundle bundle, String alias, javax.servlet.Filter filter, Dictionary<String, String> initparams, org.eclipse.equinox.http.servlet.internal.context.HttpContextHolder httpContextHolder) voidregisterHttpServiceResources(Bundle bundle, String alias, String name, org.eclipse.equinox.http.servlet.internal.context.HttpContextHolder httpContextHolder) voidregisterHttpServiceServlet(Bundle bundle, String alias, javax.servlet.Servlet servlet, Dictionary<?, ?> initparams, org.eclipse.equinox.http.servlet.internal.context.HttpContextHolder httpContextHolder) voidremovedService(ServiceReference<ServletContextHelper> serviceReference, AtomicReference<org.eclipse.equinox.http.servlet.internal.context.ContextController> contextControllerRef) voidremoveFailedErrorPageDTO(ServiceReference<javax.servlet.Servlet> serviceReference) voidremoveFailedFilterDTO(ServiceReference<javax.servlet.Filter> serviceReference) voidremoveFailedListenerDTO(ServiceReference<EventListener> serviceReference) voidremoveFailedPreprocessorDTO(ServiceReference<Preprocessor> serviceReference) voidremoveFailedResourceDTO(ServiceReference<Object> serviceReference) voidremoveFailedServletDTO(ServiceReference<javax.servlet.Servlet> serviceReference) voidsessionDestroyed(String sessionId) voidsetHsrRegistration(ServiceRegistration<HttpServiceRuntime> hsrRegistration) voidunregisterHttpServiceAlias(Bundle bundle, String alias) voidunregisterHttpServiceFilter(Bundle bundle, javax.servlet.Filter filter) voidunregisterHttpServiceObjects(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:
addingServicein 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:
calculateRequestInfoDTOin 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:
getRuntimeDTOin 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:
modifiedServicein 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:
removedServicein 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:
NamespaceExceptionjavax.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()
-