Interface DocumentViewCodec
-
- All Known Implementing Classes:
AbstractDocumentViewCodec,DocumentFileCodec,DocumentIdCodec,DocumentPathCodec,DocumentPreviewCodec,RestDocumentViewCodec,WebUIRedirectCodec
public interface DocumentViewCodec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DocumentViewgetDocumentViewFromUrl(String url)Extracts the document view from given url.StringgetPrefix()StringgetUrlFromDocumentView(DocumentView docView)Builds an url from the given document view.booleanhandleDocumentView(DocumentView docView)Returns true if this codec should apply when iterating over codecs to find a matching one.booleanhandleUrl(String url)Returns true if this codec should apply when iterating over codecs to find a matching one.voidsetPrefix(String prefix)
-
-
-
Method Detail
-
getPrefix
String getPrefix()
-
setPrefix
void setPrefix(String prefix)
-
handleDocumentView
boolean handleDocumentView(DocumentView docView)
Returns true if this codec should apply when iterating over codecs to find a matching one.
-
handleUrl
boolean handleUrl(String url)
Returns true if this codec should apply when iterating over codecs to find a matching one.
-
getDocumentViewFromUrl
DocumentView getDocumentViewFromUrl(String url)
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
String getUrlFromDocumentView(DocumentView docView)
Builds an url from the given document view.The url should be partial: it should not hold the context path information (server:port/nuxeo).
-
-