/** * Called to forward to the login page * * @param request Request we are processing * @param response Response we are creating * @param config Login configuration describing how authentication * should be performed */ protected void forwardToLoginPage(Request request, Response response, LoginConfig config) { RequestDispatcher disp = context.getServletContext().getRequestDispatcher (config.getLoginPage()); try { disp.forward(request.getRequest(), response.getResponse()); response.finishResponse(); } catch (Throwable t) { log.warn("Unexpected error forwarding to login page", t); } }
/** * Called to forward to the login page * * @param request Request we are processing * @param response Response we are creating * @param config Login configuration describing how authentication * should be performed */ protected void forwardToLoginPage(Request request, Response response, LoginConfig config) { RequestDispatcher disp = context.getServletContext().getRequestDispatcher (config.getLoginPage()); try { disp.forward(request.getRequest(), response.getResponse()); response.finishResponse(); } catch (Throwable t) { log.warn("Unexpected error forwarding to login page", t); } }
@Override public void close() throws IOException { if (request == null) { throw new IllegalStateException(sm.getString("cometEvent.nullRequest")); } request.finishRequest(); response.finishResponse(); if (request.isComet()) { request.cometClose(); } }
@Override public void close() throws IOException { if (request == null) { throw new IllegalStateException(sm.getString("cometEvent.nullRequest")); } request.finishRequest(); response.finishResponse(); if (request.isComet()) { request.cometClose(); } }
public void close() throws IOException { if (request == null) { throw new IllegalStateException(sm.getString("cometEvent.nullRequest")); } boolean iscomet = request.isComet(); request.setComet(false); response.finishResponse(); if (iscomet) request.cometClose(); }
@Override public void close() throws IOException { if (request == null) { throw new IllegalStateException(sm.getString("cometEvent.nullRequest")); } request.finishRequest(); response.finishResponse(); if (request.isComet()) { request.cometClose(); } }
public void close() throws IOException { if (request == null) { throw new IllegalStateException(sm.getString("cometEvent.nullRequest")); } boolean iscomet = request.isComet(); request.setComet(false); response.finishResponse(); if (iscomet) request.cometClose(); }
public void close() throws IOException { if (request == null) { throw new IllegalStateException(sm.getString("cometEvent.nullRequest")); } boolean iscomet = request.isComet(); request.setComet(false); response.finishResponse(); if (iscomet) request.cometClose(); }
/** * Called to forward to the error page * * @param request Request we are processing * @param response Response we are creating */ protected void forwardToErrorPage(Request request, Response response) { RequestDispatcher disp = request.getRequestDispatcher(erroryPage); try { disableClientCache(response.getResponse()); disp.forward(request.getRequest(), response.getResponse()); response.finishResponse(); } catch (Throwable t) { // log.warn("Unexpected error forwarding to error page", t); } }
/** * Called to forward to the login page * * @param request Request we are processing * @param response Response we are creating */ protected void forwardToLoginPage(Request request, Response response) { RequestDispatcher disp = request.getRequestDispatcher(loginPage); try { disableClientCache(response.getResponse()); disp.forward(request.getRequest(), response.getResponse()); response.finishResponse(); } catch (Throwable t) { // log.warn("Unexpected error forwarding to login page", t); } }
private void flushResponseBytes(final long size) throws IOException { context.getResponse().flushBuffer(); context.getResponse().finishResponse(); context.getEventHandler().info("proxy", "Copied " + size + " bytes"); context.getOut().setResponseSize(size); }
@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(); } } } } }
if (custom(request, response, errorPage)) { try { response.finishResponse(); } catch (IOException e) { container.getLogger().warn("Exception Processing " + errorPage, e);
if (custom(request, response, errorPage)) { try { response.finishResponse(); } catch (IOException e) { container.getLogger().warn("Exception Processing " + errorPage, e);
response.setErrorReported(); try { response.finishResponse(); } catch (ClientAbortException e) {
response.setErrorReported(); try { response.finishResponse(); } catch (ClientAbortException e) {
response.finishResponse(); req.action( ActionCode.ACTION_POST_REQUEST , null);
response.finishResponse(); req.action(ActionCode.POST_REQUEST , null);
response.finishResponse(); req.action(ActionCode.POST_REQUEST , null);
response.finishResponse(); req.action(ActionCode.POST_REQUEST , null);