Class HttpFunctionHttpRequest

java.lang.Object
net.officefloor.server.google.function.wrap.HttpFunctionHttpRequest
All Implemented Interfaces:
com.google.cloud.functions.HttpMessage, com.google.cloud.functions.HttpRequest

public class HttpFunctionHttpRequest extends Object implements com.google.cloud.functions.HttpRequest
HttpFunction HttpRequest.
  • Constructor Details

    • HttpFunctionHttpRequest

      public HttpFunctionHttpRequest(HttpRequest request)
      Instantiate.
      Parameters:
      request - HttpRequest.
  • Method Details

    • getUri

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

      public String getMethod()
      Specified by:
      getMethod 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
    • getHeaders

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

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

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

      public long getContentLength()
      Specified by:
      getContentLength 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
    • getReader

      public BufferedReader getReader() throws IOException
      Specified by:
      getReader in interface com.google.cloud.functions.HttpMessage
      Throws:
      IOException
    • getParts

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