HttpOutputHandler outputHandler = createOutputHandler( response, outputStream );
outputHandler.setSession( userSession );
IMimeTypeListener listener = new HttpMimeTypeListener( request, response, fileName );
outputHandler.setMimeTypeListener( listener );
SimpleUrlFactory urlFactory = new SimpleUrlFactory( requestContext.getContextPath() + "ViewAction?" ); //$NON-NLS-1$
IParameterProvider requestParameters = new HttpRequestParameterProvider( request );
HttpServletRequestHandler requestHandler =
getRequestHandler( request, response, userSession, requestParameters, outputStream, outputHandler,
urlFactory );
handleActionRequest( request, response, outputHandler, requestHandler, outputStream, null );