com.liferay.faces.bridge
Class BridgeURLWrapper

java.lang.Object
  extended by com.liferay.faces.bridge.BridgeURLWrapper
All Implemented Interfaces:
BridgeURL

public abstract class BridgeURLWrapper
extends Object
implements BridgeURL

Author:
Neil Griffin

Constructor Summary
BridgeURLWrapper()
           
 
Method Summary
 String getParameter(String name)
          Returns the first value of the underlying BridgeURL.getParameterMap() with the specified name.
 Map<String,String[]> getParameterMap()
          Returns a mutable Map representing the URL parameters.
 String getViewId()
          If the URL targets a Faces view, then returns the viewId.
abstract  BridgeURL getWrapped()
           
 String removeParameter(String name)
          Removes the entry of the underlying BridgeURL.getParameterMap() according to the specified name.
 void setParameter(String name, String value)
          Sets the value of the underlying BridgeURL.getParameterMap() according to the specified name.
 void setParameter(String name, String[] value)
          Sets the value of the underlying BridgeURL.getParameterMap() according to the specified name.
 String toString()
          Returns a string-based representation of the URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BridgeURLWrapper

public BridgeURLWrapper()
Method Detail

getWrapped

public abstract BridgeURL getWrapped()

getParameter

public String getParameter(String name)
Description copied from interface: BridgeURL
Returns the first value of the underlying BridgeURL.getParameterMap() with the specified name.

Specified by:
getParameter in interface BridgeURL

getParameterMap

public Map<String,String[]> getParameterMap()
Description copied from interface: BridgeURL
Returns a mutable Map representing the URL parameters.

Specified by:
getParameterMap in interface BridgeURL

getViewId

public String getViewId()
Description copied from interface: BridgeURL
If the URL targets a Faces view, then returns the viewId. Otherwise, returns null.

Specified by:
getViewId in interface BridgeURL
Returns:
if the URL targets a Faces View, returns the viewId. Otherwise null.

removeParameter

public String removeParameter(String name)
Description copied from interface: BridgeURL
Removes the entry of the underlying BridgeURL.getParameterMap() according to the specified name.

Specified by:
removeParameter in interface BridgeURL
Returns:
the first value of the underlying BridgeURL.getParameterMap() with the specified name.

setParameter

public void setParameter(String name,
                         String value)
Description copied from interface: BridgeURL
Sets the value of the underlying BridgeURL.getParameterMap() according to the specified name.

Specified by:
setParameter in interface BridgeURL

setParameter

public void setParameter(String name,
                         String[] value)
Description copied from interface: BridgeURL
Sets the value of the underlying BridgeURL.getParameterMap() according to the specified name.

Specified by:
setParameter in interface BridgeURL

toString

public String toString()
Description copied from interface: BridgeURL
Returns a string-based representation of the URL.

Specified by:
toString in interface BridgeURL
Overrides:
toString in class Object


Copyright © 2017 Liferay, Inc. All Rights Reserved.