static HttpStreamWrapper openRead ( HttpPath path ) throws IOException { HttpStream stream = createStream ( path ) ; stream . _isPost = false ; HttpStreamWrapper wrapper = new HttpStreamWrapper ( stream ) ; String status = ( String ) wrapper . getAttribute ( "status" ) ; // ioc/23p0 if ( "404" . equals ( status ) ) { throw new FileNotFoundException ( L . l ( "'{0}' returns a HTTP 404." , path . getURL ( ) ) ) ; } return wrapper ; }
Opens a new HTTP stream for reading i . e . a GET request .