public class DocumentPreviewCodec extends AbstractDocumentViewCodec
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX |
static String |
PROPERTY_PATH_KEY |
static String |
URLPattern |
Constructor and Description |
---|
DocumentPreviewCodec() |
Modifier and Type | Method and Description |
---|---|
DocumentView |
getDocumentViewFromUrl(String url)
Extracts the document view from given url.
|
String |
getPrefix() |
String |
getUrlFromDocumentView(DocumentView docView)
Builds an url from the given document view.
|
handleDocumentView, handleUrl, setPrefix
public static final String PROPERTY_PATH_KEY
public static final String PREFIX
public static final String URLPattern
public String getPrefix()
getPrefix
in interface DocumentViewCodec
getPrefix
in class AbstractDocumentViewCodec
public DocumentView getDocumentViewFromUrl(String url)
DocumentViewCodec
The url is partial: it does not hold the context path information (server:port/nuxeo).
url
- the partial url to redirect to.public String getUrlFromDocumentView(DocumentView docView)
DocumentViewCodec
The url should be partial: it should not hold the context path information (server:port/nuxeo).
Copyright © 2013 Nuxeo SA. All Rights Reserved.