Package org.hippoecm.hst.core.component
Interface HstURLFactory
-
public interface HstURLFactory
HstURL Factory interface. It is mainly responsible to generate HstURL.- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HstURL
createURL(String type, String referenceNamespace, HstContainerURL base, HstRequestContext requestContext)
Returns HstURL for the HstURL type with reference namespace based on the base container URLHstURL
createURL(String type, String referenceNamespace, HstContainerURL base, HstRequestContext requestContext, String contextPath)
Returns HstURL for the HstURL type with reference namespace based on the base container URL and an explicitcontextPath
, for example needed when theMount
to create a link for has a different contextpath than theResolvedMount
belonging to theHstRequestContext
HstContainerURLProvider
getContainerURLProvider()
Returns the HstContainerURLProvider.boolean
isReferenceNamespaceIgnored()
Returns the flag if parameter namespacing is ignored or not.
-
-
-
Method Detail
-
getContainerURLProvider
HstContainerURLProvider getContainerURLProvider()
Returns the HstContainerURLProvider.
-
createURL
HstURL createURL(String type, String referenceNamespace, HstContainerURL base, HstRequestContext requestContext)
Returns HstURL for the HstURL type with reference namespace based on the base container URL- Parameters:
type
- the HstURL type. It should one ofHstURL.ACTION_TYPE
,HstURL.RENDER_TYPE
orHstURL.RESOURCE_TYPE
.referenceNamespace
- the reference namespace of the HstComponent's window.base
- the base HstContainer URLrequestContext
- the current HstRequestContext
-
createURL
HstURL createURL(String type, String referenceNamespace, HstContainerURL base, HstRequestContext requestContext, String contextPath)
Returns HstURL for the HstURL type with reference namespace based on the base container URL and an explicitcontextPath
, for example needed when theMount
to create a link for has a different contextpath than theResolvedMount
belonging to theHstRequestContext
- Parameters:
type
- the HstURL type. It should one ofHstURL.ACTION_TYPE
,HstURL.RENDER_TYPE
orHstURL.RESOURCE_TYPE
.referenceNamespace
- the reference namespace of the HstComponent's window.base
- the base HstContainer URLrequestContext
- the current HstRequestContextcontextPath
- the context path for the URL to create. If it isnull
the contextPath from theResolvedMount
will be used. If is is EMPTY string, the contextPath will be set to empty ""
-
isReferenceNamespaceIgnored
boolean isReferenceNamespaceIgnored()
Returns the flag if parameter namespacing is ignored or not. It returns false by default.
-
-