org.hippoecm.hst.mock.core.component
Class MockHstURL

java.lang.Object
  extended by org.hippoecm.hst.mock.core.component.MockHstURL
All Implemented Interfaces:
HstURL

public class MockHstURL
extends Object
implements HstURL

MockHstURL


Field Summary
 
Fields inherited from interface org.hippoecm.hst.core.component.HstURL
ACTION_TYPE, COMPONENT_RENDERING_TYPE, RENDER_TYPE, RESOURCE_TYPE
 
Constructor Summary
MockHstURL()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hippoecm.hst.core.component.HstURL
toString
 

Constructor Detail

MockHstURL

public MockHstURL()
Method Detail

getType

public String getType()
Description copied from interface: HstURL
Returns the url type: render, action or resource

Specified by:
getType in interface HstURL
Returns:

setType

public void setType(String type)

getReferenceNamespace

public String getReferenceNamespace()
Description copied from interface: HstURL
Returns the reference namespace

Specified by:
getReferenceNamespace in interface HstURL
Returns:
String

setReferenceNamespace

public void setReferenceNamespace(String referenceNamespace)

setParameter

public void setParameter(String key,
                         String value)
Description copied from interface: HstURL
Sets a parameter of this url.

Specified by:
setParameter in interface HstURL

setParameter

public void setParameter(String key,
                         String[] values)
Description copied from interface: HstURL
Sets a parameter array of this url.

Specified by:
setParameter in interface HstURL

setParameters

public void setParameters(Map<String,String[]> parameters)
Description copied from interface: HstURL
Sets parameter map of this url

Specified by:
setParameters in interface HstURL

setParameter

public void setParameter(Map<String,String[]> parameters)

getParameterMap

public Map<String,String[]> getParameterMap()
Description copied from interface: HstURL
Returns the parameter map of this url.

Specified by:
getParameterMap in interface HstURL
Returns:

write

public void write(Writer out)
           throws IOException
Description copied from interface: HstURL
Writes the string representation of this url.

Specified by:
write in interface HstURL
Throws:
IOException

write

public void write(Writer out,
                  boolean escapeXML)
           throws IOException
Description copied from interface: HstURL
Writes the string representation of this url, as xml-escaped.

Specified by:
write in interface HstURL
Throws:
IOException

setResourceID

public void setResourceID(String resourceID)
Description copied from interface: HstURL
Allows setting a resource ID that can be retrieved when serving the resource through HstRequest.getResourceID() method in a HstComponent instance.

Specified by:
setResourceID in interface HstURL

getResourceID

public String getResourceID()
Description copied from interface: HstURL
Returns the resource ID

Specified by:
getResourceID in interface HstURL
Returns:
String


Copyright © 2008-2012 Hippo. All Rights Reserved.