@Override
    public void setMethod(String method) throws UnsupportedMethodException {
        MethodValues val = MethodValues.match(method, 0, method.length());
        if (null == val) {
            throw new UnsupportedMethodException("Illegal method " + method);
        }
        setMethod(val);
    }
@ Override public void setMethod ( String method ) throws UnsupportedMethodException { MethodValues val = MethodValues . match ( method , 0 , method . length ( ) ) ; if ( null == val ) { throw new UnsupportedMethodException ( "Illegal method " + method ) ; } setMethod ( val ) ; }
Set the method of this request to the given String if it is valid.

@param method
@throws UnsupportedMethodException