public class WebURLBean extends Object
urlParams
map (see getUrlParams()
).
All of the bean's properties, both typed and dynamic,
must be of type String
.Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
m_params |
protected String |
m_path |
Constructor and Description |
---|
WebURLBean()
Creates a new bean with no base url
(use
setUrlBase(java.lang.String) to set the base url). |
WebURLBean(String url)
Creates a new bean with the specified base url.
|
Modifier and Type | Method and Description |
---|---|
String |
getUrl()
Renders this bean to a url,
using the properties of this bean as url parameters.
|
Map<String,String> |
getUrlParams()
Request parameters of url.
|
String |
getUrlPath()
Path part of url.
|
void |
redirect()
Redirects the current faces request to this url.
|
void |
setUrl(String url)
Sets the state of this bean to match the specified url
(clearing path and all old request parameters before setting new state).
|
void |
setUrlBase(String url)
Sets the state of this bean using the specified url
(not clearing parameters left unspecified by url).
|
void |
setUrlParams(Map<String,String> params)
Request parameters of url.
|
void |
setUrlPath(String path)
Path part of url.
|
String |
toString()
Renders this bean to a url,
using the properties of this bean as url parameters.
|
public WebURLBean()
setUrlBase(java.lang.String)
to set the base url).public WebURLBean(String url)
public String toString()
public void redirect() throws IOException
IOException
public String getUrl()
public void setUrl(String url)
public String getUrlPath()
public void setUrlPath(String path)
public Map<String,String> getUrlParams()
public void setUrlParams(Map<String,String> params)
public void setUrlBase(String url)