public class LayoutDemoURLCodec extends AbstractDocumentViewCodec
| Modifier and Type | Field and Description | 
|---|---|
static String | 
DEFAULT_VIEW_ID  | 
static String | 
GET_URL_PATTERN  | 
static String | 
LAYOUT_PREVIEW_FRAME_VIEW_ID  | 
static String | 
POST_URL_PATTERN  | 
static String | 
URL_PATTERN  | 
prefix| Constructor and Description | 
|---|
LayoutDemoURLCodec()  | 
| 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. 
 | 
static boolean | 
isPreview(String viewId)  | 
getPrefix, handleDocumentView, handleUrl, setPrefixpublic static final String GET_URL_PATTERN
public static final String URL_PATTERN
public static final String POST_URL_PATTERN
public static final String LAYOUT_PREVIEW_FRAME_VIEW_ID
public static final String DEFAULT_VIEW_ID
public LayoutDemoURLCodec()
public String getUrlFromDocumentView(DocumentView docView)
DocumentViewCodecThe 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 © 2019 Nuxeo. All rights reserved.