org.nuxeo.ecm.platform.ui.web.restAPI
Class BaseNuxeoRestlet
java.lang.Object
org.restlet.Uniform
org.restlet.Restlet
org.nuxeo.ecm.platform.ui.web.restAPI.BaseNuxeoRestlet
- Direct Known Subclasses:
- BaseStatelessNuxeoRestlet, CreateDocumentRestlet, CreationContainerListRestlet, DirectoryCacheRestlet, DownloadFileRestlet, OpenSearchRestlet, PluginUploadRestlet, PreviewRestlet, UploadFileRestlet, UploadRestlet
public class BaseNuxeoRestlet
- extends Restlet
Base class for Nuxeo Restlet.
Provides utility methods:
- error handling
- authentication
- http request/response retrieval
- Author:
- tiry
Methods inherited from class org.restlet.Uniform |
delete, delete, get, get, handle, head, head, options, options, post, post, put, put |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseNuxeoRestlet
public BaseNuxeoRestlet()
handleError
protected static void handleError(Response res,
String message)
handleError
protected static void handleError(Response res,
Exception e)
handleError
protected static void handleError(org.dom4j.dom.DOMDocument result,
Response res,
Exception e)
handleError
protected static void handleError(org.dom4j.dom.DOMDocument result,
Response res,
String message)
getHttpRequest
protected static HttpServletRequest getHttpRequest(Request req)
getHttpResponse
protected static HttpServletResponse getHttpResponse(Response res)
getUserPrincipal
protected static Principal getUserPrincipal(Request req)
getSerializablePrincipal
protected static Serializable getSerializablePrincipal(Request req)
getRestletFullUrl
protected static String getRestletFullUrl(Request request)
getQueryParamValue
protected static String getQueryParamValue(Request req,
String paramName,
String defaultValue)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.