Class RequestMetadata


  • public class RequestMetadata
    extends Object
    Encapsulates the various fields in a Http request that are required to perform SigV4 signing.
    • Constructor Detail

      • RequestMetadata

        public RequestMetadata​(String fullUri,
                               String method,
                               Optional<byte[]> content,
                               Map<String,​String> headers,
                               Map<String,​String> queryParameters)
        Constructs an instance of Request metadata.
        Parameters:
        fullUri - - the full URI. See fullUri
        method - - the http request method. See method
        content - - the payload of the http request. See content
        headers - - the headers in the http request. See headers
        queryParameters - - the query parameters. See headers
    • Method Detail

      • getFullUri

        public String getFullUri()
        Returns:
        the fillURI set in the request metadata.
      • getMethod

        public String getMethod()
        Returns:
        the method set in the request metadata.
      • getContent

        public Optional<byte[]> getContent()
        Returns:
        content in the request metadata.
      • getHeaders

        public Map<String,​String> getHeaders()
        Returns:
        the headers in the request metadata.
      • getQueryParameters

        public Map<String,​String> getQueryParameters()
        Returns:
        the query parameters map in the request metadata.