public class StyleGuideURLCodec extends AbstractDocumentViewCodec
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_VIEW_ID |
static String |
GET_URL_PATTERN |
static String |
POST_URL_PATTERN |
prefix
Constructor and Description |
---|
StyleGuideURLCodec() |
Modifier and Type | Method and Description |
---|---|
DocumentView |
getDocumentViewFromUrl(String url)
Extracts view id and parameters, for both get and post methods
|
String |
getUrlFromDocumentView(DocumentView docView)
Builds an url from the given document view.
|
getPrefix, handleDocumentView, handleUrl, setPrefix
public static final String DEFAULT_VIEW_ID
public static final String GET_URL_PATTERN
public static final String POST_URL_PATTERN
public StyleGuideURLCodec()
public String getUrlFromDocumentView(DocumentView docView)
DocumentViewCodec
The url should be partial: it should not hold the context path information (server:port/nuxeo).
public DocumentView getDocumentViewFromUrl(String url)
url
- the partial url to redirect to.Copyright © 2018 Nuxeo. All rights reserved.