|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.portlet.url.PortletUrlSyntaxProviderImpl
public class PortletUrlSyntaxProviderImpl
Contains the logic and string constants for generating and parsing portlet URL parameters.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
PortletUrlSyntaxProviderImpl()
|
|
| Method Summary | |
|---|---|
protected void |
encodeAndAppend(StringBuilder url,
String encoding,
String name,
List<String> values)
Encodes parameter name and value(s) on to the url using the specified encoding. |
protected void |
encodeAndAppend(StringBuilder url,
String encoding,
String name,
String... values)
|
protected void |
generatePortletUrl(HttpServletRequest request,
IPortletWindow portletWindow,
IPortletWindowId delegationChildId,
PortletUrl portletUrl,
StringBuilder url)
|
String |
generatePortletUrl(HttpServletRequest request,
IPortletWindow portletWindow,
PortletUrl portletUrl)
Generates a full portlet URL for the current request, passed portlet window & portlet URL data object. |
Set<WindowState> |
getAnchoringWindowStates()
|
int |
getBufferLength()
|
String |
getDefaultEncoding()
|
protected String |
getEncoding(HttpServletRequest request)
Tries to determine the encoded from the request, if not available falls back to configured default. |
IPortalRequestUtils |
getPortalRequestUtils()
|
IPortletDefinitionRegistry |
getPortletDefinitionRegistry()
|
IPortletDelegationManager |
getPortletDelegationManager()
|
IPortletEntityRegistry |
getPortletEntityRegistry()
|
IPortletWindowRegistry |
getPortletWindowRegistry()
|
Set<WindowState> |
getTransientWindowStates()
|
protected Set<String> |
getUrlParameterNames(HttpServletRequest request)
Parses the request URL to return a Set of the parameter names that appeared on the URL string. |
IUserInstanceManager |
getUserInstanceManager()
|
boolean |
isUseAnchors()
|
protected void |
parsePortletParameters(HttpServletRequest request,
PortletUrl portletUrl,
org.jasig.portal.portlet.url.PortletUrlSyntaxProviderImpl.UrlTarget urlTarget)
|
PortletUrl |
parsePortletUrl(HttpServletRequest request)
Parses out PortletUrl data from the request. |
protected org.jasig.portal.portlet.url.PortletUrlSyntaxProviderImpl.UrlTarget |
resolveTargetWindowId(HttpServletRequest request)
|
void |
setAnchoringWindowStates(Set<WindowState> anchoringWindowStates)
WindowStates where anchors should be added to the ends of the generated URLS, only if
setUseAnchors(boolean) is true. |
void |
setBufferLength(int bufferLength)
|
void |
setDefaultEncoding(String defaultEncoding)
|
void |
setPortalRequestUtils(IPortalRequestUtils portalRequestUtils)
|
void |
setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
|
void |
setPortletDelegationManager(IPortletDelegationManager portletDelegationManager)
|
void |
setPortletEntityRegistry(IPortletEntityRegistry portletEntityRegistry)
|
void |
setPortletWindowRegistry(IPortletWindowRegistry portletWindowRegistry)
|
void |
setTransientWindowStates(Set<WindowState> transientWindowStates)
WindowStates that have transient IPortletWindows. |
void |
setUseAnchors(boolean useAnchors)
If anchors should be added to generated URLs |
void |
setUserInstanceManager(IUserInstanceManager userInstanceManager)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public PortletUrlSyntaxProviderImpl()
| Method Detail |
|---|
public boolean isUseAnchors()
public void setUseAnchors(boolean useAnchors)
public IPortalRequestUtils getPortalRequestUtils()
public void setPortalRequestUtils(IPortalRequestUtils portalRequestUtils)
portalRequestUtils - the portalRequestUtils to setpublic String getDefaultEncoding()
public void setDefaultEncoding(String defaultEncoding)
defaultEncoding - the defaultEncoding to setpublic int getBufferLength()
public void setBufferLength(int bufferLength)
bufferLength - the bufferLength to setpublic IPortletWindowRegistry getPortletWindowRegistry()
public void setPortletWindowRegistry(IPortletWindowRegistry portletWindowRegistry)
portletWindowRegistry - the portletWindowRegistry to setpublic IPortletDefinitionRegistry getPortletDefinitionRegistry()
public void setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
portletDefinitionRegistry - the portletDefinitionRegistry to setpublic IPortletEntityRegistry getPortletEntityRegistry()
public void setPortletEntityRegistry(IPortletEntityRegistry portletEntityRegistry)
portletEntityRegistry - the portletEntityRegistry to setpublic IUserInstanceManager getUserInstanceManager()
public void setUserInstanceManager(IUserInstanceManager userInstanceManager)
userInstanceManager - the userInstanceManager to setpublic Set<WindowState> getTransientWindowStates()
public void setTransientWindowStates(Set<WindowState> transientWindowStates)
WindowStates that have transient IPortletWindows. These states must be the ONLY
content rendering links on the page. Defaults to EXCLUSIVE and DETACHED.
public Set<WindowState> getAnchoringWindowStates()
public void setAnchoringWindowStates(Set<WindowState> anchoringWindowStates)
WindowStates where anchors should be added to the ends of the generated URLS, only if
setUseAnchors(boolean) is true. Defaults to MINIMIZED and NORMAL
public IPortletDelegationManager getPortletDelegationManager()
public void setPortletDelegationManager(IPortletDelegationManager portletDelegationManager)
public PortletUrl parsePortletUrl(HttpServletRequest request)
IPortletUrlSyntaxProvider
parsePortletUrl in interface IPortletUrlSyntaxProviderrequest - The request to parse parameters from
protected void parsePortletParameters(HttpServletRequest request,
PortletUrl portletUrl,
org.jasig.portal.portlet.url.PortletUrlSyntaxProviderImpl.UrlTarget urlTarget)
protected org.jasig.portal.portlet.url.PortletUrlSyntaxProviderImpl.UrlTarget resolveTargetWindowId(HttpServletRequest request)
protected Set<String> getUrlParameterNames(HttpServletRequest request)
request - The request to look at.
public String generatePortletUrl(HttpServletRequest request,
IPortletWindow portletWindow,
PortletUrl portletUrl)
IPortletUrlSyntaxProvider
generatePortletUrl in interface IPortletUrlSyntaxProviderrequest - The current requestportletWindow - The portlet window the parameters are forportletUrl - The Portlet URL data to be written.
protected void generatePortletUrl(HttpServletRequest request,
IPortletWindow portletWindow,
IPortletWindowId delegationChildId,
PortletUrl portletUrl,
StringBuilder url)
protected String getEncoding(HttpServletRequest request)
request - The current request.
protected void encodeAndAppend(StringBuilder url,
String encoding,
String name,
String... values)
protected void encodeAndAppend(StringBuilder url,
String encoding,
String name,
List<String> values)
url - The URL StringBuilder to append the parameters toencoding - The encoding to use.name - The name of the parametervalues - The values for the parameter, a & will be appeneded between each name/value pair added when multiple values are passed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||