|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HstContainerURLProvider
The URL provider for the HstContainerURL
.
This is responsible for creating, parsing and stringifying the HstContainerURL
.
Method Summary | |
---|---|
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)
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)
Parses a request for a specific ResolvedMount and requestPath
and creates an HstContainerURL instance. |
void |
setParameterNameComponentSeparator(String parameterNameComponentSeparator)
Sets the parameter name component separator. |
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. |
Method Detail |
---|
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)
HstRequestContext
for a new ResolvedMount
and requestPath
and creates an HstContainerURL
instance.
requestContext
- mount
- requestPath
-
HstContainerURL parseURL(javax.servlet.http.HttpServletRequest request, ResolvedMount mount, String requestPath)
ResolvedMount
and requestPath
and creates an HstContainerURL
instance.
request
- requestPath
- mount
-
HstContainerURL createURL(HstContainerURL baseContainerURL, String pathInfo)
HstContainerURL
instance for a new pathInfo (without query parameters)
based on the base HstContainerURL
instance
baseContainerURL
- 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
instance
baseContainerURL
- hstUrl
-
void mergeParameters(HstContainerURL containerURL, String referenceNamespace, Map<String,String[]> parameters)
containerURL
- referenceNamespace
- parameters
- String toContextRelativeURLString(HstContainerURL containerURL, HstRequestContext requestContext) throws UnsupportedEncodingException, ContainerException
containerURL
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |