Class RestDocumentViewCodec
java.lang.Object
org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
org.nuxeo.ecm.restapi.server.jaxrs.RestDocumentViewCodec
- All Implemented Interfaces:
DocumentViewCodec
Codec that resolve the Rest url for a document
- Since:
- 5.7.2
-
Field Summary
Fields inherited from class org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
prefix
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThere is no document veiw for Rest codecgetUrlFromDocumentView
(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 Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
RestDocumentViewCodec
public RestDocumentViewCodec() -
RestDocumentViewCodec
-
-
Method Details
-
getPrefix
- Specified by:
getPrefix
in interfaceDocumentViewCodec
- Overrides:
getPrefix
in classAbstractDocumentViewCodec
-
getUrlFromDocumentView
Description copied from interface:DocumentViewCodec
Builds an url from the given document view.The url should be partial: it should not hold the context path information (server:port/nuxeo).
-
getDocumentViewFromUrl
There is no document veiw for Rest codec- Parameters:
url
- the partial url to redirect to.- Returns:
- a document view instance.
-