public class BaseNuxeoRestlet extends org.restlet.Restlet
Provides utility methods:
Constructor and Description |
---|
BaseNuxeoRestlet() |
Modifier and Type | Method and Description |
---|---|
protected static javax.servlet.http.HttpServletRequest |
getHttpRequest(org.restlet.data.Request req) |
protected static javax.servlet.http.HttpServletResponse |
getHttpResponse(org.restlet.data.Response res) |
protected static String |
getQueryParamValue(org.restlet.data.Request req,
String paramName,
String defaultValue) |
protected static String |
getRestletFullUrl(org.restlet.data.Request request) |
protected static Principal |
getUserPrincipal(org.restlet.data.Request req) |
protected static void |
handleError(org.dom4j.dom.DOMDocument result,
org.restlet.data.Response res,
Exception e) |
protected static void |
handleError(org.dom4j.dom.DOMDocument result,
org.restlet.data.Response res,
String message) |
protected static void |
handleError(org.restlet.data.Response res,
Exception e) |
protected static void |
handleError(org.restlet.data.Response res,
String message) |
void |
setEntityToBlobOutput(Blob blob,
DownloadService.ByteRange byteRange,
org.restlet.data.Response res)
Sets the response entity to a representation that will write the blob.
|
getContext, getLogger, handle, init, isStarted, isStopped, setContext, start, stop
public BaseNuxeoRestlet()
protected static void handleError(org.restlet.data.Response res, String message)
protected static void handleError(org.restlet.data.Response res, Exception e)
protected static void handleError(org.dom4j.dom.DOMDocument result, org.restlet.data.Response res, Exception e)
protected static void handleError(org.dom4j.dom.DOMDocument result, org.restlet.data.Response res, String message)
protected static javax.servlet.http.HttpServletRequest getHttpRequest(org.restlet.data.Request req)
protected static javax.servlet.http.HttpServletResponse getHttpResponse(org.restlet.data.Response res)
protected static Principal getUserPrincipal(org.restlet.data.Request req)
protected static String getRestletFullUrl(org.restlet.data.Request request)
protected static String getQueryParamValue(org.restlet.data.Request req, String paramName, String defaultValue)
public void setEntityToBlobOutput(Blob blob, DownloadService.ByteRange byteRange, org.restlet.data.Response res)
blob
- the blobbyteRange
- the byte rangeres
- the responseCopyright © 2018 Nuxeo. All rights reserved.