* method is context specific.
*/
public void appendXML(String path, DocumentFragment fragment)
throws ProcessingException {
if (this.response == null) {
throw new ProcessingException("Response Object missing");
}
if (path != null) {
if (path.startsWith("/header/") == true) {
String name = path.substring(8);
this.response.addHeader(name, DOMUtil.createText(fragment));
} else if (path.equals("/cookie") == true) {
this.response.addCookie(this.createCookie(DOMUtil.createParameters(fragment, null)));
} else {
throw new ProcessingException("Invalid response path '"+path+"'");
}
}
}