|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.core.component.HstURLFactoryImpl
public class HstURLFactoryImpl
HstURLFactoryImpl
Field Summary | |
---|---|
protected HstContainerURLProvider |
containerURLProvider
|
protected HstNavigationalStateCodec |
navigationalStateCodec
|
protected String |
parameterNameComponentSeparator
|
protected boolean |
portletResourceURLEnabled
|
protected boolean |
referenceNamespaceIgnored
|
protected String |
urlNamespacePrefix
|
Constructor Summary | |
---|---|
HstURLFactoryImpl()
|
Method Summary | |
---|---|
HstURL |
createURL(String type,
String referenceNamespace,
HstContainerURL containerURL,
HstRequestContext requestContext)
Returns HstURL for the HstURL type with reference namespace based on the base container URL |
HstURL |
createURL(String type,
String referenceNamespace,
HstContainerURL containerURL,
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. |
void |
setNavigationalStateCodec(HstNavigationalStateCodec navigationalStateCodec)
|
void |
setParameterNameComponentSeparator(String parameterNameComponentSeparator)
|
void |
setPortletResourceURLEnabled(boolean portletResourceURLEnabled)
|
void |
setReferenceNamespaceIgnored(boolean referenceNamespaceIgnored)
|
void |
setUrlNamespacePrefix(String urlNamespacePrefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean referenceNamespaceIgnored
protected String urlNamespacePrefix
protected String parameterNameComponentSeparator
protected HstNavigationalStateCodec navigationalStateCodec
protected boolean portletResourceURLEnabled
protected HstContainerURLProvider containerURLProvider
Constructor Detail |
---|
public HstURLFactoryImpl()
Method Detail |
---|
public void setUrlNamespacePrefix(String urlNamespacePrefix)
public void setParameterNameComponentSeparator(String parameterNameComponentSeparator)
public void setNavigationalStateCodec(HstNavigationalStateCodec navigationalStateCodec)
public void setPortletResourceURLEnabled(boolean portletResourceURLEnabled)
public void setReferenceNamespaceIgnored(boolean referenceNamespaceIgnored)
public boolean isReferenceNamespaceIgnored()
HstURLFactory
isReferenceNamespaceIgnored
in interface HstURLFactory
public HstContainerURLProvider getContainerURLProvider()
HstURLFactory
getContainerURLProvider
in interface HstURLFactory
public HstURL createURL(String type, String referenceNamespace, HstContainerURL containerURL, HstRequestContext requestContext)
HstURLFactory
createURL
in interface HstURLFactory
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.containerURL
- the base HstContainer URLrequestContext
- the current HstRequestContext
public HstURL createURL(String type, String referenceNamespace, HstContainerURL containerURL, HstRequestContext requestContext, String contextPath)
HstURLFactory
contextPath
, for example needed when the Mount
to create a link for has a different contextpath
than the ResolvedMount
belonging to the HstRequestContext
createURL
in interface HstURLFactory
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.containerURL
- 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 ""
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |