Package com.liferay.portlet.internal
Class PortletURLImpl
Object
com.liferay.portlet.internal.PortletURLImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletURL
,Serializable
,BaseURL
,Mutable
,MutableRenderState
,PortletURL
,RenderState
,ResourceURL
- Direct Known Subclasses:
ActionURLImpl
,RenderURLImpl
public class PortletURLImpl
extends Object
implements com.liferay.portal.kernel.portlet.LiferayPortletURL, PortletURL, ResourceURL, Serializable
- Author:
- Brian Wing Shun Chan, Jorge Ferrer, Connor McKay, Neil Griffin
- See Also:
-
Field Summary
Fields inherited from interface javax.portlet.ResourceURL
FULL, PAGE, PORTLET, SHARED
-
Constructor Summary
ConstructorsConstructorDescriptionPortletURLImpl
(PortletRequest portletRequest, com.liferay.portal.kernel.model.Portlet portlet, com.liferay.portal.kernel.model.Layout layout, String lifecycle, MimeResponse.Copy copy) PortletURLImpl
(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.model.Portlet portlet, com.liferay.portal.kernel.model.Layout layout, String lifecycle, MimeResponse.Copy copy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addProperty
(String key, String value) append
(Appendable appendable) append
(Appendable appendable, boolean escapeXml) protected void
protected String
javax.servlet.http.HttpServletRequest
com.liferay.portal.kernel.model.Layout
getParameter
(String name) Deprecated.As of Judson (7.1.x)Deprecated.As of Judson (7.1.x)long
getPlid()
com.liferay.portal.kernel.model.Portlet
protected String
boolean
isAnchor()
boolean
boolean
boolean
boolean
boolean
isSecure()
protected String
processValue
(Key key, long value) protected String
processValue
(Key key, String value) void
Deprecated.As of Judson (7.1.x)void
setAnchor
(boolean anchor) void
setBeanParameter
(PortletSerializable portletSerializable) void
setCacheability
(String cacheability) 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
setLifecycle
(String lifecycle) void
setParameter
(String name, String value) Deprecated.As of Judson (7.1.x)void
setParameter
(String name, String... values) Deprecated.As of Judson (7.1.x)void
setParameter
(String name, String[] values, boolean append) Deprecated.As of Judson (7.1.x)void
setParameter
(String name, String value, boolean append) Deprecated.As of Judson (7.1.x)void
setParameters
(Map<String, String[]> params) Deprecated.As of Judson (7.1.x)void
setPlid
(long plid) void
setPortletId
(String portletId) void
setPortletMode
(String portletMode) void
setPortletMode
(PortletMode portletMode) void
setProperty
(String key, String value) void
setRefererGroupId
(long refererGroupId) void
setRefererPlid
(long refererPlid) void
setRemovedParameterNames
(Set<String> removedParameterNames) void
setResourceID
(String resourceID) void
setSecure
(boolean secure) void
setWindowState
(String windowState) void
setWindowState
(WindowState windowState) void
setWindowStateRestoreCurrentView
(boolean windowStateRestoreCurrentView) toString()
void
visitReservedParameters
(BiConsumer<String, String> biConsumer) void
void
-
Constructor Details
-
PortletURLImpl
public PortletURLImpl(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.model.Portlet portlet, com.liferay.portal.kernel.model.Layout layout, String lifecycle, MimeResponse.Copy copy) -
PortletURLImpl
public PortletURLImpl(PortletRequest portletRequest, com.liferay.portal.kernel.model.Portlet portlet, com.liferay.portal.kernel.model.Layout layout, String lifecycle, MimeResponse.Copy copy)
-
-
Method Details
-
addParameterIncludedInPath
- Specified by:
addParameterIncludedInPath
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
addProperty
- Specified by:
addProperty
in interfaceBaseURL
-
append
- Specified by:
append
in interfaceBaseURL
- Throws:
IOException
-
append
- Specified by:
append
in interfaceBaseURL
- Throws:
IOException
-
getActionParameters
-
getCacheability
- Specified by:
getCacheability
in interfaceResourceURL
-
getHttpServletRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest() -
getLayout
public com.liferay.portal.kernel.model.Layout getLayout() -
getLayoutFriendlyURL
-
getLifecycle
- Specified by:
getLifecycle
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
getNamespace
-
getParameter
Deprecated.As of Judson (7.1.x)- Specified by:
getParameter
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
getParameterMap
Deprecated.As of Judson (7.1.x)- Specified by:
getParameterMap
in interfaceBaseURL
-
getParametersIncludedInPath
- Specified by:
getParametersIncludedInPath
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
getPlid
public long getPlid()- Specified by:
getPlid
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet() -
getPortletFriendlyURLPath
-
getPortletId
- Specified by:
getPortletId
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
getPortletMode
- Specified by:
getPortletMode
in interfaceRenderState
-
getPortletRequest
-
getRemovedParameterNames
- Specified by:
getRemovedParameterNames
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
getRenderParameters
- Specified by:
getRenderParameters
in interfaceMutableRenderState
- Specified by:
getRenderParameters
in interfaceRenderState
-
getResourceID
- Specified by:
getResourceID
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
- Specified by:
getResourceID
in interfaceResourceURL
-
getResourceParameters
- Specified by:
getResourceParameters
in interfaceResourceURL
-
getWindowState
- Specified by:
getWindowState
in interfaceRenderState
-
isAnchor
public boolean isAnchor()- Specified by:
isAnchor
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
isCopyCurrentRenderParameters
public boolean isCopyCurrentRenderParameters()- Specified by:
isCopyCurrentRenderParameters
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
isEncrypt
public boolean isEncrypt()- Specified by:
isEncrypt
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
isEscapeXml
public boolean isEscapeXml()- Specified by:
isEscapeXml
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
isParameterIncludedInPath
- Specified by:
isParameterIncludedInPath
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
removePublicRenderParameter
Deprecated.As of Judson (7.1.x)- Specified by:
removePublicRenderParameter
in interfacePortletURL
-
setAnchor
public void setAnchor(boolean anchor) - Specified by:
setAnchor
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setBeanParameter
- Specified by:
setBeanParameter
in interfacePortletURL
-
setCacheability
- Specified by:
setCacheability
in interfaceResourceURL
-
setCopyCurrentRenderParameters
public void setCopyCurrentRenderParameters(boolean copyCurrentRenderParameters) - Specified by:
setCopyCurrentRenderParameters
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setDoAsGroupId
public void setDoAsGroupId(long doAsGroupId) - Specified by:
setDoAsGroupId
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setDoAsUserId
public void setDoAsUserId(long doAsUserId) - Specified by:
setDoAsUserId
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setDoAsUserLanguageId
- Specified by:
setDoAsUserLanguageId
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setEncrypt
public void setEncrypt(boolean encrypt) - Specified by:
setEncrypt
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setEscapeXml
public void setEscapeXml(boolean escapeXml) - Specified by:
setEscapeXml
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setLifecycle
- Specified by:
setLifecycle
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setParameter
Deprecated.As of Judson (7.1.x)- Specified by:
setParameter
in interfaceBaseURL
-
setParameter
Deprecated.As of Judson (7.1.x)- Specified by:
setParameter
in interfaceBaseURL
-
setParameter
Deprecated.As of Judson (7.1.x)- Specified by:
setParameter
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setParameter
Deprecated.As of Judson (7.1.x)- Specified by:
setParameter
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setParameters
Deprecated.As of Judson (7.1.x)- Specified by:
setParameters
in interfaceBaseURL
-
setPlid
public void setPlid(long plid) - Specified by:
setPlid
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setPortletId
- Specified by:
setPortletId
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setPortletMode
- Specified by:
setPortletMode
in interfaceMutableRenderState
- Throws:
PortletModeException
-
setPortletMode
- Throws:
PortletModeException
-
setProperty
- Specified by:
setProperty
in interfaceBaseURL
-
setRefererGroupId
public void setRefererGroupId(long refererGroupId) - Specified by:
setRefererGroupId
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setRefererPlid
public void setRefererPlid(long refererPlid) - Specified by:
setRefererPlid
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setRemovedParameterNames
- Specified by:
setRemovedParameterNames
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setResourceID
- Specified by:
setResourceID
in interfaceResourceURL
-
setSecure
- Specified by:
setSecure
in interfaceBaseURL
- Throws:
PortletSecurityException
-
setWindowState
- Throws:
WindowStateException
-
setWindowState
- Specified by:
setWindowState
in interfaceMutableRenderState
- Throws:
WindowStateException
-
setWindowStateRestoreCurrentView
public void setWindowStateRestoreCurrentView(boolean windowStateRestoreCurrentView) - Specified by:
setWindowStateRestoreCurrentView
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
toString
-
visitReservedParameters
- Specified by:
visitReservedParameters
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
write
- Specified by:
write
in interfaceBaseURL
- Throws:
IOException
-
write
- Specified by:
write
in interfaceBaseURL
- Throws:
IOException
-
clearCache
protected void clearCache() -
generateToString
-
getPublicRenderParameterName
-
processValue
-
processValue
-