Package org.fenixedu.academic.ui.struts.action.teacher.siteArchive.streams

Examples of org.fenixedu.academic.ui.struts.action.teacher.siteArchive.streams.FetcherServletResponseWrapper


        if (url.startsWith(File.getFileDownloadPrefix())) {
            writeFileToStream(url, stream);
        } else {
            RequestDispatcher dispatcher = this.request.getRequestDispatcher(url);
            ServletRequest request = createForwardRequest();
            FetcherServletResponseWrapper response = createForwardResponse(resource, stream);
            dispatcher.forward(request, response);
        }
    }
View Full Code Here


    private ServletRequest createForwardRequest() {
        return new FetcherRequestWrapper(this.request);
    }

    private FetcherServletResponseWrapper createForwardResponse(Resource resource, OutputStream stream) {
        return new FetcherServletResponseWrapper(this.response, this, resource, stream);
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.ui.struts.action.teacher.siteArchive.streams.FetcherServletResponseWrapper

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.