Search in sources :

Example 1 with BufferedResponseRequestHandler

use of org.apache.wicket.core.request.handler.BufferedResponseRequestHandler in project wicket by apache.

the class BufferedResponseMapper method mapRequest.

/**
 * @see org.apache.wicket.request.IRequestMapper#mapRequest(org.apache.wicket.request.Request)
 */
@Override
public IRequestHandler mapRequest(Request request) {
    request = getRequest(request);
    BufferedWebResponse response = getAndRemoveBufferedResponse(request.getUrl());
    if (response != null) {
        return new BufferedResponseRequestHandler(response);
    } else {
        return null;
    }
}
Also used : BufferedWebResponse(org.apache.wicket.protocol.http.BufferedWebResponse) BufferedResponseRequestHandler(org.apache.wicket.core.request.handler.BufferedResponseRequestHandler)

Aggregations

BufferedResponseRequestHandler (org.apache.wicket.core.request.handler.BufferedResponseRequestHandler)1 BufferedWebResponse (org.apache.wicket.protocol.http.BufferedWebResponse)1