Пример #1
0
  public void service(ServletRequest request, ServletResponse response)
      throws ServletException, IOException {

    ServletOutputStream sos = null;

    try {
      sos = response.getOutputStream();

      // set buffer size
      response.setBufferSize(FAILED.length() * 2);

      // Write some data to the stream
      sos.println(FAILED);

      // Reset the response
      response.reset();
      sos.println(PASSED);
    } catch (IllegalStateException e) {
      throw e;
    }
  }
Пример #2
0
 public void reset() {
   response.reset();
 }
Пример #3
0
  /** @see javax.faces.context.ExternalContext#responseReset() */
  @Override
  public void responseReset() {

    response.reset();
  }