public interface HstContainerURL
Modifier and Type | Method and Description |
---|---|
Map<String,String[]> |
getActionParameterMap()
Returns the action parameter map.
|
String |
getActionWindowReferenceNamespace()
Returns the reference namespace of the current action window if it exists.
|
String |
getCharacterEncoding()
Returns the current response's character encoding.
|
String |
getComponentRenderingWindowReferenceNamespace()
Returns the reference namespace of the current rendering component if it exists.
|
String |
getContextPath()
Returns the current container's servlet context path.
|
String |
getHostName()
Returns the host name of the request: note that with reverse proxies, this can be the original host informations requested
by the client or the proxies
|
String |
getParameter(String name)
Returns the value of a render parameter as a
String ,
or null if the render parameter does not exist. |
Map<String,String[]> |
getParameterMap()
Returns the render parameter map.
|
String[] |
getParameterValues(String name)
Returns an array of
String objects containing
all of the values the given render parameter has, or
null if the render parameter does not exist. |
String |
getPathInfo()
Returns the current request's path info (part after context path and
Mount path) |
int |
getPortNumber()
Returns the portnumber of the request: note that with reverse proxies, this can be the original port requested
by the client or the proxies
|
String |
getRequestPath()
Returns the current request after the context path but before the queryString.
|
String |
getResolvedMountPath() |
String |
getResourceId()
Returns the resource ID if the current request is for serving resource in a component window.
|
String |
getResourceWindowReferenceNamespace()
Returns the reference namespace of the current resource serving window if it exists.
|
String |
getURIEncoding()
Returns the current response's URI encoding.
|
void |
setActionParameter(String name,
String value)
Sets the action parameter for the target HstComponent.
|
void |
setActionParameter(String name,
String[] values)
Sets the action parameter values for the target HstComponent.
|
void |
setActionParameters(Map<String,String[]> parameters)
Sets the action parameter map.
|
void |
setActionWindowReferenceNamespace(String actionWindowReferenceNamespace)
Sets the reference namespace of the current action window if it is necessary.
|
void |
setComponentRenderingWindowReferenceNamespace(String componentRenderingWindowReferenceNamespace)
Sets the reference namespace of the current component rendering window if it is necessary.
|
void |
setParameter(String name,
String value)
Sets the render parameter for a HstComponent.
|
void |
setParameter(String name,
String[] values)
Sets the render parameter value array for a HstComponent.
|
void |
setParameters(Map<String,String[]> parameters)
Sets the render parameter map.
|
void |
setResourceId(String resourceId)
Sets the resource ID if the current request is for serving resource in a component window.
|
void |
setResourceWindowReferenceNamespace(String resourceWindowReferenceNamespace)
Sets the reference namespace of the current resource serving window if it is necessary.
|
String getCharacterEncoding()
String getURIEncoding()
String getHostName()
String getContextPath()
String getRequestPath()
int getPortNumber()
String getResolvedMountPath()
ResolvedMount
path or null
when not yet resolvedString getPathInfo()
Mount
path)null
when the resolved mount path is not yet resolvedString getActionWindowReferenceNamespace()
void setActionWindowReferenceNamespace(String actionWindowReferenceNamespace)
actionWindowReferenceNamespace
- String getResourceWindowReferenceNamespace()
void setResourceWindowReferenceNamespace(String resourceWindowReferenceNamespace)
resourceWindowReferenceNamespace
- String getComponentRenderingWindowReferenceNamespace()
null
null
if the request is not a component rendering requestvoid setComponentRenderingWindowReferenceNamespace(String componentRenderingWindowReferenceNamespace)
componentRenderingWindowReferenceNamespace
- String getResourceId()
void setResourceId(String resourceId)
resourceId
- void setParameter(String name, String value)
name
- value
- void setParameter(String name, String[] values)
name
- values
- void setParameters(Map<String,String[]> parameters)
parameters
- Map<String,String[]> getParameterMap()
String getParameter(String name)
String
,
or null
if the render parameter does not exist.
You should only use this method when you are sure the
parameter has only one value. If the parameter might have
more than one value, use getParameterValues(java.lang.String)
.
If you use this method with a multivalued
parameter, the value returned is equal to the first value
in the array returned by getParameterValues
.
name
- String[] getParameterValues(String name)
String
objects containing
all of the values the given render parameter has, or
null
if the render parameter does not exist.name
- void setActionParameter(String name, String value)
name
- value
- void setActionParameter(String name, String[] values)
name
- values
- void setActionParameters(Map<String,String[]> parameters)
parameters
- Copyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.