protected SdkHttpFullRequest convertToSignableRequest()

in src/main/java/com/amazonaws/neptune/auth/NeptuneSigV4SignerBase.java [264:295]


    protected SdkHttpFullRequest convertToSignableRequest(
            final String httpMethodName,
            final URI httpEndpointUri,
            final String resourcePath,
            final Map<String, List<String>> httpHeaders,
            final Map<String, List<String>> httpParameters,
            final InputStream httpContent) throws NeptuneSigV4SignerException {

        checkNotNull(httpMethodName, "Http method name must not be null");
        checkNotNull(httpEndpointUri, "Http endpoint URI must not be null");
        checkNotNull(httpHeaders, "Http headers must not be null");
        checkNotNull(httpParameters, "Http parameters must not be null");
        checkNotNull(httpContent, "Http content name must not be null");

        final SdkHttpFullRequest awsRequest;

        try {
            //create the HTTP AWS SDK Signable Request and carry over information
            awsRequest = SdkHttpFullRequest.builder().
                method(SdkHttpMethod.fromValue(httpMethodName)).
                uri(httpEndpointUri).
                encodedPath(resourcePath).
                headers(httpHeaders).
                rawQueryParameters(httpParameters).
                contentStreamProvider(RequestBody.fromInputStream(httpContent,httpContent.available()).contentStreamProvider()).
                build();
        } catch (IOException e) {
            throw new NeptuneSigV4SignerException(e);
        }

        return awsRequest;
    }