use of org.apache.wicket.protocol.http.IMetaDataBufferingWebResponse in project wicket by apache.
the class NonResettingRestartException method transferResponseMetaData.
private void transferResponseMetaData() {
RequestCycle cycle = RequestCycle.get();
Response response = cycle.getResponse();
if (response instanceof IMetaDataBufferingWebResponse) {
WebResponse originalResponse = (WebResponse) cycle.getOriginalResponse();
if (originalResponse != response) {
IMetaDataBufferingWebResponse bufferingWebResponse = (IMetaDataBufferingWebResponse) response;
bufferingWebResponse.writeMetaData(originalResponse);
}
}
}
Aggregations