com.liferay.faces.bridge.container.pluto
Class PlutoResourceURL

java.lang.Object
  extended by com.liferay.faces.bridge.container.BaseURLWrapper
      extended by com.liferay.faces.bridge.container.ResourceURLWrapper
          extended by com.liferay.faces.bridge.container.pluto.PlutoResourceURL
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.portlet.ResourceURL>, javax.portlet.BaseURL, javax.portlet.ResourceURL

public class PlutoResourceURL
extends ResourceURLWrapper

Author:
Neil Griffin

Field Summary
protected  String toStringValue
           
 
Fields inherited from interface javax.portlet.ResourceURL
FULL, PAGE, PORTLET, SHARED
 
Constructor Summary
PlutoResourceURL(javax.portlet.ResourceURL resourceURL)
           
 
Method Summary
 javax.portlet.ResourceURL getWrapped()
           
 void setParameter(String name, String value)
           
 void setParameter(String name, String[] values)
           
 void setParameters(Map<String,String[]> parameters)
           
 String toString()
          Pluto has the habit of adding cache tokens to URLs during the RESOURCE_PHASE of the portlet lifecycle that are not present during the RENDER_PHASE.
 
Methods inherited from class com.liferay.faces.bridge.container.ResourceURLWrapper
getCacheability, setCacheability, setResourceID
 
Methods inherited from class com.liferay.faces.bridge.container.BaseURLWrapper
addProperty, getParameterMap, setProperty, setSecure, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.portlet.BaseURL
addProperty, getParameterMap, setProperty, setSecure, write, write
 

Field Detail

toStringValue

protected String toStringValue
Constructor Detail

PlutoResourceURL

public PlutoResourceURL(javax.portlet.ResourceURL resourceURL)
Method Detail

toString

public String toString()
Pluto has the habit of adding cache tokens to URLs during the RESOURCE_PHASE of the portlet lifecycle that are not present during the RENDER_PHASE. Although it would be nice to take advantage of cache-ability of resources, these differing URLs cause full-portlet DOM-diffs to take place when using ICEfaces. This method ensures that the cache tokens are removed, so that the return value of this method is the same during the RENDER_PHASE and RESOURCE_PHASE.

Specified by:
toString in interface javax.portlet.BaseURL
Overrides:
toString in class BaseURLWrapper

setParameter

public void setParameter(String name,
                         String[] values)
Specified by:
setParameter in interface javax.portlet.BaseURL
Overrides:
setParameter in class BaseURLWrapper

setParameter

public void setParameter(String name,
                         String value)
Specified by:
setParameter in interface javax.portlet.BaseURL
Overrides:
setParameter in class BaseURLWrapper

setParameters

public void setParameters(Map<String,String[]> parameters)
Specified by:
setParameters in interface javax.portlet.BaseURL
Overrides:
setParameters in class BaseURLWrapper

getWrapped

public javax.portlet.ResourceURL getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.portlet.ResourceURL>
Specified by:
getWrapped in class ResourceURLWrapper


Copyright © 2014 Liferay, Inc.. All Rights Reserved.