public class Dispatcher extends Object
Dispatch instances given the requested path.| Modifier and Type | Class and Description |
|---|---|
class |
Dispatcher.Root |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Dispatch> |
cache |
protected Configuration |
configuration |
static String |
copyright |
static org.slf4j.Logger |
logger |
protected File |
pagesDirectory |
| Constructor and Description |
|---|
Dispatcher(Configuration configuration,
File pagesDirectory) |
| Modifier and Type | Method and Description |
|---|---|
Dispatch |
getDispatch(String path)
Returns a dispatch for the provided path.
|
protected boolean |
isPotentialPagePath(String path) |
protected static String |
normalizePath(String originalPath) |
public static final String copyright
public static final org.slf4j.Logger logger
protected final Configuration configuration
protected final File pagesDirectory
public Dispatcher(Configuration configuration, File pagesDirectory)
public Dispatch getDispatch(String path)
path - the path to resolve, not including the context path.protected boolean isPotentialPagePath(String path)