public class FacetedSearchViewCodec extends AbstractDocumentViewCodec
| Modifier and Type | Field and Description |
|---|---|
static String |
PREFIX |
static String |
QUERY_ALL |
static String |
URL_PATTERN |
| Constructor and Description |
|---|
FacetedSearchViewCodec() |
| 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.
|
boolean |
handleDocumentView(DocumentView docView)
Never handle document views: this codec is useless on post requests
|
handleUrl, setPrefixpublic static final String PREFIX
public static final String QUERY_ALL
public static final String URL_PATTERN
public String getPrefix()
getPrefix in interface DocumentViewCodecgetPrefix in class AbstractDocumentViewCodecpublic DocumentView getDocumentViewFromUrl(String url)
DocumentViewCodecThe 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)
DocumentViewCodecThe url should be partial: it should not hold the context path information (server:port/nuxeo).
public boolean handleDocumentView(DocumentView docView)
handleDocumentView in interface DocumentViewCodechandleDocumentView in class AbstractDocumentViewCodecDocumentViewCodecManager.getUrlFromDocumentView(DocumentView,
boolean, String)Copyright © 2012 Nuxeo SA. All Rights Reserved.