public interface HstURLFactory
Modifier and Type | Method and 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 URL
|
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 explicit
contextPath , for example needed when the Mount to create a link for has a different contextpath
than the ResolvedMount belonging to the HstRequestContext |
HstContainerURLProvider |
getContainerURLProvider()
Returns the HstContainerURLProvider.
|
boolean |
isReferenceNamespaceIgnored()
Returns the flag if parameter namespacing is ignored or not.
|
HstContainerURLProvider getContainerURLProvider()
HstURL createURL(String type, String referenceNamespace, HstContainerURL base, HstRequestContext requestContext)
type
- the HstURL type. It should one of HstURL.ACTION_TYPE
, HstURL.RENDER_TYPE
or HstURL.RESOURCE_TYPE
.referenceNamespace
- the reference namespace of the HstComponent's window.base
- the base HstContainer URLrequestContext
- the current HstRequestContextHstURL createURL(String type, String referenceNamespace, HstContainerURL base, HstRequestContext requestContext, String contextPath)
contextPath
, for example needed when the Mount
to create a link for has a different contextpath
than the ResolvedMount
belonging to the HstRequestContext
type
- the HstURL type. It should one of HstURL.ACTION_TYPE
, HstURL.RENDER_TYPE
or HstURL.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 is null
the
contextPath from the ResolvedMount
will be used. If is is EMPTY string, the contextPath will be set to empty ""boolean isReferenceNamespaceIgnored()
Copyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.