Class AbstractDocumentViewCodec
- java.lang.Object
-
- org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
-
- All Implemented Interfaces:
DocumentViewCodec
- Direct Known Subclasses:
DocumentFileCodec,DocumentIdCodec,DocumentPathCodec,DocumentPreviewCodec,RestDocumentViewCodec,WebUIRedirectCodec
public abstract class AbstractDocumentViewCodec extends Object implements DocumentViewCodec
Abstract implementation for codecs.Implements methods that are not likely to be customized except for optimization.
- Author:
- Anahide Tchertchian
-
-
Constructor Summary
Constructors Constructor Description AbstractDocumentViewCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPrefix()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)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.platform.url.codec.api.DocumentViewCodec
getDocumentViewFromUrl, getUrlFromDocumentView
-
-
-
-
Field Detail
-
prefix
protected String prefix
-
-
Method Detail
-
getPrefix
public String getPrefix()
- Specified by:
getPrefixin interfaceDocumentViewCodec
-
setPrefix
public void setPrefix(String prefix)
- Specified by:
setPrefixin interfaceDocumentViewCodec
-
handleDocumentView
public boolean handleDocumentView(DocumentView docView)
Description copied from interface:DocumentViewCodecReturns true if this codec should apply when iterating over codecs to find a matching one.- Specified by:
handleDocumentViewin interfaceDocumentViewCodec- See Also:
DocumentViewCodecManager.getUrlFromDocumentView(DocumentView, boolean, String)
-
handleUrl
public boolean handleUrl(String url)
Description copied from interface:DocumentViewCodecReturns true if this codec should apply when iterating over codecs to find a matching one.- Specified by:
handleUrlin interfaceDocumentViewCodec- See Also:
DocumentViewCodecManager.getDocumentViewFromUrl(String, boolean, String)
-
-