private static HttpEntityEnclosingRequestBase getHttpEntityMethod(RequestMethod method, String uri) {
    """
	Get Http method instance by {@link com.rockagen.commons.http.RequestMethod}
	
	@param method {@link RequestMethod}
	@param uri the uri
	@return {@link HttpEntityEnclosingRequestBase}
    """
        HttpEntityEnclosingRequestBase hm;
        if (method != null) {
            switch (method) {
                case POST:
                    hm = new HttpPost(uri);
                    break;
                case PUT:
                    hm = new HttpPut(uri);
                    break;
                case PATCH:
                    hm = new HttpPatch(uri);
                    break;
                default:
                    hm = new HttpPost(uri);
                    break;
            }
        } else hm = new HttpPost(uri);
        return hm;
    }
private static HttpEntityEnclosingRequestBase getHttpEntityMethod(RequestMethod method, String uri) {
        HttpEntityEnclosingRequestBase hm;
        if (method != null) {
            switch (method) {
                case POST:
                    hm = new HttpPost(uri);
                    break;
                case PUT:
                    hm = new HttpPut(uri);
                    break;
                case PATCH:
                    hm = new HttpPatch(uri);
                    break;
                default:
                    hm = new HttpPost(uri);
                    break;
            }
        } else hm = new HttpPost(uri);
        return hm;
    }
private static HttpEntityEnclosingRequestBase getHttpEntityMethod ( RequestMethod method , String uri ) { HttpEntityEnclosingRequestBase hm ; if ( method != null ) { switch ( method ) { case POST : hm = new HttpPost ( uri ) ; break ; case PUT : hm = new HttpPut ( uri ) ; break ; case PATCH : hm = new HttpPatch ( uri ) ; break ; default : hm = new HttpPost ( uri ) ; break ; } } else hm = new HttpPost ( uri ) ; return hm ; }
Get Http method instance by {@link com.rockagen.commons.http.RequestMethod}

@param method {@link RequestMethod}
@param uri the uri
@return {@link HttpEntityEnclosingRequestBase}
Get Http method instance by { @link com . rockagen . commons . http . RequestMethod }