private String isRedirect ( String uri ) throws URISyntaxException , MalformedURLException { // Decode the path. URI url = new URI ( uri ) ; if ( REDIRECT_PATH . equals ( url . getPath ( ) ) ) { String query = url . getRawQuery ( ) ; Map < String , String > params = getQueryMap ( query ) ; String urlParam = params . get ( URL_PARAMETER ) ; if ( urlParam == null ) return null ; try { return URLDecoder . decode ( urlParam , "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { Logger . getLogger ( WebsockifyProxyHandler . class . getName ( ) ) . severe ( e . getMessage ( ) ) ; } } return null ; }
if it is it returns the url parameter