Class DocumentPreviewCodec
java.lang.Object
org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
org.nuxeo.ecm.platform.preview.codec.DocumentPreviewCodec
- All Implemented Interfaces:
DocumentViewCodec
- Author:
- Thomas Roger
-
Field Summary
Fields inherited from class org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
prefix
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExtracts the document view from given url.getUrlFromDocumentView
(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
-
PROPERTY_PATH_KEY
- See Also:
-
PREFIX
- See Also:
-
URLPattern
- See Also:
-
-
Constructor Details
-
DocumentPreviewCodec
public DocumentPreviewCodec()
-
-
Method Details
-
getPrefix
- Specified by:
getPrefix
in interfaceDocumentViewCodec
- Overrides:
getPrefix
in classAbstractDocumentViewCodec
-
getDocumentViewFromUrl
Description copied from interface:DocumentViewCodec
Extracts the document view from given url.The url is partial: it does not hold the context path information (server:port/nuxeo).
- Parameters:
url
- the partial url to redirect to.- Returns:
- a document view instance.
-
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).
-