|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Nested Class Summary | |
---|---|
static class |
PortalURL.URLType
|
Field Summary | |
---|---|
static java.lang.String |
HTTP
HTTP protocol. |
static java.lang.String |
HTTPS
HTTPS protocol. |
static java.lang.String |
PATH_INFO_HEADER
Portal Path Info HTTP Header name. |
static java.lang.String |
PATH_INFO_QUERY
Portal Path Info Query parameter. |
Method Summary | |
---|---|
java.lang.String |
createNavigationalEncoding(PortletWindow window,
java.util.Map<java.lang.String,java.lang.String[]> parameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
boolean action)
Deprecated. |
java.lang.String |
createNavigationalEncoding(PortletWindow window,
java.util.Map<java.lang.String,java.lang.String[]> parameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
PortalURL.URLType urlType)
Deprecated. |
java.lang.String |
createNavigationalEncoding(PortletWindow window,
java.util.Map<java.lang.String,java.lang.String[]> parameters,
java.lang.String actionScopeId,
boolean actionScopeRendered,
java.lang.String cacheLevel,
java.lang.String resourceId,
java.util.Map<java.lang.String,java.lang.String[]> privateRenderParameters,
java.util.Map<java.lang.String,java.lang.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 |
java.lang.String |
createNavigationalEncoding(PortletWindow window,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state)
Creates the navigational encoding for a given window Similiar to createPortletURL above |
java.lang.String |
createPortletURL(PortletWindow window,
java.util.Map<java.lang.String,java.lang.String[]> parameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
boolean action,
boolean secure)
Deprecated. |
java.lang.String |
createPortletURL(PortletWindow window,
java.util.Map<java.lang.String,java.lang.String[]> parameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
PortalURL.URLType urlType,
boolean secure)
Deprecated. |
java.lang.String |
createPortletURL(PortletWindow window,
java.util.Map<java.lang.String,java.lang.String[]> parameters,
java.lang.String actionScopeId,
boolean actionScopeRendered,
java.lang.String cacheLevel,
java.lang.String resourceId,
java.util.Map<java.lang.String,java.lang.String[]> privateRenderParameters,
java.util.Map<java.lang.String,java.lang.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. |
java.lang.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. |
java.lang.String |
getBasePath()
Returns the current Portal base path. |
java.lang.String |
getBaseURL()
Gets the Base URL for this portal. |
java.lang.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 |
java.lang.String |
getPageBasePath()
Returns the current Portal Page base path without possible encoded NavigationalState parameter. |
java.lang.String |
getPath()
Gets the global navigational path of the current request. |
java.lang.String |
getPortalURL()
|
boolean |
hasEncodedNavState()
|
boolean |
isPathInfoEncodingNavState()
|
boolean |
isRelativeOnly()
|
boolean |
isSecure()
|
void |
setCharacterEncoding(java.lang.String characterEncoding)
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Sets the @link{javax.servlet.http.HttpServletRequest} that will be used to generate urls. |
Field Detail |
---|
static final java.lang.String HTTP
static final java.lang.String HTTPS
static final java.lang.String PATH_INFO_QUERY
static final java.lang.String PATH_INFO_HEADER
Method Detail |
---|
boolean isRelativeOnly()
java.lang.String getBaseURL()
java.lang.String getBaseURL(boolean secure)
java.lang.String getPath()
java.lang.String getBasePath()
java.lang.String getPageBasePath()
boolean isSecure()
NavigationalState getNavigationalState()
java.lang.String createPortletURL(PortletWindow window, java.util.Map<java.lang.String,java.lang.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 required
java.lang.String createPortletURL(PortletWindow window, java.util.Map<java.lang.String,java.lang.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 required
java.lang.String createPortletURL(PortletWindow window, java.util.Map<java.lang.String,java.lang.String[]> parameters, java.lang.String actionScopeId, boolean actionScopeRendered, java.lang.String cacheLevel, java.lang.String resourceId, java.util.Map<java.lang.String,java.lang.String[]> privateRenderParameters, java.util.Map<java.lang.String,java.lang.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 required
java.lang.String 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 required
void setRequest(javax.servlet.http.HttpServletRequest request)
request
- void setCharacterEncoding(java.lang.String characterEncoding)
java.lang.String createNavigationalEncoding(PortletWindow window, java.util.Map<java.lang.String,java.lang.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 createdsecure
- indicates if a secure url is required
java.lang.String createNavigationalEncoding(PortletWindow window, java.util.Map<java.lang.String,java.lang.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 createdsecure
- indicates if a secure url is required
java.lang.String createNavigationalEncoding(PortletWindow window, java.util.Map<java.lang.String,java.lang.String[]> parameters, java.lang.String actionScopeId, boolean actionScopeRendered, java.lang.String cacheLevel, java.lang.String resourceId, java.util.Map<java.lang.String,java.lang.String[]> privateRenderParameters, java.util.Map<java.lang.String,java.lang.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 createdsecure
- indicates if a secure url is required
java.lang.String 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 PortalWindowsecure
- secure
- indicates if a secure url is required
java.lang.String getPortalURL()
boolean hasEncodedNavState()
boolean isPathInfoEncodingNavState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |