public class MockLiferayPortletURL
extends Object
implements com.liferay.portal.kernel.portlet.LiferayPortletURL, javax.portlet.RenderURL
Constructor and Description |
---|
MockLiferayPortletURL() |
Modifier and Type | Method and Description |
---|---|
void |
addParameterIncludedInPath(String name) |
void |
addProperty(String name,
String value) |
Appendable |
append(Appendable appendable) |
Appendable |
append(Appendable appendable,
boolean escapeXML) |
String |
getCacheability() |
String |
getFragmentIdentifier() |
String |
getLifecycle() |
String |
getParameter(String name) |
Map<String,String[]> |
getParameterMap() |
Set<String> |
getParametersIncludedInPath() |
long |
getPlid() |
String |
getPortletId() |
javax.portlet.PortletMode |
getPortletMode() |
Set<String> |
getRemovedParameterNames() |
javax.portlet.MutableRenderParameters |
getRenderParameters() |
String |
getResourceID() |
javax.portlet.MutableResourceParameters |
getResourceParameters() |
javax.portlet.WindowState |
getWindowState() |
boolean |
isAnchor() |
boolean |
isCopyCurrentRenderParameters() |
boolean |
isEncrypt() |
boolean |
isEscapeXml() |
boolean |
isParameterIncludedInPath(String name) |
boolean |
isSecure() |
void |
removePublicRenderParameter(String name) |
void |
setAnchor(boolean anchor) |
void |
setBeanParameter(javax.portlet.annotations.PortletSerializable portletSerializable) |
void |
setCacheability(String cacheLevel) |
void |
setCopyCurrentRenderParameters(boolean copyCurrentRenderParameters) |
void |
setDoAsGroupId(long doAsGroupId) |
void |
setDoAsUserId(long doAsUserId) |
void |
setDoAsUserLanguageId(String doAsUserLanguageId) |
void |
setEncrypt(boolean encrypt) |
void |
setEscapeXml(boolean escapeXml) |
void |
setFragmentIdentifier(String fragment) |
void |
setLifecycle(String lifecycle) |
void |
setParameter(String name,
String... values) |
void |
setParameter(String name,
String value) |
void |
setParameter(String name,
String[] values,
boolean append) |
void |
setParameter(String name,
String value,
boolean append) |
void |
setParameters(Map<String,String[]> parameters) |
void |
setPlid(long plid) |
void |
setPortletId(String portletId) |
void |
setPortletMode(javax.portlet.PortletMode portletMode) |
void |
setProperty(String name,
String value) |
void |
setRefererGroupId(long refererGroupId) |
void |
setRefererPlid(long refererPlid) |
void |
setRemovedParameterNames(Set<String> removedParamNames) |
void |
setResourceID(String resourceID) |
void |
setSecure(boolean secure) |
void |
setWindowState(javax.portlet.WindowState windowState) |
void |
setWindowStateRestoreCurrentView(boolean windowStateRestoreCurrentView) |
String |
toString() |
void |
visitReservedParameters(BiConsumer<String,String> biConsumer) |
void |
write(Writer writer) |
void |
write(Writer writer,
boolean escapeXML) |
public void addParameterIncludedInPath(String name)
addParameterIncludedInPath
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void addProperty(String name, String value)
addProperty
in interface javax.portlet.BaseURL
public Appendable append(Appendable appendable) throws IOException
append
in interface javax.portlet.BaseURL
IOException
public Appendable append(Appendable appendable, boolean escapeXML) throws IOException
append
in interface javax.portlet.BaseURL
IOException
public String getCacheability()
getCacheability
in interface javax.portlet.ResourceURL
public String getFragmentIdentifier()
getFragmentIdentifier
in interface javax.portlet.RenderURL
public String getLifecycle()
getLifecycle
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public String getParameter(String name)
getParameter
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public Map<String,String[]> getParameterMap()
getParameterMap
in interface javax.portlet.BaseURL
public Set<String> getParametersIncludedInPath()
getParametersIncludedInPath
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public long getPlid()
getPlid
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public String getPortletId()
getPortletId
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public javax.portlet.PortletMode getPortletMode()
getPortletMode
in interface javax.portlet.RenderState
public Set<String> getRemovedParameterNames()
getRemovedParameterNames
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public javax.portlet.MutableRenderParameters getRenderParameters()
getRenderParameters
in interface javax.portlet.MutableRenderState
getRenderParameters
in interface javax.portlet.RenderState
public String getResourceID()
getResourceID
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
getResourceID
in interface javax.portlet.ResourceURL
public javax.portlet.MutableResourceParameters getResourceParameters()
getResourceParameters
in interface javax.portlet.ResourceURL
public javax.portlet.WindowState getWindowState()
getWindowState
in interface javax.portlet.RenderState
public boolean isAnchor()
isAnchor
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public boolean isCopyCurrentRenderParameters()
isCopyCurrentRenderParameters
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public boolean isEncrypt()
isEncrypt
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public boolean isEscapeXml()
isEscapeXml
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public boolean isParameterIncludedInPath(String name)
isParameterIncludedInPath
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public boolean isSecure()
isSecure
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void removePublicRenderParameter(String name)
removePublicRenderParameter
in interface javax.portlet.PortletURL
public void setAnchor(boolean anchor)
setAnchor
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setBeanParameter(javax.portlet.annotations.PortletSerializable portletSerializable)
setBeanParameter
in interface javax.portlet.PortletURL
public void setCacheability(String cacheLevel)
setCacheability
in interface javax.portlet.ResourceURL
public void setCopyCurrentRenderParameters(boolean copyCurrentRenderParameters)
setCopyCurrentRenderParameters
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setDoAsGroupId(long doAsGroupId)
setDoAsGroupId
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setDoAsUserId(long doAsUserId)
setDoAsUserId
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setDoAsUserLanguageId(String doAsUserLanguageId)
setDoAsUserLanguageId
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setEncrypt(boolean encrypt)
setEncrypt
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setEscapeXml(boolean escapeXml)
setEscapeXml
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setFragmentIdentifier(String fragment)
setFragmentIdentifier
in interface javax.portlet.RenderURL
public void setLifecycle(String lifecycle)
setLifecycle
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setParameter(String name, String value)
setParameter
in interface javax.portlet.BaseURL
public void setParameter(String name, String... values)
setParameter
in interface javax.portlet.BaseURL
public void setParameter(String name, String value, boolean append)
setParameter
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setParameter(String name, String[] values, boolean append)
setParameter
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setParameters(Map<String,String[]> parameters)
setParameters
in interface javax.portlet.BaseURL
public void setPlid(long plid)
setPlid
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setPortletId(String portletId)
setPortletId
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setPortletMode(javax.portlet.PortletMode portletMode) throws javax.portlet.PortletModeException
setPortletMode
in interface javax.portlet.MutableRenderState
javax.portlet.PortletModeException
public void setProperty(String name, String value)
setProperty
in interface javax.portlet.BaseURL
public void setRefererGroupId(long refererGroupId)
setRefererGroupId
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setRefererPlid(long refererPlid)
setRefererPlid
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setRemovedParameterNames(Set<String> removedParamNames)
setRemovedParameterNames
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setResourceID(String resourceID)
setResourceID
in interface javax.portlet.ResourceURL
public void setSecure(boolean secure) throws javax.portlet.PortletSecurityException
setSecure
in interface javax.portlet.BaseURL
javax.portlet.PortletSecurityException
public void setWindowState(javax.portlet.WindowState windowState) throws javax.portlet.WindowStateException
setWindowState
in interface javax.portlet.MutableRenderState
javax.portlet.WindowStateException
public void setWindowStateRestoreCurrentView(boolean windowStateRestoreCurrentView)
setWindowStateRestoreCurrentView
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public String toString()
toString
in interface javax.portlet.BaseURL
toString
in class Object
public void visitReservedParameters(BiConsumer<String,String> biConsumer)
visitReservedParameters
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void write(Writer writer) throws IOException
write
in interface javax.portlet.BaseURL
IOException
public void write(Writer writer, boolean escapeXML) throws IOException
write
in interface javax.portlet.BaseURL
IOException