/** * Called after the entire response has been captured. Causes * the writer buffer output captured to be segmented and written * out to the right response elements for the client libraries to parse. */ void endResponse() { Iterator keys = _writers.keySet().iterator(); while (keys.hasNext()) { String key = (String)keys.next(); NestedMarkupWriter nw = (NestedMarkupWriter)_writers.get(key); nw.close(); } _writer.flush(); }
/** * Called after the entire response has been captured. Causes * the writer buffer output captured to be segmented and written * out to the right response elements for the client libraries to parse. */ void endResponse() { Iterator keys = _writers.keySet().iterator(); while (keys.hasNext()) { String key = (String)keys.next(); NestedMarkupWriter nw = (NestedMarkupWriter)_writers.get(key); nw.close(); } _writer.flush(); }