private RequestMethodsRequestCondition getRequestMethodsRequestCondition ( String [ ] httpMethods ) { RequestMethod [ ] requestMethods = new RequestMethod [ httpMethods . length ] ; for ( int i = 0 ; i < requestMethods . length ; i ++ ) { requestMethods [ i ] = RequestMethod . valueOf ( httpMethods [ i ] ) ; } return new RequestMethodsRequestCondition ( requestMethods ) ; }
convert httpMethods String array to RequestMethod array