public final class StandaloneServletContextUriLocator extends ServletContextUriLocator implements StandaloneContextAware
ServletContextUriLocator which is used for standalone (or build-time) solution. This class
existed initially as an anonymous class, but was extracted since it is complex enough to exist on its own.ServletContextUriLocator.LocatorStrategyALIAS, ALIAS_DISPATCHER_FIRST, ALIAS_SERVLET_CONTEXT_FIRST, ALIAS_SERVLET_CONTEXT_ONLY, PREFIX| Constructor and Description |
|---|
StandaloneServletContextUriLocator() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(StandaloneContext standaloneContext)
Called by standalone process for initialization.
|
InputStream |
locate(String uri)
This implementation will try to locate the provided resource inside contextFolder configured by standaloneContext.
|
accept, getLocatorStrategy, isProtectedResource, isValid, setLocatorStrategy, toStringgetWildcardStreamLocator, isEnableWildcards, newWildcardStreamLocator, setEnableWildcardspublic InputStream locate(String uri) throws IOException
locate in interface UriLocatorlocate in class ServletContextUriLocatoruri - uri to read.IOException - if the resource cannot be read for some reason.public void initialize(StandaloneContext standaloneContext)
StandaloneContextAwareStandaloneContext in order to initialize the internals.initialize in interface StandaloneContextAwarestandaloneContext - StandaloneContext holding properties associated with current context.Copyright © 2008-2016. All Rights Reserved.