T
- The body typepublic class MicronautAwsProxyRequest<T>
extends java.lang.Object
implements io.micronaut.http.HttpRequest<T>
HttpRequest
that backs onto a AwsProxyRequest
object.Modifier and Type | Method and Description |
---|---|
io.micronaut.core.convert.value.MutableConvertibleValues<java.lang.Object> |
getAttributes() |
com.amazonaws.serverless.proxy.model.AwsProxyRequest |
getAwsProxyRequest()
The backing
AwsProxyRequest object. |
java.util.Optional<T> |
getBody() |
<T1> java.util.Optional<T1> |
getBody(io.micronaut.core.type.Argument<T1> type) |
java.util.Optional<io.micronaut.http.MediaType> |
getContentType() |
io.micronaut.http.cookie.Cookies |
getCookies() |
io.micronaut.http.HttpHeaders |
getHeaders() |
io.micronaut.http.HttpMethod |
getMethod() |
io.micronaut.http.HttpParameters |
getParameters() |
MicronautAwsProxyResponse<?> |
getResponse() |
java.net.URI |
getUri() |
protected java.util.List<io.micronaut.function.aws.proxy.MicronautAwsProxyRequest.HeaderValue> |
parseHeaderValue(java.lang.String headerValue,
java.lang.String valueSeparator,
java.lang.String qualifierSeparator)
Generic method to parse an HTTP header value and split it into a list of key/values for all its components.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, DELETE, DELETE, DELETE, GET, GET, getLocale, getPath, getRemoteAddress, getServerAddress, getServerName, getUserPrincipal, getUserPrincipal, HEAD, HEAD, isSecure, OPTIONS, OPTIONS, PATCH, PATCH, POST, POST, PUT, PUT, setAttribute
public final com.amazonaws.serverless.proxy.model.AwsProxyRequest getAwsProxyRequest()
AwsProxyRequest
object.AwsProxyRequest
object.@Internal public MicronautAwsProxyResponse<?> getResponse()
@Nonnull public io.micronaut.http.cookie.Cookies getCookies()
getCookies
in interface io.micronaut.http.HttpRequest<T>
@Nonnull public io.micronaut.http.HttpParameters getParameters()
getParameters
in interface io.micronaut.http.HttpRequest<T>
@Nonnull public io.micronaut.http.HttpMethod getMethod()
getMethod
in interface io.micronaut.http.HttpRequest<T>
@Nonnull public java.net.URI getUri()
getUri
in interface io.micronaut.http.HttpRequest<T>
@Nonnull public java.util.Optional<io.micronaut.http.MediaType> getContentType()
getContentType
in interface io.micronaut.http.HttpMessage<T>
@Nonnull public io.micronaut.http.HttpHeaders getHeaders()
getHeaders
in interface io.micronaut.http.HttpMessage<T>
@Nonnull public io.micronaut.core.convert.value.MutableConvertibleValues<java.lang.Object> getAttributes()
getAttributes
in interface io.micronaut.core.attr.AttributeHolder
getAttributes
in interface io.micronaut.core.attr.MutableAttributeHolder
getAttributes
in interface io.micronaut.http.HttpMessage<T>
@Nonnull public java.util.Optional<T> getBody()
getBody
in interface io.micronaut.http.HttpMessage<T>
@Nonnull public <T1> java.util.Optional<T1> getBody(io.micronaut.core.type.Argument<T1> type)
getBody
in interface io.micronaut.http.HttpMessage<T>
protected java.util.List<io.micronaut.function.aws.proxy.MicronautAwsProxyRequest.HeaderValue> parseHeaderValue(java.lang.String headerValue, java.lang.String valueSeparator, java.lang.String qualifierSeparator)
Accept: application/json; application/xml
will contain two
key value pairs with key null and the value set to application/json and application/xml respectively.headerValue
- The string value for the HTTP headervalueSeparator
- The separator to be used for parsing header valuesqualifierSeparator
- the qualifier separator