public static boolean usePayloadForQueryParameters(SignableRequest<?> request) {
        boolean requestIsPOST = HttpMethodName.POST.equals(request.getHttpMethod());
        boolean requestHasNoPayload = (request.getContent() == null);

        return requestIsPOST && requestHasNoPayload;
    }
Returns true if the specified URI is using a non-standard port (i.e. any
port other than 80 for HTTP URIs or any port other than 443 for HTTPS
URIs).

@param uri

@return True if the specified URI is using a non-standard port, otherwise
        false.
aws-java-sdk-core/src/main/java/com/amazonaws/util/SdkHttpUtils.java