org.hippoecm.hst.core.component
Class HstURLImpl

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

public class HstURLImpl
extends Object
implements HstURL

HstURLImpl

Version:
$Id: HstURLImpl.java 31568 2011-11-29 20:49:46Z wko $

Field Summary
protected  HstContainerURL baseContainerURL
           
protected  String explicitContextPath
           
protected  Map<String,String[]> parameterMap
           
protected  String referenceNamespace
           
protected  HstRequestContext requestContext
           
protected  String resourceID
           
protected  String type
           
protected  HstContainerURLProvider urlProvider
           
 
Fields inherited from interface org.hippoecm.hst.core.component.HstURL
ACTION_TYPE, COMPONENT_RENDERING_TYPE, RENDER_TYPE, RESOURCE_TYPE
 
Constructor Summary
HstURLImpl(String type, HstContainerURL baseContainerURL, String referenceNamespace, HstContainerURLProvider urlProvider, HstRequestContext requestContext)
           
HstURLImpl(String type, HstContainerURL baseContainerURL, String referenceNamespace, HstContainerURLProvider urlProvider, HstRequestContext requestContext, String explicitContextPath)
           
 
Method Summary
 HstContainerURL getBaseContainerURL()
           
 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(String name, String value)
          Sets a parameter of this url.
 void setParameter(String name, String[] values)
          Sets a parameter array of this url.
 void setParameters(Map<String,String[]> parameters)
          Sets parameter map of this url
 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.
 String toString()
          Returns string representation of this url.
 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, wait, wait, wait
 

Field Detail

type

protected String type

referenceNamespace

protected String referenceNamespace

baseContainerURL

protected HstContainerURL baseContainerURL

parameterMap

protected Map<String,String[]> parameterMap

resourceID

protected String resourceID

urlProvider

protected HstContainerURLProvider urlProvider

requestContext

protected transient HstRequestContext requestContext

explicitContextPath

protected String explicitContextPath
Constructor Detail

HstURLImpl

public HstURLImpl(String type,
                  HstContainerURL baseContainerURL,
                  String referenceNamespace,
                  HstContainerURLProvider urlProvider,
                  HstRequestContext requestContext)

HstURLImpl

public HstURLImpl(String type,
                  HstContainerURL baseContainerURL,
                  String referenceNamespace,
                  HstContainerURLProvider urlProvider,
                  HstRequestContext requestContext,
                  String explicitContextPath)
Method Detail

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:

getType

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

Specified by:
getType in interface HstURL
Returns:

getReferenceNamespace

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

Specified by:
getReferenceNamespace in interface HstURL
Returns:
String

getBaseContainerURL

public HstContainerURL getBaseContainerURL()

setParameter

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

Specified by:
setParameter in interface HstURL

setParameter

public void setParameter(String name,
                         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

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

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

toString

public String toString()
Description copied from interface: HstURL
Returns string representation of this url.

Specified by:
toString in interface HstURL
Overrides:
toString in class Object


Copyright © 2008-2012 Hippo. All Rights Reserved.