Class WebURLBean
java.lang.Object
com.webmethods.caf.faces.bean.web.WebURLBean
- Direct Known Subclasses:
CurrentURLBean
Bean which can be used to build a generic url,
using the bean's properties as request parameters.
In addition to the bean's typed properties,
parameters can be added to the bean dynamically
via its
urlParams
map (see getUrlParams()
).
All of the bean's properties, both typed and dynamic,
must be of type String
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new bean with no base url (usesetUrlBase(java.lang.String)
to set the base url).WebURLBean
(String url) Creates a new bean with the specified base url. -
Method Summary
Modifier and TypeMethodDescriptiongetUrl()
Renders this bean to a url, using the properties of this bean as url parameters.Request parameters of url.Path part of url.void
redirect()
Redirects the current faces request to this url.void
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.toString()
Renders this bean to a url, using the properties of this bean as url parameters.
-
Field Details
-
m_path
-
m_params
-
-
Constructor Details
-
WebURLBean
public WebURLBean()Creates a new bean with no base url (usesetUrlBase(java.lang.String)
to set the base url). -
WebURLBean
Creates a new bean with the specified base url.
-
-
Method Details
-
toString
Renders this bean to a url, using the properties of this bean as url parameters. -
redirect
Redirects the current faces request to this url.- Throws:
IOException
-
getUrl
Renders this bean to a url, using the properties of this bean as url parameters. -
setUrl
Sets the state of this bean to match the specified url (clearing path and all old request parameters before setting new state). -
getUrlPath
Path part of url. -
setUrlPath
Path part of url. -
getUrlParams
Request parameters of url. This map represents both the typed properties of this bean, as well as any properties added dynamically to this map. -
setUrlParams
Request parameters of url. This map represents both the typed properties of this bean, as well as any properties added dynamically to this map. -
setUrlBase
Sets the state of this bean using the specified url (not clearing parameters left unspecified by url).
-