public class DocumentPathCodec extends AbstractDocumentViewCodec
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX |
static int |
URL_MAX_LENGTH |
static String |
URL_PATTERN |
prefix
Constructor and Description |
---|
DocumentPathCodec() |
DocumentPathCodec(String prefix) |
Modifier and Type | Method and Description |
---|---|
DocumentView |
getDocumentViewFromUrl(String url)
Extracts document location from a Zope-like URL, eg: server/path_or_docId/view_id/tab_id .
|
String |
getPrefix() |
String |
getUrlFromDocumentView(DocumentView docView)
Builds an url from the given document view.
|
handleDocumentView, handleUrl, setPrefix
public static final int URL_MAX_LENGTH
public static final String PREFIX
public static final String URL_PATTERN
public DocumentPathCodec()
public DocumentPathCodec(String prefix)
public String getPrefix()
getPrefix
in interface DocumentViewCodec
getPrefix
in class AbstractDocumentViewCodec
public String getUrlFromDocumentView(DocumentView docView)
DocumentViewCodec
The url should be partial: it should not hold the context path information (server:port/nuxeo).
public DocumentView getDocumentViewFromUrl(String url)
url
- the partial url to redirect to.Copyright © 2016 Nuxeo SA. All rights reserved.