public class RouterRestletSupport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RouterRestletSupport.PrefixAndFilename |
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
RouterRestletSupport() |
Modifier and Type | Method and Description |
---|---|
protected static Renderer |
changeMediaType(Renderer r,
MediaType mt)
Given a renderer r and a media type mt, return a new renderer which
behaves like r except that it announces its media type as mt.
|
static Router |
createRouterFor(javax.servlet.ServletContext con)
Create a new Router initialised with the configs appropriate to the
contextPath.
|
static String |
expiresAtAsRFC1123(long expiresAt)
expiresAt (date/time in milliseconds) as an RFC1123 date/time string
suitable for use in an HTTP header.
|
static String |
flatContextPath(String contextPath) |
static long |
latestConfigTime(javax.servlet.ServletContext con,
String contextPath) |
static void |
loadOneConfigFile(Router router,
String appName,
ModelLoader ml,
String prefixPath,
String thisSpecPath) |
static List<RouterRestletSupport.PrefixAndFilename> |
prefixAndFilenames(javax.servlet.ServletContext con,
String contextPath) |
public static long latestConfigTime(javax.servlet.ServletContext con, String contextPath)
public static List<RouterRestletSupport.PrefixAndFilename> prefixAndFilenames(javax.servlet.ServletContext con, String contextPath)
public static Router createRouterFor(javax.servlet.ServletContext con)
public static void loadOneConfigFile(Router router, String appName, ModelLoader ml, String prefixPath, String thisSpecPath)
protected static Renderer changeMediaType(Renderer r, MediaType mt)
public static String expiresAtAsRFC1123(long expiresAt)
Copyright © 2014. All Rights Reserved.