コード例 #1
0
ファイル: PowerProxy.java プロジェクト: gnomix/repose
  public RequestResponsePair handleRequest(
      ExternalConnectionFuture connectionFuture,
      HttpServletRequest request,
      HttpServletResponse response)
      throws ServletException {
    final LastCallFilterChain rootFilterChain = new LastCallFilterChain();

    try {
      powerFilterInstance.doFilter(request, response, rootFilterChain);
    } catch (IOException ioe) {
      LOG.error(ioe.getMessage(), ioe);
    } catch (ServletException se) {
      LOG.error(se.getMessage(), se);
    }

    return new RequestResponsePair(
        rootFilterChain.getLastRequestObjectPassed(),
        rootFilterChain.getLastResponseObjectPassed());
  }