public interface HstContainerURLProvider
HstContainerURL
.
This is responsible for creating, parsing and stringifying the HstContainerURL
.Modifier and Type | Method and Description |
---|---|
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 baseURL,
String path)
Creates an
HstContainerURL instance for a new pathInfo (without query parameters)
based on the Mount and the base HstContainerURL instance. |
String |
getParameterNameComponentSeparator()
Returns the parameter name component separator.
|
void |
mergeParameters(HstContainerURL containerURL,
String referenceNamespace,
Map<String,String[]> parameters)
Merges the render parameters into the containerURL.
|
HstContainerURL |
parseURL(HstRequestContext requestContext,
ResolvedMount mount,
String requestPath,
Map<String,String[]> queryParams)
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 servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
ResolvedMount resolvedMount)
Parses the current request and creates an
HstContainerURL instance. |
HstContainerURL |
parseURL(javax.servlet.http.HttpServletRequest request,
ResolvedMount mount,
String requestPath,
Map<String,String[]> queryParams)
Parses a request for a specific
ResolvedMount and requestPath
and creates an HstContainerURL instance. |
HstContainerURL |
parseURL(ResolvedMount mount,
String contextPath,
String requestPath,
Map<String,String[]> queryParams,
String requestCharacterEncoding)
Parses a request for a specific
ResolvedMount , contextPath, requestPath and request character encoding
and creates an HstContainerURL instance. |
void |
setParameterNameComponentSeparator(String parameterNameComponentSeparator)
Sets the parameter name component separator.
|
String |
toContextRelativeURLString(HstContainerURL containerURL,
HstRequestContext requestContext)
Deprecated.
deprecated since 2.30.00 (CMS 10.0), use
toURLString(HstContainerURL, org.hippoecm.hst.core.request.HstRequestContext) instead |
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.
|
void setParameterNameComponentSeparator(String parameterNameComponentSeparator)
parameterNameComponentSeparator
- String getParameterNameComponentSeparator()
HstContainerURL parseURL(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, ResolvedMount resolvedMount)
HstContainerURL
instance.servletRequest
- servletResponse
- resolvedMount
- HstContainerURL parseURL(HstRequestContext requestContext, ResolvedMount mount, String requestPath, Map<String,String[]> queryParams)
HstRequestContext
for a new ResolvedMount
and requestPath
and creates an HstContainerURL
instance.requestContext
- mount
- requestPath
- queryParams
- HstContainerURL parseURL(javax.servlet.http.HttpServletRequest request, ResolvedMount mount, String requestPath, Map<String,String[]> queryParams)
ResolvedMount
and requestPath
and creates an HstContainerURL
instance.request
- mount
- requestPath
- queryParams
- HstContainerURL parseURL(ResolvedMount mount, String contextPath, String requestPath, Map<String,String[]> queryParams, String requestCharacterEncoding)
ResolvedMount
, contextPath, requestPath and request character encoding
and creates an HstContainerURL
instance. This operation doesn't depend on HttpServletRequest.mount
- contextPath
- requestPath
- queryParams
- requestCharacterEncoding
- HstContainerURL createURL(HstContainerURL baseContainerURL, String pathInfo)
HstContainerURL
instance for a new pathInfo (without query parameters)
based on the base HstContainerURL
instancebaseContainerURL
- pathInfo
- HstContainerURL createURL(Mount mount, HstContainerURL baseURL, String path)
HstContainerURL
instance for a new pathInfo (without query parameters)
based on the Mount
and the base HstContainerURL
instance.mount
- baseURL
- path
- HstContainerURL createURL(HstContainerURL baseContainerURL, HstURL hstUrl)
HstContainerURL
instance by merging the information of hstUrl
based on the base HstContainerURL
instancebaseContainerURL
- hstUrl
- void mergeParameters(HstContainerURL containerURL, String referenceNamespace, Map<String,String[]> parameters)
containerURL
- referenceNamespace
- parameters
- @Deprecated String toContextRelativeURLString(HstContainerURL containerURL, HstRequestContext requestContext) throws UnsupportedEncodingException, ContainerException
toURLString(HstContainerURL, org.hippoecm.hst.core.request.HstRequestContext)
insteadcontainerURL
- requestContext
- UnsupportedEncodingException
ContainerException
String toURLString(HstContainerURL containerURL, HstRequestContext requestContext) throws UnsupportedEncodingException, ContainerException
containerURL
- requestContext
- UnsupportedEncodingException
ContainerException
String toURLString(HstContainerURL containerURL, HstRequestContext requestContext, String contextPath) throws UnsupportedEncodingException, ContainerException
By this method, you can specify the context path such as '/mycontext'.
containerURL
- requestContext
- contextPath
- UnsupportedEncodingException
ContainerException
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.