Package org.apache.catalina.connector

Examples of org.apache.catalina.connector.ResponseFacade$DateHeaderPrivilegedAction


    }

    @Override
    protected ServletHttpContext createHttpContext(HttpServletRequest req, HttpServletResponse resp) {
        RequestFacade originalRequest = getRequestFacade(req);
        ResponseFacade originalResponse = getResponseFacade(resp);
        return super.createHttpContext(req, resp);
    }
View Full Code Here


                        logger.trace("", e);
                    }
                }

                try {
                    ResponseFacade response = ResponseFacade.class.cast(event.getHttpServletResponse());
                    Field coyoteResponse = ResponseFacade.class.getDeclaredField("response");
                    coyoteResponse.setAccessible(true);
                    Response r = (Response) coyoteResponse.get(response);
                    r.recycle();
                } catch (Throwable t) {
View Full Code Here

                    response.setHeader("Last-Modified", httpDateFormat.format(mTime));
                }

                log.debug("Using APR native sendfile to send " +
                        ", " + file.getAbsolutePath() + " | " + range.getFileStartPos() + "-" + range.getFileEndPos());
                ResponseFacade responseFacade = (ResponseFacade) response.getOriginalResponse();
                responseFacade.sendFile(file.getPath(), file.getAbsolutePath(), range.getFileStartPos(), range.getFileEndPos());
            }
            else{
                response.setStatus(HttpServletResponse.SC_REQUESTED_RANGE_NOT_SATISFIABLE); // 416
            }
        }
View Full Code Here

            RequestDispatcher.ERROR_EXCEPTION);
        String errorReportValveClass =
            ((StandardHost)(context.getParent())).getErrorReportValveClass();
        boolean hasErrorReportValve = (errorReportValveClass != null &&
                errorReportValveClass.length() > 0);
        ResponseFacade responseFacade = getResponseFacade(hres);
        if (hasErrorReportValve && responseFacade.isError() &&
                statusCode >= 400 && exception == null) {           
            boolean matchFound = status(hreq, hres,
                responseFacade, context, wrapper, statusCode);
            if (!matchFound) {
                boolean isDefaultErrorPageEnabled = true;
View Full Code Here

TOP

Related Classes of org.apache.catalina.connector.ResponseFacade$DateHeaderPrivilegedAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.