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
public class DocumentPathCodec
- extends AbstractDocumentViewCodec
Codec handling a document repository, path, view and additional request
parameters.
- Author:
- Anahide Tchertchian
URL_MAX_LENGTH
public static final int URL_MAX_LENGTH
- See Also:
- Constant Field Values
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
URL_PATTERN
public static final String URL_PATTERN
- See Also:
- Constant Field Values
DocumentPathCodec
public DocumentPathCodec()
DocumentPathCodec
public DocumentPathCodec(String prefix)
getPrefix
public String getPrefix()
- Specified by:
getPrefix
in interface DocumentViewCodec
- Overrides:
getPrefix
in class AbstractDocumentViewCodec
getUrlFromDocumentView
public String getUrlFromDocumentView(DocumentView docView)
- 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).
- Returns:
getDocumentViewFromUrl
public DocumentView getDocumentViewFromUrl(String url)
- 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.
Copyright © 2011 Nuxeo SAS. All Rights Reserved.