com.liferay.portlet
Class PortletURLImpl
java.lang.Object
com.liferay.portlet.PortletURLImpl
- All Implemented Interfaces:
- LiferayPortletURL, Serializable, BaseURL, PortletURL, ResourceURL
- Direct Known Subclasses:
- PortletURLImplWrapper
public class PortletURLImpl
- extends Object
- implements LiferayPortletURL, PortletURL, ResourceURL, Serializable
- See Also:
- Serialized Form
|
Method Summary |
void |
addParameterIncludedInPath(String name)
|
protected void |
addPortalAuthToken(StringBundler sb,
Key key)
|
protected void |
addPortletAuthToken(StringBundler sb,
Key key)
|
void |
addProperty(String key,
String value)
|
protected void |
clearCache()
|
protected String |
generateToString()
|
protected String |
generateWSRPToString()
|
String |
getCacheability()
|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
|
Layout |
getLayout()
|
String |
getLayoutFriendlyURL()
|
String |
getLifecycle()
|
String |
getNamespace()
|
String |
getParameter(String name)
|
Map<String,String[]> |
getParameterMap()
|
Set<String> |
getParametersIncludedInPath()
|
long |
getPlid()
|
Portlet |
getPortlet()
|
String |
getPortletFriendlyURLPath()
|
String |
getPortletId()
|
PortletMode |
getPortletMode()
|
PortletRequest |
getPortletRequest()
|
Map<String,String> |
getReservedParameterMap()
|
String |
getResourceID()
|
WindowState |
getWindowState()
|
boolean |
isAnchor()
|
protected boolean |
isBlankValue(String[] value)
|
boolean |
isCopyCurrentPublicRenderParameters()
|
boolean |
isCopyCurrentRenderParameters()
|
boolean |
isEncrypt()
|
boolean |
isEscapeXml()
|
boolean |
isParameterIncludedInPath(String name)
|
boolean |
isSecure()
|
protected String |
processValue(Key key,
int value)
|
protected String |
processValue(Key key,
long value)
|
protected String |
processValue(Key key,
String value)
|
void |
removePublicRenderParameter(String name)
|
void |
setAnchor(boolean anchor)
|
void |
setCacheability(String cacheability)
|
void |
setCopyCurrentPublicRenderParameters(boolean copyCurrentPublicRenderParameters)
|
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)
|
void |
setParameter(String name,
String[] values)
|
void |
setParameter(String name,
String[] values,
boolean append)
|
void |
setParameter(String name,
String value,
boolean append)
|
void |
setParameters(Map<String,String[]> params)
|
void |
setPlid(long plid)
|
void |
setPortletId(String portletId)
|
void |
setPortletMode(PortletMode portletMode)
|
void |
setPortletMode(String portletMode)
|
void |
setProperty(String key,
String value)
|
void |
setRefererPlid(long refererPlid)
|
void |
setResourceID(String resourceID)
|
void |
setSecure(boolean secure)
|
void |
setWindowState(String windowState)
|
void |
setWindowState(WindowState windowState)
|
String |
toString()
|
void |
write(Writer writer)
|
void |
write(Writer writer,
boolean escapeXml)
|
PortletURLImpl
public PortletURLImpl(javax.servlet.http.HttpServletRequest request,
String portletId,
long plid,
String lifecycle)
PortletURLImpl
public PortletURLImpl(PortletRequestImpl portletRequestImpl,
String portletId,
long plid,
String lifecycle)
addParameterIncludedInPath
public void addParameterIncludedInPath(String name)
- Specified by:
addParameterIncludedInPath in interface LiferayPortletURL
addProperty
public void addProperty(String key,
String value)
- Specified by:
addProperty in interface BaseURL
getCacheability
public String getCacheability()
- Specified by:
getCacheability in interface ResourceURL
getHttpServletRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
getLayout
public Layout getLayout()
getLayoutFriendlyURL
public String getLayoutFriendlyURL()
getLifecycle
public String getLifecycle()
- Specified by:
getLifecycle in interface LiferayPortletURL
getNamespace
public String getNamespace()
getParameter
public String getParameter(String name)
- Specified by:
getParameter in interface LiferayPortletURL
getParameterMap
public Map<String,String[]> getParameterMap()
- Specified by:
getParameterMap in interface BaseURL
getParametersIncludedInPath
public Set<String> getParametersIncludedInPath()
- Specified by:
getParametersIncludedInPath in interface LiferayPortletURL
getPlid
public long getPlid()
getPortlet
public Portlet getPortlet()
getPortletFriendlyURLPath
public String getPortletFriendlyURLPath()
getPortletId
public String getPortletId()
- Specified by:
getPortletId in interface LiferayPortletURL
getPortletMode
public PortletMode getPortletMode()
- Specified by:
getPortletMode in interface PortletURL
getPortletRequest
public PortletRequest getPortletRequest()
getReservedParameterMap
public Map<String,String> getReservedParameterMap()
- Specified by:
getReservedParameterMap in interface LiferayPortletURL
getResourceID
public String getResourceID()
- Specified by:
getResourceID in interface LiferayPortletURL
getWindowState
public WindowState getWindowState()
- Specified by:
getWindowState in interface PortletURL
isAnchor
public boolean isAnchor()
- Specified by:
isAnchor in interface LiferayPortletURL
isCopyCurrentPublicRenderParameters
public boolean isCopyCurrentPublicRenderParameters()
isCopyCurrentRenderParameters
public boolean isCopyCurrentRenderParameters()
- Specified by:
isCopyCurrentRenderParameters in interface LiferayPortletURL
isEncrypt
public boolean isEncrypt()
- Specified by:
isEncrypt in interface LiferayPortletURL
isEscapeXml
public boolean isEscapeXml()
- Specified by:
isEscapeXml in interface LiferayPortletURL
isParameterIncludedInPath
public boolean isParameterIncludedInPath(String name)
- Specified by:
isParameterIncludedInPath in interface LiferayPortletURL
isSecure
public boolean isSecure()
- Specified by:
isSecure in interface LiferayPortletURL
removePublicRenderParameter
public void removePublicRenderParameter(String name)
- Specified by:
removePublicRenderParameter in interface PortletURL
setAnchor
public void setAnchor(boolean anchor)
- Specified by:
setAnchor in interface LiferayPortletURL
setCacheability
public void setCacheability(String cacheability)
- Specified by:
setCacheability in interface ResourceURL
setCopyCurrentPublicRenderParameters
public void setCopyCurrentPublicRenderParameters(boolean copyCurrentPublicRenderParameters)
setCopyCurrentRenderParameters
public void setCopyCurrentRenderParameters(boolean copyCurrentRenderParameters)
- Specified by:
setCopyCurrentRenderParameters in interface LiferayPortletURL
setDoAsGroupId
public void setDoAsGroupId(long doAsGroupId)
setDoAsUserId
public void setDoAsUserId(long doAsUserId)
- Specified by:
setDoAsUserId in interface LiferayPortletURL
setDoAsUserLanguageId
public void setDoAsUserLanguageId(String doAsUserLanguageId)
- Specified by:
setDoAsUserLanguageId in interface LiferayPortletURL
setEncrypt
public void setEncrypt(boolean encrypt)
- Specified by:
setEncrypt in interface LiferayPortletURL
setEscapeXml
public void setEscapeXml(boolean escapeXml)
- Specified by:
setEscapeXml in interface LiferayPortletURL
setLifecycle
public void setLifecycle(String lifecycle)
- Specified by:
setLifecycle in interface LiferayPortletURL
setParameter
public void setParameter(String name,
String value)
- Specified by:
setParameter in interface BaseURL
setParameter
public void setParameter(String name,
String value,
boolean append)
- Specified by:
setParameter in interface LiferayPortletURL
setParameter
public void setParameter(String name,
String[] values)
- Specified by:
setParameter in interface BaseURL
setParameter
public void setParameter(String name,
String[] values,
boolean append)
- Specified by:
setParameter in interface LiferayPortletURL
setParameters
public void setParameters(Map<String,String[]> params)
- Specified by:
setParameters in interface BaseURL
setPlid
public void setPlid(long plid)
- Specified by:
setPlid in interface LiferayPortletURL
setPortletId
public void setPortletId(String portletId)
- Specified by:
setPortletId in interface LiferayPortletURL
setPortletMode
public void setPortletMode(PortletMode portletMode)
throws PortletModeException
- Specified by:
setPortletMode in interface PortletURL
- Throws:
PortletModeException
setPortletMode
public void setPortletMode(String portletMode)
throws PortletModeException
- Throws:
PortletModeException
setProperty
public void setProperty(String key,
String value)
- Specified by:
setProperty in interface BaseURL
setRefererPlid
public void setRefererPlid(long refererPlid)
setResourceID
public void setResourceID(String resourceID)
- Specified by:
setResourceID in interface ResourceURL
setSecure
public void setSecure(boolean secure)
- Specified by:
setSecure in interface BaseURL
setWindowState
public void setWindowState(String windowState)
throws WindowStateException
- Throws:
WindowStateException
setWindowState
public void setWindowState(WindowState windowState)
throws WindowStateException
- Specified by:
setWindowState in interface PortletURL
- Throws:
WindowStateException
toString
public String toString()
- Specified by:
toString in interface BaseURL- Overrides:
toString in class Object
write
public void write(Writer writer)
throws IOException
- Specified by:
write in interface BaseURL
- Throws:
IOException
write
public void write(Writer writer,
boolean escapeXml)
throws IOException
- Specified by:
write in interface BaseURL
- Throws:
IOException
addPortalAuthToken
protected void addPortalAuthToken(StringBundler sb,
Key key)
addPortletAuthToken
protected void addPortletAuthToken(StringBundler sb,
Key key)
clearCache
protected void clearCache()
generateToString
protected String generateToString()
generateWSRPToString
protected String generateWSRPToString()
isBlankValue
protected boolean isBlankValue(String[] value)
processValue
protected String processValue(Key key,
int value)
processValue
protected String processValue(Key key,
long value)
processValue
protected String processValue(Key key,
String value)