private ResponseUpdater findResponseUpdater ( final HttpRequest request ) throws HttpException { ResponseUpdater updater = this . responseUpdaterSet . stream ( ) . filter ( ru -> ru . matches ( request ) ) . findFirst ( ) . get ( ) ; if ( updater == null ) { throw new HttpException ( "cannot find correpsonding response updater" ) ; } else { return updater ; } }
Finds the first ResponseUpdater by url pattern match .