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) |
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)
Copyright © 2015 Nuxeo SA. All rights reserved.