public final class StandaloneServletContextUriLocator extends ServletContextUriLocator
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(StandaloneContext standaloneContext) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
locate(String uri)
This implementation will try to locate the provided resource inside contextFolder configured by standaloneContext.
|
accept, getLocatorStrategy, isProtectedResource, isValid, setLocatorStrategygetWildcardStreamLocator, isEnableWildcards, newWildcardStreamLocator, setEnableWildcardspublic StandaloneServletContextUriLocator(StandaloneContext standaloneContext)
public 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.Copyright © 2008-2014. All Rights Reserved.