public void setParameter(String name, String value) { setParameter(name, value != null ? new String [] { value } : (String []) null); }
public void write(Writer out) throws IOException { out.write(toString()); }
public void write(Writer out, boolean escapeXML) throws IOException { write(out); }
public HstURL createURL(String type, String referenceNamespace, HstContainerURL containerURL, HstRequestContext requestContext) { // if container url == null, use the requestContext baseUrl HstContainerURL baseContainerURL = (containerURL == null ? requestContext.getBaseURL() : containerURL); if (referenceNamespaceIgnored && HstURL.RENDER_TYPE.equals(type)) { referenceNamespace = ""; } return new HstURLImpl(type, baseContainerURL, referenceNamespace, getContainerURLProvider(), requestContext); } }
public String toString() { HstContainerURL containerURL = this.urlProvider.createURL(this.baseContainerURL, this); containerURL.setResourceId(getResourceID()); try { return this.urlProvider.toURLString(containerURL, requestContext); } catch (UnsupportedEncodingException e) { throw new HstComponentException(e); } catch (ContainerException e) { throw new HstComponentException(e); } }
public HstURL createURL(String type, String referenceNamespace, HstContainerURL containerURL, HstRequestContext requestContext, String contextPath) { // if container url == null, use the requestContext baseUrl HstContainerURL baseContainerURL = (containerURL == null ? requestContext.getBaseURL() : containerURL); if (referenceNamespaceIgnored && HstURL.RENDER_TYPE.equals(type)) { referenceNamespace = ""; } return new HstURLImpl(type, baseContainerURL, referenceNamespace, getContainerURLProvider(), requestContext, contextPath); } }
public String toString() { HstContainerURL containerURL = this.urlProvider.createURL(this.baseContainerURL, this); containerURL.setResourceId(getResourceID()); try { return this.urlProvider.toURLString(containerURL, requestContext, explicitContextPath); } catch (UnsupportedEncodingException e) { throw new HstComponentException(e); } catch (ContainerException e) { throw new HstComponentException(e); } }
public void setParameter(String name, String value) { setParameter(name, value != null ? new String [] { value } : (String []) null); }
public void write(Writer out) throws IOException { out.write(toString()); }
public void write(Writer out, boolean escapeXML) throws IOException { write(out); }
public void setParameters(Map<String, String[]> parameters) { for (Map.Entry<String, String []> entry : parameters.entrySet()) { setParameter(entry.getKey(), entry.getValue()); } }
public void setParameters(Map<String, String[]> parameters) { for (Map.Entry<String, String []> entry : parameters.entrySet()) { setParameter(entry.getKey(), entry.getValue()); } }