Nuxeo Enterprise Platform 5.3

org.nuxeo.ecm.platform.ui.web.restAPI
Class BaseNuxeoRestlet

java.lang.Object
  extended by org.restlet.Uniform
      extended by org.restlet.Restlet
          extended by 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:

Author:
tiry

Constructor Summary
BaseNuxeoRestlet()
           
 
Method Summary
protected static HttpServletRequest getHttpRequest(Request req)
           
protected static HttpServletResponse getHttpResponse(Response res)
           
protected static String getQueryParamValue(Request req, String paramName, String defaultValue)
           
protected static String getRestletFullUrl(Request request)
           
protected static Serializable getSerializablePrincipal(Request req)
           
protected static Principal getUserPrincipal(Request req)
           
protected static void handleError(org.dom4j.dom.DOMDocument result, Response res, Exception e)
           
protected static void handleError(org.dom4j.dom.DOMDocument result, Response res, String message)
           
protected static void handleError(Response res, Exception e)
           
protected static void handleError(Response res, String message)
           
 
Methods inherited from class org.restlet.Restlet
getContext, getLogger, handle, init, isStarted, isStopped, setContext, start, stop
 
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
 

Constructor Detail

BaseNuxeoRestlet

public BaseNuxeoRestlet()
Method Detail

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)

Nuxeo Enterprise Platform 5.3

Copyright © 2010 Nuxeo SAS. All Rights Reserved.