Package org.nuxeo.ecm.platform.url.codec
Class DocumentPathCodec
java.lang.Object
org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
org.nuxeo.ecm.platform.url.codec.DocumentPathCodec
- All Implemented Interfaces:
DocumentViewCodec
Codec handling a document repository, path, view and additional request parameters.
- Author:
- Anahide Tchertchian
-
Field Summary
Fields inherited from class org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
prefix
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExtracts document location from a Zope-like URL, eg: server/path_or_docId/view_id/tab_id .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
-
URL_MAX_LENGTH
public static final int URL_MAX_LENGTH- See Also:
-
PREFIX
- See Also:
-
URL_PATTERN
- See Also:
-
-
Constructor Details
-
DocumentPathCodec
public DocumentPathCodec() -
DocumentPathCodec
-
-
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
Extracts document location from a Zope-like URL, eg: server/path_or_docId/view_id/tab_id .- Parameters:
url
- the partial url to redirect to.- Returns:
- a document view instance.
-