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

java.lang.Object
  extended by com.liferay.faces.bridge.context.url.BridgeURLWrapper
      extended by com.liferay.faces.bridge.context.url.BridgeResourceURLWrapper
All Implemented Interfaces:
BridgeResourceURL, BridgeURL, javax.faces.FacesWrapper<BridgeResourceURL>

public abstract class BridgeResourceURLWrapper
extends BridgeURLWrapper
implements BridgeResourceURL, javax.faces.FacesWrapper<BridgeResourceURL>

Author:
Neil Griffin

Constructor Summary
BridgeResourceURLWrapper()
           
 
Method Summary
abstract  BridgeResourceURL getWrapped()
           
 boolean isEncodedFaces2ResourceURL()
          Flag indicating whether or not the URL has already been encoded as a JSF2 resource URL.
 boolean isFaces2ResourceURL()
          Flag indicating whether or not the URL is a JSF2 resource URL.
 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.
 
Methods inherited from class com.liferay.faces.bridge.context.url.BridgeURLWrapper
getContextRelativePath, getParameter, getParameterMap, getParameterNames, getPortletPhase, isAbsolute, isEscaped, isExternal, isFacesViewTarget, isHierarchical, isOpaque, isPathRelative, isPortletScheme, isSecure, isSelfReferencing, removeParameter, setParameter, setParameter, setSecure, setSelfReferencing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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

BridgeResourceURLWrapper

public BridgeResourceURLWrapper()
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.

Specified by:
replaceBackLinkParameter in interface BridgeResourceURL
Parameters:
facesContext - The current FacesContext instance.

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.

Specified by:
setInProtocol in interface BridgeResourceURL
Parameters:
inProtocol - true if the URL must satisfy "in-protocol" resource serving, otherwise false.

isEncodedFaces2ResourceURL

public boolean isEncodedFaces2ResourceURL()
Description copied from interface: BridgeResourceURL
Flag indicating whether or not the URL has already been encoded as a JSF2 resource URL.

Specified by:
isEncodedFaces2ResourceURL in interface BridgeResourceURL

isFaces2ResourceURL

public boolean isFaces2ResourceURL()
Description copied from interface: BridgeResourceURL
Flag indicating whether or not the URL is a JSF2 resource URL.

Specified by:
isFaces2ResourceURL in interface BridgeResourceURL

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.

Specified by:
setViewLink in interface BridgeResourceURL

getWrapped

public abstract BridgeResourceURL getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<BridgeResourceURL>
Specified by:
getWrapped in class BridgeURLWrapper


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