|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.core.container.HstContainerURLProviderImpl
public class HstContainerURLProviderImpl
The default implementation providing HstContainerURL. This implementation assume the urls are like the following examples:
Field Summary | |
---|---|
protected static String |
DEFAULT_HST_URL_NAMESPACE_PREFIX
|
protected HstEmbeddedPortletContainerURLWriter |
embeddedPortletContainerURLWriter
|
protected static org.slf4j.Logger |
log
|
protected HstNavigationalStateCodec |
navigationalStateCodec
|
protected String |
parameterNameComponentSeparator
|
protected HstPortletContainerURLWriter |
portletContainerURLWriter
|
protected boolean |
portletResourceURLEnabled
|
protected static String |
REQUEST_INFO_SEPARATOR
|
protected String |
urlNamespacePrefix
|
protected String |
urlNamespacePrefixedPath
|
Constructor Summary | |
---|---|
HstContainerURLProviderImpl()
|
Method Summary | |
---|---|
protected String |
buildHstURLPath(HstContainerURL containerURL,
HstRequestContext requestContext)
|
HstContainerURL |
createURL(HstContainerURL baseContainerURL,
HstURL hstUrl)
Creates an HstContainerURL instance by merging the information of hstUrl
based on the base HstContainerURL instance |
HstContainerURL |
createURL(HstContainerURL baseContainerURL,
String pathInfo)
Creates an HstContainerURL instance for a new pathInfo (without query parameters)
based on the base HstContainerURL instance |
HstContainerURL |
createURL(Mount mount,
HstContainerURL baseContainerURL,
String pathInfo)
Creates an HstContainerURL instance for a new pathInfo (without query parameters)
based on the Mount and the base HstContainerURL instance. |
protected HstEmbeddedPortletContainerURLWriter |
getEmbeddedPortletContainerURLWriter()
|
HstNavigationalStateCodec |
getNavigationalStateCodec()
|
String |
getParameterNameComponentSeparator()
Returns the parameter name component separator. |
protected HstPortletContainerURLWriter |
getPortletContainerURLWriter()
|
String |
getUrlNamespacePrefix()
|
boolean |
isPortletResourceURLEnabled()
|
void |
mergeParameters(HstContainerURL containerURL,
String referenceNamespace,
Map<String,String[]> parameterMap)
Merges the render parameters into the containerURL. |
protected void |
parseRequestInfo(HstContainerURL url,
String encodedRequestInfo)
|
HstContainerURL |
parseURL(HstRequestContext requestContext,
ResolvedMount mount,
String requestPath)
Parses a specified requestPath with the current HstRequestContext for a new ResolvedMount and requestPath
and creates an HstContainerURL instance. |
HstContainerURL |
parseURL(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ResolvedMount resolvedMount)
Parses the current request and creates an HstContainerURL instance. |
HstContainerURL |
parseURL(javax.servlet.http.HttpServletRequest request,
ResolvedMount mount,
String requestPath)
Parses a request for a specific ResolvedMount and requestPath
and creates an HstContainerURL instance. |
void |
setNavigationalStateCodec(HstNavigationalStateCodec navigationalStateCodec)
|
void |
setParameterNameComponentSeparator(String parameterNameComponentSeparator)
Sets the parameter name component separator. |
void |
setPortletResourceURLEnabled(boolean portletResourceURLEnabled)
|
void |
setUrlNamespacePrefix(String urlNamespacePrefix)
|
protected String[] |
splitPathInfo(ResolvedMount resolvedMount,
javax.servlet.http.HttpServletRequest request,
String characterEncoding)
|
protected String[] |
splitPathInfo(String requestPath,
String characterEncoding)
|
String |
toContextRelativeURLString(HstContainerURL containerURL,
HstRequestContext requestContext)
Stringifying the containerURL as a context relative path. |
String |
toURLString(HstContainerURL containerURL,
HstRequestContext requestContext)
Stringifying the containerURL as a full URL string. |
String |
toURLString(HstContainerURL containerURL,
HstRequestContext requestContext,
String contextPath)
Stringifying the containerURL as a full URL string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.slf4j.Logger log
protected static final String REQUEST_INFO_SEPARATOR
protected static final String DEFAULT_HST_URL_NAMESPACE_PREFIX
protected String urlNamespacePrefix
protected String urlNamespacePrefixedPath
protected String parameterNameComponentSeparator
protected HstNavigationalStateCodec navigationalStateCodec
protected boolean portletResourceURLEnabled
protected HstPortletContainerURLWriter portletContainerURLWriter
protected HstEmbeddedPortletContainerURLWriter embeddedPortletContainerURLWriter
Constructor Detail |
---|
public HstContainerURLProviderImpl()
Method Detail |
---|
public void setPortletResourceURLEnabled(boolean portletResourceURLEnabled)
public boolean isPortletResourceURLEnabled()
public void setUrlNamespacePrefix(String urlNamespacePrefix)
public String getUrlNamespacePrefix()
public void setParameterNameComponentSeparator(String parameterNameComponentSeparator)
HstContainerURLProvider
setParameterNameComponentSeparator
in interface HstContainerURLProvider
public String getParameterNameComponentSeparator()
HstContainerURLProvider
getParameterNameComponentSeparator
in interface HstContainerURLProvider
public void setNavigationalStateCodec(HstNavigationalStateCodec navigationalStateCodec)
public HstNavigationalStateCodec getNavigationalStateCodec()
public HstContainerURL parseURL(javax.servlet.http.HttpServletRequest request, ResolvedMount mount, String requestPath)
HstContainerURLProvider
ResolvedMount
and requestPath
and creates an HstContainerURL
instance.
parseURL
in interface HstContainerURLProvider
public HstContainerURL parseURL(HstRequestContext requestContext, ResolvedMount mount, String requestPath)
HstContainerURLProvider
HstRequestContext
for a new ResolvedMount
and requestPath
and creates an HstContainerURL
instance.
parseURL
in interface HstContainerURLProvider
public HstContainerURL parseURL(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ResolvedMount resolvedMount)
HstContainerURLProvider
HstContainerURL
instance.
parseURL
in interface HstContainerURLProvider
public HstContainerURL createURL(HstContainerURL baseContainerURL, String pathInfo)
HstContainerURLProvider
HstContainerURL
instance for a new pathInfo (without query parameters)
based on the base HstContainerURL
instance
createURL
in interface HstContainerURLProvider
public HstContainerURL createURL(Mount mount, HstContainerURL baseContainerURL, String pathInfo)
HstContainerURLProvider
HstContainerURL
instance for a new pathInfo (without query parameters)
based on the Mount
and the base HstContainerURL
instance.
createURL
in interface HstContainerURLProvider
public HstContainerURL createURL(HstContainerURL baseContainerURL, HstURL hstUrl)
HstContainerURLProvider
HstContainerURL
instance by merging the information of hstUrl
based on the base HstContainerURL
instance
createURL
in interface HstContainerURLProvider
public void mergeParameters(HstContainerURL containerURL, String referenceNamespace, Map<String,String[]> parameterMap)
HstContainerURLProvider
mergeParameters
in interface HstContainerURLProvider
public String toContextRelativeURLString(HstContainerURL containerURL, HstRequestContext requestContext) throws UnsupportedEncodingException, ContainerException
HstContainerURLProvider
toContextRelativeURLString
in interface HstContainerURLProvider
UnsupportedEncodingException
ContainerException
protected HstPortletContainerURLWriter getPortletContainerURLWriter()
protected HstEmbeddedPortletContainerURLWriter getEmbeddedPortletContainerURLWriter()
protected String buildHstURLPath(HstContainerURL containerURL, HstRequestContext requestContext) throws UnsupportedEncodingException
UnsupportedEncodingException
protected void parseRequestInfo(HstContainerURL url, String encodedRequestInfo)
protected String[] splitPathInfo(String requestPath, String characterEncoding)
protected String[] splitPathInfo(ResolvedMount resolvedMount, javax.servlet.http.HttpServletRequest request, String characterEncoding)
public String toURLString(HstContainerURL containerURL, HstRequestContext requestContext) throws UnsupportedEncodingException, ContainerException
HstContainerURLProvider
toURLString
in interface HstContainerURLProvider
UnsupportedEncodingException
ContainerException
public String toURLString(HstContainerURL containerURL, HstRequestContext requestContext, String contextPath) throws UnsupportedEncodingException, ContainerException
HstContainerURLProvider
By this method, you can specify the context path such as '/mycontext'.
toURLString
in interface HstContainerURLProvider
UnsupportedEncodingException
ContainerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |