ResourceRequest
interface represents the request send to the portlet for rendering resources. It extends the ClientDataRequest interface and provides resource request information to portlets. The portlet container creates an ResourceRequest
object and passes it as argument to the portlet's serveResource
method.
The ResourceRequest
is provided with the current portlet mode, window state, and render parameters that the portlet can access via the PortletResourceRequest
with getPortletMode
and, getWindowState
, or one of the getParameter
methods. ResourceURLs cannot change the current portlet mode, window state or render parameters. Parameters set on a resource URL are not render parameters but parameters for serving this resource and will last only for only this the current serveResource request.
If a parameter is set that has the same name as a render parameter that this resource URL contains, the render parameter must be the last entry in the parameter value array.
@see ClientDataRequest
@see ResourceServingPortlet
@since 2.0
ResourceRequest
represents the request made by an application to the ResourceManager
to obtain various Container
allocations.
It includes:
true
, which tells the ResourceManager
if the application wants locality to be loose (i.e. allows fall-through to rack or any) or strict (i.e. specify hard constraint on resource allocation).
|
|
|
|
|
|