/** * @return returns a component rendering URL that <strong>includes</strong> the request parameters for the * {@link org.hippoecm.hst.core.component.HstRequest} parameter as well as these are required for async component rendering requests */ protected HstURL createAsyncComponentRenderingURL(final HstRequest request, final HstResponse response) { HstURL url = response.createComponentRenderingURL(); url.setParameters(request.getParameterMap()); return url; } }
public Comment createComment(String comment) { Comment element = null; if (this.topParentHstResponse != null) { element = this.topParentHstResponse.createComment(comment); } else { element = this.responseState.createComment(comment); } return element; }
public Element createElement(String tagName) { Element element = null; if (this.topParentHstResponse != null) { element = this.topParentHstResponse.createElement(tagName); } else { element = this.responseState.createElement(tagName); } return element; }
public boolean containsHeadElement(String keyHint) { boolean contained = false; if (this.topParentHstResponse == null) { contained = this.responseState.containsHeadElement(keyHint); } else if (this != this.topParentHstResponse) { contained = this.topParentHstResponse.containsHeadElement(keyHint); } return contained; }
public void setStatus(int statusCode) { if (!committed) { if (response instanceof HstResponse) { ((HstResponse) response).setStatus(statusCode); } else { this.statusCode = statusCode; hasStatus = true; resetBuffer(); } } }
public void forward(String pathInfo) throws IOException { if (isRenderResponse) { if (response instanceof HstResponse) { ((HstResponse) response).forward(pathInfo); } else { failIfCommitted(); closed = true; committed = true; forwardPathInfo = pathInfo; } } }
@Override public int getBufferSize() { return responseState.getBufferSize(); }
@Override public void reset() { responseState.reset(); }
@Override public void resetBuffer() { responseState.resetBuffer(); }
@Override public void addHeader(String name, String value) { responseState.addHeader(name, value); }
@Override public void setBufferSize(int size) { responseState.setBufferSize(size); }
@Override public void setDateHeader(String name, long date) { responseState.setDateHeader(name, date); }
@Override public void setHeader(String name, String value) { responseState.setHeader(name, value); }
@Override public void setStatus(int statusCode) { responseState.setStatus(statusCode); }
@Override public String encodeRedirectUrl(String url) { return encodeRedirectURL(url); }
@Override public String encodeUrl(String url) { return encodeURL(url); }
public Element createElement(String tagName) { Element element = null; if (this.topParentHstResponse != null) { element = this.topParentHstResponse.createElement(tagName); } else { element = this.responseState.createElement(tagName); } return element; }
public boolean containsHeadElement(String keyHint) { boolean contained = false; if (this.topParentHstResponse == null) { contained = this.responseState.containsHeadElement(keyHint); } else if (this != this.topParentHstResponse) { contained = this.topParentHstResponse.containsHeadElement(keyHint); } return contained; }