List of usage examples for javax.servlet AsyncEvent AsyncEvent
public AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response)
From source file:org.jruby.rack.mock.MockAsyncContext.java
@Override public void complete() { MockHttpServletRequest mockRequest = WebUtils.getNativeRequest(request, MockHttpServletRequest.class); if (mockRequest != null) { mockRequest.setAsyncStarted(false); }/*from w w w. j a va2 s. co m*/ for (AsyncListener listener : this.listeners) { try { listener.onComplete(new AsyncEvent(this, this.request, this.response)); } catch (IOException e) { throw new IllegalStateException("AsyncListener failure", e); } } }