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;
    }
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

@param requestType String value of request type GET/POST/PUT/DELETE
@return Matching REQUEST_TYPE. Defaults to ALL