Class RestDocumentViewCodec
- java.lang.Object
-
- org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
-
- org.nuxeo.ecm.restapi.server.jaxrs.RestDocumentViewCodec
-
- All Implemented Interfaces:
DocumentViewCodec
public class RestDocumentViewCodec extends AbstractDocumentViewCodec
Codec that resolve the Rest url for a document- Since:
- 5.7.2
-
-
Field Summary
Fields Modifier and Type Field Description static StringPREFIX-
Fields inherited from class org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
prefix
-
-
Constructor Summary
Constructors Constructor Description RestDocumentViewCodec()RestDocumentViewCodec(String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentViewgetDocumentViewFromUrl(String url)There is no document veiw for Rest codecStringgetPrefix()StringgetUrlFromDocumentView(DocumentView docView)Builds an url from the given document view.-
Methods inherited from class org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
handleDocumentView, handleUrl, setPrefix
-
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RestDocumentViewCodec
public RestDocumentViewCodec()
-
RestDocumentViewCodec
public RestDocumentViewCodec(String prefix)
-
-
Method Detail
-
getPrefix
public String getPrefix()
- Specified by:
getPrefixin interfaceDocumentViewCodec- Overrides:
getPrefixin classAbstractDocumentViewCodec
-
getUrlFromDocumentView
public String getUrlFromDocumentView(DocumentView docView)
Description copied from interface:DocumentViewCodecBuilds an url from the given document view.The url should be partial: it should not hold the context path information (server:port/nuxeo).
-
getDocumentViewFromUrl
public DocumentView getDocumentViewFromUrl(String url)
There is no document veiw for Rest codec- Parameters:
url- the partial url to redirect to.- Returns:
- a document view instance.
-
-