ServletPathMatchesData. This facade is responsible for re-generating the matches if anything changes.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private volatile ServletPathMatchesData | |
| public static final String | |
| private final Deployment | |
| private final LRUCache | |
| private final LRUCache | |
| private final ResourceManager | |
| private volatile String[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static <K, V> void | |
| private ServletChain | createHandler(final DeploymentInfo deploymentInfo, final ServletHandler targetServlet, final Map<DispatcherType, List<ManagedFilter>> noExtension, final String servletPath, final boolean defaultServlet, MappingMatch mappingMatch, String pattern)
|
| private ServletPathMatch | |
| private ServletPathMatch | |
| private ServletPathMatchesData | |
| public ServletChain | |
| public ServletPathMatch | |
| public void | |
| public void | |
| private static boolean | |
| private static ServletPathMatches. | resolveServletForPath(final String path, final Map<String, ServletHandler> pathServlets, final Map<String, ServletHandler> extensionServlets, ServletHandler defaultServlet)
|
| private static ServletChain | servletChain(HttpHandler next, final ManagedServlet managedServlet, Map<DispatcherType, List<ManagedFilter>> filters, final String servletPath, final DeploymentInfo deploymentInfo, boolean defaultServlet, MappingMatch mappingMatch, String pattern)
|
| private ServletPathMatchesData | |
| public void | |
| private static HttpHandler |
| data | back to summary |
|---|---|
| private volatile ServletPathMatchesData data | |
| DEFAULT_SERVLET_NAME | back to summary |
|---|---|
| public static final String DEFAULT_SERVLET_NAME | |
| deployment | back to summary |
|---|---|
| private final Deployment deployment | |
| pathMatchCacheFixed | back to summary |
|---|---|
| private final LRUCache<String, ServletPathMatch> pathMatchCacheFixed | |
| pathMatchCacheResources | back to summary |
|---|---|
| private final LRUCache<String, ServletPathMatch> pathMatchCacheResources | |
| resourceManager | back to summary |
|---|---|
| private final ResourceManager resourceManager | |
| welcomePages | back to summary |
|---|---|
| private volatile String[] welcomePages | |
| ServletPathMatches | back to summary |
|---|---|
| public ServletPathMatches(final Deployment deployment) | |
| addToListMap | back to summary |
|---|---|
| private static <K, V> void addToListMap(final Map<K, List<V>> map, final K key, final V value) | |
| createHandler | back to summary |
|---|---|
| private ServletChain createHandler(final DeploymentInfo deploymentInfo, final ServletHandler targetServlet, final Map<DispatcherType, List<ManagedFilter>> noExtension, final String servletPath, final boolean defaultServlet, MappingMatch mappingMatch, String pattern) | |
| findWelcomeFile | back to summary |
|---|---|
| private ServletPathMatch findWelcomeFile(final String path, boolean requiresRedirect) | |
| findWelcomeServlet | back to summary |
|---|---|
| private ServletPathMatch findWelcomeServlet(final String path, boolean requiresRedirect) | |
| getData | back to summary |
|---|---|
| private ServletPathMatchesData getData() | |
| getServletHandlerByName | back to summary |
|---|---|
| public ServletChain getServletHandlerByName(final String name) | |
| getServletHandlerByPath | back to summary |
|---|---|
| public ServletPathMatch getServletHandlerByPath(final String path) | |
| initData | back to summary |
|---|---|
| public void initData() | |
| invalidate | back to summary |
|---|---|
| public void invalidate() | |
| isFilterApplicable | back to summary |
|---|---|
| private static boolean isFilterApplicable(final String path, final String filterPath) | |
| resolveServletForPath | back to summary |
|---|---|
| private static ServletPathMatches. | |
| servletChain | back to summary |
|---|---|
| private static ServletChain servletChain(HttpHandler next, final ManagedServlet managedServlet, Map<DispatcherType, List<ManagedFilter>> filters, final String servletPath, final DeploymentInfo deploymentInfo, boolean defaultServlet, MappingMatch mappingMatch, String pattern) | |
| setupServletChains | back to summary |
|---|---|
| private ServletPathMatchesData setupServletChains() Sets up the handlers in the servlet chain. We setup a chain for every path + extension match possibility. (i.e. if there a m path mappings and n extension mappings we have n*m chains). If a chain consists of only the default servlet then we add it as an async handler, so that resources can be served up directly without using blocking operations. Todo this logic is a bit convoluted at the moment, we should look at simplifying it | |
| setWelcomePages | back to summary |
|---|---|
| public void setWelcomePages(List<String> welcomePages) | |
| wrapHandlers | back to summary |
|---|---|
| private static HttpHandler wrapHandlers(final HttpHandler wrapee, final List<HandlerWrapper> wrappers) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final boolean | |
| pack-priv final ServletHandler | |
| pack-priv final MappingMatch | |
| pack-priv final String | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| private | MatchData(final ServletHandler handler, final String matchedPath, String userPath, MappingMatch mappingMatch, boolean defaultServlet)
|
| defaultServlet | back to summary |
|---|---|
| pack-priv final boolean defaultServlet | |
| handler | back to summary |
|---|---|
| pack-priv final ServletHandler handler | |
| mappingMatch | back to summary |
|---|---|
| pack-priv final MappingMatch mappingMatch | |
| matchedPath | back to summary |
|---|---|
| pack-priv final String matchedPath | |
| userPath | back to summary |
|---|---|
| pack-priv final String userPath | |
| MatchData | back to summary |
|---|---|
| private MatchData(final ServletHandler handler, final String matchedPath, String userPath, MappingMatch mappingMatch, boolean defaultServlet) | |