public void start ( ) { proxy . setTrustAllServers ( true ) ; if ( outsideProxy != null ) { proxy . setChainedProxy ( getProxyAddress ( outsideProxy ) ) ; } addRequestFilter ( "authentication" , new AuthenticationFilter ( ) ) ; addRequestFilter ( "requestSizeWatchdog" , new RequestSizeWatchdog ( ) ) ; addResponseFilter ( "responseSizeWatchdog" , new ResponseSizeWatchdog ( ) ) ; addResponseFilter ( "download" , new FileDownloadFilter ( config ) ) ; proxy . start ( config . proxyPort ( ) ) ; port = proxy . getPort ( ) ; }
Start the server