@ Path ( "streams/{index}/{filename}" ) public StreamResource getStream ( @ PathParam ( "index" ) final int streamIndex , @ QueryParam ( "type" ) @ DefaultValue ( DEFAULT_MEDIA_TYPE ) String mediaType , @ PathParam ( "filename" ) String filename ) throws GuacamoleException { return new StreamResource ( tunnel , streamIndex , mediaType ) ; }
Intercepts and returns the entire contents of a specific stream .