public interface PortalURL
PortalURL defines the interface for manipulating Jetspeed Portal URLs. These URLs are used internally by the portal and are not available to Portlet Applications.
Modifier and Type | Interface and Description |
---|---|
static class |
PortalURL.URLType |
Modifier and Type | Field and Description |
---|---|
static String |
HTTP
HTTP protocol.
|
static String |
HTTPS
HTTPS protocol.
|
static String |
PATH_INFO_HEADER
Portal Path Info HTTP Header name.
|
static String |
PATH_INFO_QUERY
Portal Path Info Query parameter.
|
Modifier and Type | Method and Description |
---|---|
String |
createNavigationalEncoding(PortletWindow window,
Map<String,String[]> parameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
boolean action)
Deprecated.
|
String |
createNavigationalEncoding(PortletWindow window,
Map<String,String[]> parameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
PortalURL.URLType urlType)
Deprecated.
|
String |
createNavigationalEncoding(PortletWindow window,
Map<String,String[]> parameters,
String actionScopeId,
boolean actionScopeRendered,
String cacheLevel,
String resourceId,
Map<String,String[]> privateRenderParameters,
Map<String,String[]> publicRenderParameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
PortalURL.URLType urlType)
Creates the navigational encoding for a given window
Similiar to createPortletURL above
|
String |
createNavigationalEncoding(PortletWindow window,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state)
Creates the navigational encoding for a given window
Similiar to createPortletURL above
|
String |
createPortletURL(PortletWindow window,
Map<String,String[]> parameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
boolean action,
boolean secure)
Deprecated.
|
String |
createPortletURL(PortletWindow window,
Map<String,String[]> parameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
PortalURL.URLType urlType,
boolean secure)
Deprecated.
|
String |
createPortletURL(PortletWindow window,
Map<String,String[]> parameters,
String actionScopeId,
boolean actionScopeRendered,
String cacheLevel,
String resourceId,
Map<String,String[]> privateRenderParameters,
Map<String,String[]> publicRenderParameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
PortalURL.URLType urlType,
boolean secure)
Create a new PortletURL for a PortletWindow including request or action parameters.
|
String |
createPortletURL(PortletWindow window,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
boolean secure)
Create a new PortletURL for a PortletWindow retaining its (request) parameters.
|
String |
getBasePath()
Returns the current Portal base path.
|
String |
getBaseURL()
Gets the Base URL for this portal.
|
String |
getBaseURL(boolean secure)
Gets a secure version of the Base URL for this portal.
|
NavigationalState |
getNavigationalState()
Gets the NavigationalState for access to the current request portal control parameters
|
String |
getPageBasePath()
Returns the current Portal Page base path without possible encoded
NavigationalState parameter.
|
String |
getPath()
Gets the global navigational path of the current request.
|
String |
getPortalURL() |
boolean |
hasEncodedNavState() |
boolean |
isPathInfoEncodingNavState() |
boolean |
isRelativeOnly() |
boolean |
isSecure() |
void |
setCharacterEncoding(String characterEncoding) |
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Sets the @link{javax.servlet.http.HttpServletRequest} that will be used
to generate urls.
|
static final String HTTP
static final String HTTPS
static final String PATH_INFO_QUERY
static final String PATH_INFO_HEADER
boolean isRelativeOnly()
String getBaseURL()
String getBaseURL(boolean secure)
String getPath()
String getBasePath()
String getPageBasePath()
boolean isSecure()
NavigationalState getNavigationalState()
String createPortletURL(PortletWindow window, Map<String,String[]> parameters, javax.portlet.PortletMode mode, javax.portlet.WindowState state, boolean action, boolean secure)
window
- the PortalWindowparameters
- the new request or action parameters for the PortalWindowmode
- the new PortletMode for the PortalWindowstate
- the new WindowState for the PortalWindowaction
- indicates if an actionURL or renderURL is createdsecure
- indicates if a secure url is requiredString createPortletURL(PortletWindow window, Map<String,String[]> parameters, javax.portlet.PortletMode mode, javax.portlet.WindowState state, PortalURL.URLType urlType, boolean secure)
window
- the PortalWindowparameters
- the new request or action parameters for the PortalWindowmode
- the new PortletMode for the PortalWindowstate
- the new WindowState for the PortalWindowurlType
- indicates if an actionURL, Resource or renderURL is to createdsecure
- indicates if a secure url is requiredString createPortletURL(PortletWindow window, Map<String,String[]> parameters, String actionScopeId, boolean actionScopeRendered, String cacheLevel, String resourceId, Map<String,String[]> privateRenderParameters, Map<String,String[]> publicRenderParameters, javax.portlet.PortletMode mode, javax.portlet.WindowState state, PortalURL.URLType urlType, boolean secure)
window
- the PortalWindowparameters
- the new request or action parameters for the PortalWindowactionScopeId
- the new action scope for the PortalWindowactionScopeRendered
- the new action scope rendered flag for the PortalWindowcacheLevel
- the new cache level for the PortalWindow resourceresourceId
- the new resource id for the PortalWindow resourceprivateRenderParameters
- the new private render parameters for the PortalWindow resourcepublicRenderParameters
- the new request, action, or resource public render parameters for the PortalWindowmode
- the new PortletMode for the PortalWindowstate
- the new WindowState for the PortalWindowurlType
- indicates if an actionURL, Resource or renderURL is to createdsecure
- indicates if a secure url is requiredString createPortletURL(PortletWindow window, javax.portlet.PortletMode mode, javax.portlet.WindowState state, boolean secure)
window
- the PortalWindowmode
- the new PortletMode for the PortalWindowstate
- the new WindowState for the PortalWindowsecure
- secure
- indicates if a secure url is requiredvoid setRequest(javax.servlet.http.HttpServletRequest request)
request
- void setCharacterEncoding(String characterEncoding)
String createNavigationalEncoding(PortletWindow window, Map<String,String[]> parameters, javax.portlet.PortletMode mode, javax.portlet.WindowState state, boolean action)
window
- the PortalWindowparameters
- the new request or action parameters for the PortalWindowmode
- the new PortletMode for the PortalWindowstate
- the new WindowState for the PortalWindowaction
- indicates if an actionURL or renderURL is createdString createNavigationalEncoding(PortletWindow window, Map<String,String[]> parameters, javax.portlet.PortletMode mode, javax.portlet.WindowState state, PortalURL.URLType urlType)
window
- the PortalWindowparameters
- the new request or action parameters for the PortalWindowmode
- the new PortletMode for the PortalWindowstate
- the new WindowState for the PortalWindowurlType
- indicates if an actionURL, Resource or renderURL is to createdString createNavigationalEncoding(PortletWindow window, Map<String,String[]> parameters, String actionScopeId, boolean actionScopeRendered, String cacheLevel, String resourceId, Map<String,String[]> privateRenderParameters, Map<String,String[]> publicRenderParameters, javax.portlet.PortletMode mode, javax.portlet.WindowState state, PortalURL.URLType urlType)
window
- the PortalWindowparameters
- the new request or action parameters for the PortalWindowactionScopeId
- the new action scope for the PortalWindowactionScopeRendered
- the new action scope rendered flag for the PortalWindowcacheLevel
- the new cache level for the PortalWindow resourceresourceId
- the new resource id for the PortalWindow resourceprivateRenderParameters
- the new private render parameters for the PortalWindow resourcepublicRenderParameters
- the new request, action, or resource public render parameters for the PortalWindowmode
- the new PortletMode for the PortalWindowstate
- the new WindowState for the PortalWindowurlType
- indicates if an actionURL, Resource or renderURL is to createdString createNavigationalEncoding(PortletWindow window, javax.portlet.PortletMode mode, javax.portlet.WindowState state)
window
- the PortalWindowmode
- the new PortletMode for the PortalWindowstate
- the new WindowState for the PortalWindowString getPortalURL()
boolean hasEncodedNavState()
boolean isPathInfoEncodingNavState()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.