com.liferay.faces.bridge
Interface BridgeURL

All Known Implementing Classes:
BridgeURLWrapper

public interface BridgeURL

This interface represents a bridge URL, meaning a URL that has convenience methods for representing URLs according to Section 6.1.3.1 of the Bridge Spec.

Author:
Neil Griffin
See Also:
Bridge.DIRECT_LINK, Bridge.FACES_AJAX_PARAMETER, Bridge.FACES_PARTIAL_PARAMETER, Bridge.FACES_VIEW_ID_PARAMETER, Bridge.FACES_VIEW_PATH_PARAMETER, Bridge.NONFACES_TARGET_PATH_PARAMETER, Bridge.PORTLET_MODE_PARAMETER, Bridge.PORTLET_WINDOWSTATE_PARAMETER, Bridge.PORTLET_SECURE_PARAMETER

Method Summary
 String getParameter(String name)
          Returns the first value of the underlying 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.
 String removeParameter(String name)
          Removes the entry of the underlying getParameterMap() according to the specified name.
 void setParameter(String name, String value)
          Sets the value of the underlying getParameterMap() according to the specified name.
 void setParameter(String name, String[] value)
          Sets the value of the underlying getParameterMap() according to the specified name.
 String toString()
          Returns a string-based representation of the URL.
 

Method Detail

getParameter

String getParameter(String name)
Returns the first value of the underlying getParameterMap() with the specified name.


getParameterMap

Map<String,String[]> getParameterMap()
Returns a mutable Map representing the URL parameters.


getViewId

String getViewId()
If the URL targets a Faces view, then returns the viewId. Otherwise, returns null.

Returns:
if the URL targets a Faces View, returns the viewId. Otherwise null.

removeParameter

String removeParameter(String name)
Removes the entry of the underlying getParameterMap() according to the specified name.

Returns:
the first value of the underlying getParameterMap() with the specified name.

setParameter

void setParameter(String name,
                  String value)
Sets the value of the underlying getParameterMap() according to the specified name.


setParameter

void setParameter(String name,
                  String[] value)
Sets the value of the underlying getParameterMap() according to the specified name.


toString

String toString()
Returns a string-based representation of the URL.

Overrides:
toString in class Object


Copyright © 2017 Liferay, Inc. All Rights Reserved.