public class RouterRestlet extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RouterRestlet.Init |
static class |
RouterRestlet.TimestampedRouter
TimestampedRouter is a router plus the timestamp of the latest file
it was created from.
|
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_CONTROL_ALLOW_ORIGIN |
static String |
ETAG |
static String |
EXPIRES |
static String |
LAST_MODIFIED_DATE |
protected static org.slf4j.Logger |
log |
static String |
NO_EXPIRY |
protected static boolean |
showMightHaveMeant |
static String |
VARY |
Constructor and Description |
---|
RouterRestlet(javax.servlet.ServletContext con)
Initialise this RouterRestlet.
|
Modifier and Type | Method and Description |
---|---|
Match |
getMatch(String path,
MultiMap<String,String> queryParams) |
static URI |
makeRequestURI(javax.ws.rs.core.UriInfo ui,
Match match,
URI requestUri) |
static Couple<String,String> |
parse(String pathstub) |
javax.ws.rs.core.Response |
requestHandler(String pathstub,
javax.ws.rs.core.HttpHeaders headers,
javax.servlet.ServletContext servCon,
javax.ws.rs.core.UriInfo ui) |
static javax.ws.rs.core.Response |
returnAs(String expiresDate,
String response,
String mimetype) |
static javax.ws.rs.core.Response |
returnError(String s) |
static javax.ws.rs.core.Response |
returnError(Throwable e) |
static javax.ws.rs.core.Response |
returnNotFound(String message) |
static javax.ws.rs.core.Response |
returnNotFound(String message,
String what) |
static javax.ws.rs.core.Response.ResponseBuilder |
standardHeaders(String expiresDate,
APIResultSet rs,
int envHash,
boolean needsVaryAccept,
javax.ws.rs.core.Response.ResponseBuilder rb) |
static javax.ws.rs.core.Response.ResponseBuilder |
standardHeaders(String expiresDate,
APIResultSet rs,
int envHash,
javax.ws.rs.core.Response.ResponseBuilder rb) |
static javax.ws.rs.core.Response.ResponseBuilder |
standardHeaders(String expiresDate,
javax.ws.rs.core.Response.ResponseBuilder rb) |
protected static org.slf4j.Logger log
public static final String ACCESS_CONTROL_ALLOW_ORIGIN
public static final String VARY
public static final String ETAG
public static final String EXPIRES
public static final String LAST_MODIFIED_DATE
public static final String NO_EXPIRY
protected static final boolean showMightHaveMeant
public RouterRestlet(@Context javax.servlet.ServletContext con)
public javax.ws.rs.core.Response requestHandler(String pathstub, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.servlet.ServletContext servCon, @Context javax.ws.rs.core.UriInfo ui) throws IOException, URISyntaxException
IOException
URISyntaxException
public static URI makeRequestURI(javax.ws.rs.core.UriInfo ui, Match match, URI requestUri)
public static javax.ws.rs.core.Response.ResponseBuilder standardHeaders(String expiresDate, javax.ws.rs.core.Response.ResponseBuilder rb)
public static javax.ws.rs.core.Response.ResponseBuilder standardHeaders(String expiresDate, APIResultSet rs, int envHash, javax.ws.rs.core.Response.ResponseBuilder rb)
public static javax.ws.rs.core.Response.ResponseBuilder standardHeaders(String expiresDate, APIResultSet rs, int envHash, boolean needsVaryAccept, javax.ws.rs.core.Response.ResponseBuilder rb)
public static javax.ws.rs.core.Response returnAs(String expiresDate, String response, String mimetype)
public static javax.ws.rs.core.Response returnError(Throwable e)
public static javax.ws.rs.core.Response returnError(String s)
public static javax.ws.rs.core.Response returnNotFound(String message)
Copyright © 2014. All Rights Reserved.