protected void recycle(Response response) { /** * Since the container finished authentication, it will try to locate index.jsp or index.html. We need to recycle * whatever is in the response object such that we direct it to the html that is being created as part of the HTTP/POST * binding */ response.recycle(); }
protected void recycle(Response response) { /** * Since the container finished authentication, it will try to locate index.jsp or index.html. We need to recycle * whatever is in the response object such that we direct it to the html that is being created as part of the HTTP/POST * binding */ response.recycle(); }
protected void recycle(Response response) { /** * Since the container finished authentication, it will try to locate index.jsp or index.html. We need to recycle * whatever is in the response object such that we direct it to the html that is being created as part of the HTTP/POST * binding */ response.recycle(); }
@Override public void onAfterService(final org.glassfish.grizzly.http.server.Request request) { final Request servletRequest = request.getNote(CATALINA_REQUEST_NOTE); final Response servletResponse = request.getNote(CATALINA_RESPONSE_NOTE); if (servletRequest != null) { try { if (!servletRequest.isUpgrade()) { servletResponse.finishResponse(); } else { servletResponse.setUpgrade(servletRequest.isUpgrade()); } } catch (Exception e) { log.log(Level.SEVERE, LogFacade.REQUEST_PROCESSING_EXCEPTION, e); } finally { try { servletRequest.unlockSession(); } finally { servletRequest.recycle(); servletResponse.recycle(); } } } } }
response.recycle(); } else {
response.recycle();
} finally { request.recycle(); response.recycle();
updateWrapperErrorCount(request, response); request.recycle(); response.recycle();
} finally { request.recycle(); response.recycle();
} finally { request.recycle(); response.recycle();
updateWrapperErrorCount(request, response); request.recycle(); response.recycle();
response.recycle(); } else {
response.recycle(); } else {
response.recycle(); } else {