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 TypeMethodDescriptionvoidvoidaddProperty(String key, String value) append(Appendable appendable) append(Appendable appendable, boolean escapeXml) protected voidprotected Stringjavax.servlet.http.HttpServletRequestcom.liferay.portal.kernel.model.LayoutgetParameter(String name) Deprecated.As of Judson (7.1.x)Deprecated.As of Judson (7.1.x)longgetPlid()com.liferay.portal.kernel.model.Portletprotected StringbooleanisAnchor()booleanbooleanbooleanbooleanbooleanisSecure()protected StringprocessValue(Key key, long value) protected StringprocessValue(Key key, String value) voidDeprecated.As of Judson (7.1.x)voidsetAnchor(boolean anchor) voidsetBeanParameter(PortletSerializable portletSerializable) voidsetCacheability(String cacheability) voidsetCopyCurrentRenderParameters(boolean copyCurrentRenderParameters) voidsetDoAsGroupId(long doAsGroupId) voidsetDoAsUserId(long doAsUserId) voidsetDoAsUserLanguageId(String doAsUserLanguageId) voidsetEncrypt(boolean encrypt) voidsetEscapeXml(boolean escapeXml) voidsetLifecycle(String lifecycle) voidsetParameter(String name, String value) Deprecated.As of Judson (7.1.x)voidsetParameter(String name, String... values) Deprecated.As of Judson (7.1.x)voidsetParameter(String name, String[] values, boolean append) Deprecated.As of Judson (7.1.x)voidsetParameter(String name, String value, boolean append) Deprecated.As of Judson (7.1.x)voidsetParameters(Map<String, String[]> params) Deprecated.As of Judson (7.1.x)voidsetPlid(long plid) voidsetPortletId(String portletId) voidsetPortletMode(String portletMode) voidsetPortletMode(PortletMode portletMode) voidsetProperty(String key, String value) voidsetRefererGroupId(long refererGroupId) voidsetRefererPlid(long refererPlid) voidsetRemovedParameterNames(Set<String> removedParameterNames) voidsetResourceID(String resourceID) voidsetSecure(boolean secure) voidsetWindowState(String windowState) voidsetWindowState(WindowState windowState) voidsetWindowStateRestoreCurrentView(boolean windowStateRestoreCurrentView) toString()voidvisitReservedParameters(BiConsumer<String, String> biConsumer) voidvoid
-
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:
addParameterIncludedInPathin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
addProperty
- Specified by:
addPropertyin interfaceBaseURL
-
append
- Specified by:
appendin interfaceBaseURL- Throws:
IOException
-
append
- Specified by:
appendin interfaceBaseURL- Throws:
IOException
-
getActionParameters
-
getCacheability
- Specified by:
getCacheabilityin interfaceResourceURL
-
getHttpServletRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest() -
getLayout
public com.liferay.portal.kernel.model.Layout getLayout() -
getLayoutFriendlyURL
-
getLifecycle
- Specified by:
getLifecyclein interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
getNamespace
-
getParameter
Deprecated.As of Judson (7.1.x)- Specified by:
getParameterin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
getParameterMap
Deprecated.As of Judson (7.1.x)- Specified by:
getParameterMapin interfaceBaseURL
-
getParametersIncludedInPath
- Specified by:
getParametersIncludedInPathin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
getPlid
public long getPlid()- Specified by:
getPlidin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet() -
getPortletFriendlyURLPath
-
getPortletId
- Specified by:
getPortletIdin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
getPortletMode
- Specified by:
getPortletModein interfaceRenderState
-
getPortletRequest
-
getRemovedParameterNames
- Specified by:
getRemovedParameterNamesin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
getRenderParameters
- Specified by:
getRenderParametersin interfaceMutableRenderState- Specified by:
getRenderParametersin interfaceRenderState
-
getResourceID
- Specified by:
getResourceIDin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL- Specified by:
getResourceIDin interfaceResourceURL
-
getResourceParameters
- Specified by:
getResourceParametersin interfaceResourceURL
-
getWindowState
- Specified by:
getWindowStatein interfaceRenderState
-
isAnchor
public boolean isAnchor()- Specified by:
isAnchorin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
isCopyCurrentRenderParameters
public boolean isCopyCurrentRenderParameters()- Specified by:
isCopyCurrentRenderParametersin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
isEncrypt
public boolean isEncrypt()- Specified by:
isEncryptin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
isEscapeXml
public boolean isEscapeXml()- Specified by:
isEscapeXmlin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
isParameterIncludedInPath
- Specified by:
isParameterIncludedInPathin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
removePublicRenderParameter
Deprecated.As of Judson (7.1.x)- Specified by:
removePublicRenderParameterin interfacePortletURL
-
setAnchor
public void setAnchor(boolean anchor) - Specified by:
setAnchorin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setBeanParameter
- Specified by:
setBeanParameterin interfacePortletURL
-
setCacheability
- Specified by:
setCacheabilityin interfaceResourceURL
-
setCopyCurrentRenderParameters
public void setCopyCurrentRenderParameters(boolean copyCurrentRenderParameters) - Specified by:
setCopyCurrentRenderParametersin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setDoAsGroupId
public void setDoAsGroupId(long doAsGroupId) - Specified by:
setDoAsGroupIdin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setDoAsUserId
public void setDoAsUserId(long doAsUserId) - Specified by:
setDoAsUserIdin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setDoAsUserLanguageId
- Specified by:
setDoAsUserLanguageIdin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setEncrypt
public void setEncrypt(boolean encrypt) - Specified by:
setEncryptin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setEscapeXml
public void setEscapeXml(boolean escapeXml) - Specified by:
setEscapeXmlin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setLifecycle
- Specified by:
setLifecyclein interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setParameter
Deprecated.As of Judson (7.1.x)- Specified by:
setParameterin interfaceBaseURL
-
setParameter
Deprecated.As of Judson (7.1.x)- Specified by:
setParameterin interfaceBaseURL
-
setParameter
Deprecated.As of Judson (7.1.x)- Specified by:
setParameterin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setParameter
Deprecated.As of Judson (7.1.x)- Specified by:
setParameterin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setParameters
Deprecated.As of Judson (7.1.x)- Specified by:
setParametersin interfaceBaseURL
-
setPlid
public void setPlid(long plid) - Specified by:
setPlidin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setPortletId
- Specified by:
setPortletIdin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setPortletMode
- Specified by:
setPortletModein interfaceMutableRenderState- Throws:
PortletModeException
-
setPortletMode
- Throws:
PortletModeException
-
setProperty
- Specified by:
setPropertyin interfaceBaseURL
-
setRefererGroupId
public void setRefererGroupId(long refererGroupId) - Specified by:
setRefererGroupIdin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setRefererPlid
public void setRefererPlid(long refererPlid) - Specified by:
setRefererPlidin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setRemovedParameterNames
- Specified by:
setRemovedParameterNamesin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
setResourceID
- Specified by:
setResourceIDin interfaceResourceURL
-
setSecure
- Specified by:
setSecurein interfaceBaseURL- Throws:
PortletSecurityException
-
setWindowState
- Throws:
WindowStateException
-
setWindowState
- Specified by:
setWindowStatein interfaceMutableRenderState- Throws:
WindowStateException
-
setWindowStateRestoreCurrentView
public void setWindowStateRestoreCurrentView(boolean windowStateRestoreCurrentView) - Specified by:
setWindowStateRestoreCurrentViewin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
toString
-
visitReservedParameters
- Specified by:
visitReservedParametersin interfacecom.liferay.portal.kernel.portlet.LiferayPortletURL
-
write
- Specified by:
writein interfaceBaseURL- Throws:
IOException
-
write
- Specified by:
writein interfaceBaseURL- Throws:
IOException
-
clearCache
protected void clearCache() -
generateToString
-
getPublicRenderParameterName
-
processValue
-
processValue
-