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 java.lang.Object
- implements DocumentViewCodec
Abstract implementation for codecs.
Implements methods that are not likely to be customized except for
optimization.
- Author:
- Anahide Tchertchian
Method Summary |
java.lang.String |
getPrefix()
|
boolean |
handleDocumentView(DocumentView docView)
Returns true if this codec should apply when iterating over codecs to
find a matching one. |
boolean |
handleUrl(java.lang.String url)
Returns true if this codec should apply when iterating over codecs to
find a matching one. |
void |
setPrefix(java.lang.String prefix)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDocumentViewCodec
public AbstractDocumentViewCodec()
getPrefix
public java.lang.String getPrefix()
- Specified by:
getPrefix
in interface DocumentViewCodec
setPrefix
public void setPrefix(java.lang.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(java.lang.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 © 2010 Nuxeo SAS. All Rights Reserved.