org.nuxeo.ecm.platform.url.service
Class AbstractDocumentViewCodec
java.lang.Object
org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
- All Implemented Interfaces:
- DocumentViewCodec
- Direct Known Subclasses:
- AdminViewCodec, DocumentFileCodec, DocumentIdCodec, DocumentPathCodec, DocumentPreviewCodec
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
AbstractDocumentViewCodec
public AbstractDocumentViewCodec()
getPrefix
public String getPrefix()
- Specified by:
getPrefix
in interface DocumentViewCodec
setPrefix
public void setPrefix(String prefix)
- Specified by:
setPrefix
in interface DocumentViewCodec
handleDocumentView
public boolean handleDocumentView(DocumentView docView)
- Description copied from interface:
DocumentViewCodec
- Returns true if this codec should apply when iterating over codecs to
find a matching one.
- Specified by:
handleDocumentView
in interface DocumentViewCodec
- See Also:
DocumentViewCodecManager.getUrlFromDocumentView(DocumentView,
boolean, String)
handleUrl
public boolean handleUrl(String url)
- Description copied from interface:
DocumentViewCodec
- Returns true if this codec should apply when iterating over codecs to
find a matching one.
- Specified by:
handleUrl
in interface DocumentViewCodec
- See Also:
DocumentViewCodecManager.getDocumentViewFromUrl(String, boolean,
String)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.