private void writeException(Throwable t) { /* * Here, contrary to ContainerResponseContextImpl.writeException, we can use the async response * to write the exception, because it calls the right response filters, complete() and callbacks */ httpRequest.getAsyncContext().getAsyncResponse().resume(t); }
@Override public synchronized void abortWith(Response response) { if(suspended && !inFilter) { ResteasyContext.pushContextDataMap(contextDataMap); httpRequest.getAsyncContext().getAsyncResponse().resume(response); } else { // not suspended, or suspend/abortWith within filter, same thread: collect and move on this.response = response; suspended = false; } }
@Override public void setResponse(Response response) { asynchronousResponse.resume(response); } };
request.getAsyncContext().getAsyncResponse().resume(rtn); return null;
request.getAsyncContext().getAsyncResponse().resume(ex);
else httpRequest.getAsyncContext().getAsyncResponse().resume(serverResponse); return null;
private void writeException(Throwable t) { /* * Here, contrary to ContainerResponseContextImpl.writeException, we can use the async response * to write the exception, because it calls the right response filters, complete() and callbacks */ httpRequest.getAsyncContext().getAsyncResponse().resume(t); }
@Override public synchronized void abortWith(Response response) { if(suspended && !inFilter) { ResteasyContext.pushContextDataMap(contextDataMap); httpRequest.getAsyncContext().getAsyncResponse().resume(response); } else { // not suspended, or suspend/abortWith within filter, same thread: collect and move on this.response = response; suspended = false; } }
@Override public synchronized void abortWith(Response response) { if(suspended && !inFilter) { ResteasyProviderFactory.pushContextDataMap(contextDataMap); httpRequest.getAsyncContext().getAsyncResponse().resume(response); } else { // not suspended, or suspend/abortWith within filter, same thread: collect and move on this.response = response; suspended = false; } }
request.getAsyncContext().getAsyncResponse().resume(rtn); return null;
else httpRequest.getAsyncContext().getAsyncResponse().resume(serverResponse); return null;
request.getAsyncContext().getAsyncResponse().resume(ex);
else httpRequest.getAsyncContext().getAsyncResponse().resume(serverResponse); return null;