|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface URLPolicyService
Service used on the web layer to handle navigation using meaningful URLs.
It handles a document context description, and also performs JSF model related operations.
It holds pattern descriptors used to interact with the
DocumentViewCodecManager
.
Field Summary | |
---|---|
static java.lang.String |
DISABLE_REDIRECT_REQUEST_KEY
Deprecated. |
static java.lang.String |
DOCUMENT_VIEW_REQUEST_KEY
|
static java.lang.String |
FORCE_URL_ENCODING_REQUEST_KEY
|
static java.lang.String |
POST_OUTCOME_REQUEST_KEY
|
Method Summary | |
---|---|
void |
addPatternDescriptor(URLPatternDescriptor pattern)
|
void |
appendParametersToRequest(javax.faces.context.FacesContext facesContext)
Appends parameters to request so that the model can be restored after request. |
void |
applyRequestParameters(javax.faces.context.FacesContext facesContext)
Extracts parameters from request attributes. |
void |
clear()
|
java.lang.String |
getDefaultPatternName()
|
DocumentView |
getDocumentViewFromRequest(javax.servlet.http.HttpServletRequest request)
Builds the document view from request information. |
DocumentView |
getDocumentViewFromRequest(java.lang.String pattern,
javax.servlet.http.HttpServletRequest request)
Builds the document view from request information. |
java.lang.String |
getUrlFromDocumentView(DocumentView docView,
java.lang.String baseUrl)
Returns a URL given a document view. |
java.lang.String |
getUrlFromDocumentView(java.lang.String pattern,
DocumentView docView,
java.lang.String baseUrl)
Returns a URL given a document view. |
boolean |
isCandidateForDecoding(javax.servlet.http.HttpServletRequest httpRequest)
Returns true if request is a GET request and filter preprocessing is turned on. |
boolean |
isCandidateForEncoding(javax.servlet.http.HttpServletRequest httpRequest)
Returns true if request is a POST request and filter redirection is turned on. |
java.lang.String |
navigate(javax.faces.context.FacesContext context)
Performs redirection action. |
void |
removePatternDescriptor(URLPatternDescriptor pattern)
|
void |
setDocumentViewInRequest(javax.servlet.http.HttpServletRequest request,
DocumentView docView)
Adds document view to the request for later retrieval. |
Field Detail |
---|
static final java.lang.String POST_OUTCOME_REQUEST_KEY
static final java.lang.String DOCUMENT_VIEW_REQUEST_KEY
@Deprecated static final java.lang.String DISABLE_REDIRECT_REQUEST_KEY
static final java.lang.String FORCE_URL_ENCODING_REQUEST_KEY
Method Detail |
---|
boolean isCandidateForDecoding(javax.servlet.http.HttpServletRequest httpRequest)
boolean isCandidateForEncoding(javax.servlet.http.HttpServletRequest httpRequest)
void setDocumentViewInRequest(javax.servlet.http.HttpServletRequest request, DocumentView docView)
request
- the current request.docView
- to saveDocumentView getDocumentViewFromRequest(javax.servlet.http.HttpServletRequest request)
Delegates call to a document view codec found thanks to the default URL pattern descriptor.
DocumentView getDocumentViewFromRequest(java.lang.String pattern, javax.servlet.http.HttpServletRequest request)
Delegates call to a document view codec found thanks given pattern name.
java.lang.String getUrlFromDocumentView(DocumentView docView, java.lang.String baseUrl)
Delegates call to a document view codec found thanks to the default URL pattern descriptor.
java.lang.String getUrlFromDocumentView(java.lang.String pattern, DocumentView docView, java.lang.String baseUrl)
Delegates call to a document view codec found thanks given pattern name.
void applyRequestParameters(javax.faces.context.FacesContext facesContext)
Apply them to the model using EL value bindings described on URL pattern descriptors.
We look for binding values to set on the request attribute and on the document view parameters.
void appendParametersToRequest(javax.faces.context.FacesContext facesContext)
Extract them using EL value bindings described on URL pattern descriptors.
If the document view is not null, values are set on its parameters. If the document view is null, values are set on the request parameters.
java.lang.String navigate(javax.faces.context.FacesContext context)
Extract it using an EL action binding described on URL pattern descriptors.
The action binding is called using given document view as parameter. If a sub URI is found, do nothing (may be an invalid resource URL).
java.lang.String getDefaultPatternName()
void addPatternDescriptor(URLPatternDescriptor pattern)
void removePatternDescriptor(URLPatternDescriptor pattern)
void clear()
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |