ACTION_TYPE, COMPONENT_RENDERING_TYPE, RENDER_TYPE, RESOURCE_TYPE
Constructor and Description |
---|
MockHstURL() |
Modifier and Type | Method and Description |
---|---|
Map<String,String[]> |
getParameterMap()
Returns the parameter map of this url.
|
String |
getReferenceNamespace()
Returns the reference namespace
|
String |
getResourceID()
Returns the resource ID
|
String |
getType()
Returns the url type: render, action or resource
|
void |
setParameter(Map<String,String[]> parameters) |
void |
setParameter(String key,
String value)
Sets a parameter of this url.
|
void |
setParameter(String key,
String[] values)
Sets a parameter array of this url.
|
void |
setParameters(Map<String,String[]> parameters)
Sets parameter map of this url
|
void |
setReferenceNamespace(String referenceNamespace) |
void |
setResourceID(String resourceID)
Allows setting a resource ID that can be retrieved when serving the resource
through HstRequest.getResourceID() method in a HstComponent instance.
|
void |
setType(String type) |
void |
write(Writer out)
Writes the string representation of this url.
|
void |
write(Writer out,
boolean escapeXML)
Writes the string representation of this url, as xml-escaped.
|
public String getType()
HstURL
public void setType(String type)
public String getReferenceNamespace()
HstURL
getReferenceNamespace
in interface HstURL
public void setReferenceNamespace(String referenceNamespace)
public void setParameter(String key, String value)
HstURL
setParameter
in interface HstURL
public void setParameter(String key, String[] values)
HstURL
setParameter
in interface HstURL
public void setParameters(Map<String,String[]> parameters)
HstURL
setParameters
in interface HstURL
public Map<String,String[]> getParameterMap()
HstURL
getParameterMap
in interface HstURL
public void write(Writer out) throws IOException
HstURL
write
in interface HstURL
IOException
public void write(Writer out, boolean escapeXML) throws IOException
HstURL
write
in interface HstURL
IOException
public void setResourceID(String resourceID)
HstURL
setResourceID
in interface HstURL
public String getResourceID()
HstURL
getResourceID
in interface HstURL
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.