Class HttpRequestImpl
- java.lang.Object
-
- com.google.cloud.functions.invoker.http.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 Summary
Constructors Constructor Description HttpRequestImpl(javax.servlet.http.HttpServletRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getCharacterEncoding()longgetContentLength()Optional<String>getContentType()Map<String,List<String>>getHeaders()InputStreamgetInputStream()StringgetMethod()Map<String,com.google.cloud.functions.HttpRequest.HttpPart>getParts()StringgetPath()Optional<String>getQuery()Map<String,List<String>>getQueryParameters()BufferedReadergetReader()StringgetUri()
-
-
-
Method Detail
-
getMethod
public String getMethod()
- Specified by:
getMethodin interfacecom.google.cloud.functions.HttpRequest
-
getUri
public String getUri()
- Specified by:
getUriin interfacecom.google.cloud.functions.HttpRequest
-
getPath
public String getPath()
- Specified by:
getPathin interfacecom.google.cloud.functions.HttpRequest
-
getQuery
public Optional<String> getQuery()
- Specified by:
getQueryin interfacecom.google.cloud.functions.HttpRequest
-
getQueryParameters
public Map<String,List<String>> getQueryParameters()
- Specified by:
getQueryParametersin interfacecom.google.cloud.functions.HttpRequest
-
getParts
public Map<String,com.google.cloud.functions.HttpRequest.HttpPart> getParts()
- Specified by:
getPartsin interfacecom.google.cloud.functions.HttpRequest
-
getContentType
public Optional<String> getContentType()
- Specified by:
getContentTypein interfacecom.google.cloud.functions.HttpMessage
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfacecom.google.cloud.functions.HttpMessage
-
getCharacterEncoding
public Optional<String> getCharacterEncoding()
- Specified by:
getCharacterEncodingin interfacecom.google.cloud.functions.HttpMessage
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfacecom.google.cloud.functions.HttpMessage- Throws:
IOException
-
getReader
public BufferedReader getReader() throws IOException
- Specified by:
getReaderin interfacecom.google.cloud.functions.HttpMessage- Throws:
IOException
-
-