com.liferay.faces.bridge.context.url
Class BridgeResourceURLImpl

java.lang.Object
  extended by com.liferay.faces.bridge.context.url.BridgeURLBaseImpl
      extended by com.liferay.faces.bridge.context.url.BridgeResourceURLCompatImpl
          extended by com.liferay.faces.bridge.context.url.BridgeResourceURLImpl
All Implemented Interfaces:
BridgeResourceURL, BridgeURL
Direct Known Subclasses:
BridgeResourceURLLiferayImpl

public class BridgeResourceURLImpl
extends BridgeResourceURLCompatImpl

Author:
Neil Griffin

Field Summary
 
Fields inherited from class com.liferay.faces.bridge.context.url.BridgeURLBaseImpl
bridgeConfig, bridgeContext, PORTLET_ACTION, PORTLET_RENDER, PORTLET_RESOURCE, RELATIVE_PATH_PREFIX, url
 
Constructor Summary
BridgeResourceURLImpl(String url, String currentFacesViewId, BridgeContext bridgeContext)
           
 
Method Summary
 void replaceBackLinkParameter(javax.faces.context.FacesContext facesContext)
          Replaces the value of the "javax.portlet.BackLink" parameter with an encoded action URL that represents a link to the current Faces viewId.
 void setInProtocol(boolean inProtocol)
          Sets a flag indicating whether or not the URL must satisfy "in-protocol" resource serving.
 void setViewLink(boolean viewLink)
          Sets a flag indicating whether or not the URL is a view-link to a Faces view, which is a type of navigation.
protected  javax.portlet.BaseURL toBaseURL()
          Returns a BaseURL representation of the bridge URL.
 
Methods inherited from class com.liferay.faces.bridge.context.url.BridgeResourceURLCompatImpl
isEncodedFaces2ResourceURL, isFaces2ResourceURL
 
Methods inherited from class com.liferay.faces.bridge.context.url.BridgeURLBaseImpl
_toString, _toString, getContextRelativePath, getParameter, getParameterMap, getParameterNames, getPortletPhase, getSchemeSpecificPart, getURI, getViewIdParameterName, isAbsolute, isEscaped, isExternal, isFacesViewTarget, isHierarchical, isOpaque, isPathRelative, isPortletScheme, isRelative, isSecure, isSelfReferencing, matchPathAndExtension, removeParameter, setParameter, setParameter, setPortletModeParameter, setRenderParameters, setSecure, setSecureParameter, setSelfReferencing, setWindowStateParameter, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.faces.bridge.context.url.BridgeURL
getContextRelativePath, getParameter, getParameterMap, getParameterNames, getPortletPhase, isAbsolute, isEscaped, isExternal, isFacesViewTarget, isHierarchical, isOpaque, isPathRelative, isPortletScheme, isSecure, isSelfReferencing, removeParameter, setParameter, setParameter, setSecure, setSelfReferencing, toString
 

Constructor Detail

BridgeResourceURLImpl

public BridgeResourceURLImpl(String url,
                             String currentFacesViewId,
                             BridgeContext bridgeContext)
Method Detail

replaceBackLinkParameter

public void replaceBackLinkParameter(javax.faces.context.FacesContext facesContext)
Description copied from interface: BridgeResourceURL
Replaces the value of the "javax.portlet.BackLink" parameter with an encoded action URL that represents a link to the current Faces viewId.

Parameters:
facesContext - The current FacesContext instance.

toBaseURL

protected javax.portlet.BaseURL toBaseURL()
                                   throws MalformedURLException
Description copied from class: BridgeURLBaseImpl
Returns a BaseURL representation of the bridge URL.

Specified by:
toBaseURL in class BridgeURLBaseImpl
Throws:
MalformedURLException

setInProtocol

public void setInProtocol(boolean inProtocol)
Description copied from interface: BridgeResourceURL
Sets a flag indicating whether or not the URL must satisfy "in-protocol" resource serving.

Parameters:
inProtocol - true if the URL must satisfy "in-protocol" resource serving, otherwise false.

setViewLink

public void setViewLink(boolean viewLink)
Description copied from interface: BridgeResourceURL
Sets a flag indicating whether or not the URL is a view-link to a Faces view, which is a type of navigation. For more information, refer to the documentation at Bridge.VIEW_LINK.



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