Class HttpRequestImpl

  • All Implemented Interfaces:
    com.google.cloud.functions.HttpMessage, com.google.cloud.functions.HttpRequest

    public class HttpRequestImpl
    extends Object
    implements com.google.cloud.functions.HttpRequest
    • Constructor Detail

      • HttpRequestImpl

        public HttpRequestImpl​(javax.servlet.http.HttpServletRequest request)
    • Method Detail

      • getMethod

        public String getMethod()
        Specified by:
        getMethod in interface com.google.cloud.functions.HttpRequest
      • getUri

        public String getUri()
        Specified by:
        getUri in interface com.google.cloud.functions.HttpRequest
      • getPath

        public String getPath()
        Specified by:
        getPath in interface com.google.cloud.functions.HttpRequest
      • getQuery

        public Optional<String> getQuery()
        Specified by:
        getQuery in interface com.google.cloud.functions.HttpRequest
      • getQueryParameters

        public Map<String,​List<String>> getQueryParameters()
        Specified by:
        getQueryParameters in interface com.google.cloud.functions.HttpRequest
      • getParts

        public Map<String,​com.google.cloud.functions.HttpRequest.HttpPart> getParts()
        Specified by:
        getParts in interface com.google.cloud.functions.HttpRequest
      • getContentType

        public Optional<String> getContentType()
        Specified by:
        getContentType in interface com.google.cloud.functions.HttpMessage
      • getContentLength

        public long getContentLength()
        Specified by:
        getContentLength in interface com.google.cloud.functions.HttpMessage
      • getCharacterEncoding

        public Optional<String> getCharacterEncoding()
        Specified by:
        getCharacterEncoding in interface com.google.cloud.functions.HttpMessage
      • getInputStream

        public InputStream getInputStream()
                                   throws IOException
        Specified by:
        getInputStream in interface com.google.cloud.functions.HttpMessage
        Throws:
        IOException
      • getHeaders

        public Map<String,​List<String>> getHeaders()
        Specified by:
        getHeaders in interface com.google.cloud.functions.HttpMessage