protected int getRequestTypeFromString ( String requestType ) { if ( "GET" . equals ( requestType ) ) { return REQUEST_TYPE_GET ; } if ( "POST" . equals ( requestType ) ) { return REQUEST_TYPE_POST ; } if ( "PUT" . equals ( requestType ) ) { return REQUEST_TYPE_PUT ; } if ( "DELETE" . equals ( requestType ) ) { return REQUEST_TYPE_DELETE ; } return REQUEST_TYPE_ALL ; }
Convert a request type string to value