public class UrlInfo extends UifDictionaryBeanBase implements Serializable
If href is not set, the generated value of href is constructed (in general) as follows:
baseUrl + /controllerMapping + ? + methodToCall param + viewId param + other parameters
with any necessary tokens to construct a valid url. If baseUrl is not provided, the url is not valid and a
blank string is returned.
componentCode, namespaceCode
Constructor and Description |
---|
UrlInfo()
Base constructor
|
UrlInfo(String href)
Constructor that initializes an href value
|
UrlInfo(String baseUrl,
String controllerMapping,
String viewId,
String methodToCall)
Constructor that sets the base url construction properties
|
Modifier and Type | Method and Description |
---|---|
protected String |
generateUrl()
Generate the url based on properties of this object
|
String |
getBaseUrl()
The base url value (the value that comes before other properties).
|
String |
getControllerMapping()
The controllerMapping for the url (string that represents the controllerMapping path appended to baseUrl)
|
String |
getFormKey()
FormKey representing the key of the form data to retrieve
|
String |
getHref()
Get the href value for this url object.
|
String |
getMethodToCall()
MethodToCall representing the methodToCall on the controller (default base bean value is 'start')
|
String |
getOriginalHref()
The original(set) href value.
|
String |
getPageId()
PageId representing the page of the view to retrieve by id
|
Map<String,String> |
getRequestParameters()
Map of key value pairs that will be appended to the request parameters to pass in any custom data
|
String |
getViewId()
ViewId representing the view by id to retrieve
|
String |
getViewType()
The viewType representing the View's base type
|
boolean |
isFullyConfigured() |
void |
setBaseUrl(String baseUrl)
Set the baseUrl
|
void |
setControllerMapping(String controllerMapping)
Set the controllerMapping
|
void |
setFormKey(String formKey)
Set the formKey
|
void |
setHref(String href)
Explicitly set the href value - if this is called with a value, all other properties of the url object are
ignored.
|
void |
setMethodToCall(String methodToCall)
Set the methodToCall
|
protected void |
setOriginalHref(String originalHref)
toString returns the original href value of url
|
void |
setPageId(String pageId)
Set pageId
|
void |
setRequestParameters(Map<String,String> requestParameters)
Set the requestParameters
|
void |
setViewId(String viewId)
Set viewId
|
void |
setViewType(String viewType)
Set the viewType
|
String |
toString()
toString override returns the href value of url
|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
public UrlInfo()
public UrlInfo(String href)
href
- the href valuepublic boolean isFullyConfigured()
protected String generateUrl()
public String getHref()
If href has NOT been explicitly set to a value, the href is generated by
constructing pieces of the url set through the properties of this url object.
The generated value of href is constructed (in general) as follows:
baseUrl + /controllerMapping + ? + methodToCall param + viewId param + other parameters
with any necessary tokens to construct a valid url. If baseUrl is not provided, the url is not valid and a
blank string is returned.
public void setHref(String href)
href
- public String getBaseUrl()
public void setBaseUrl(String baseUrl)
baseUrl
- public String getControllerMapping()
public void setControllerMapping(String controllerMapping)
controllerMapping
- public String getViewType()
public void setViewType(String viewType)
viewType
- public String getViewId()
public String getPageId()
public String getFormKey()
public void setFormKey(String formKey)
formKey
- public String getMethodToCall()
public void setMethodToCall(String methodToCall)
methodToCall
- public Map<String,String> getRequestParameters()
public void setRequestParameters(Map<String,String> requestParameters)
requestParameters
- public String getOriginalHref()
protected void setOriginalHref(String originalHref)
originalHref
- original href valueCopyright © 2005–2016 The Kuali Foundation. All rights reserved.