T
- The body typepublic class MicronautAwsProxyResponse<T>
extends java.lang.Object
implements io.micronaut.http.MutableHttpResponse<T>, java.io.Closeable
MutableHttpResponse
for AWS API proxy.Modifier and Type | Method and Description |
---|---|
<B> io.micronaut.http.MutableHttpResponse<B> |
body(B body) |
void |
close() |
io.micronaut.http.MutableHttpResponse<T> |
cookie(io.micronaut.http.cookie.Cookie cookie) |
io.micronaut.core.convert.value.MutableConvertibleValues<java.lang.Object> |
getAttributes() |
java.util.Optional<T> |
getBody() |
io.micronaut.http.MutableHttpHeaders |
getHeaders() |
io.micronaut.http.HttpStatus |
getStatus() |
io.micronaut.http.MutableHttpResponse<T> |
status(io.micronaut.http.HttpStatus status,
java.lang.CharSequence message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
characterEncoding, characterEncoding, contentEncoding, contentLength, contentType, contentType, cookies, header, headers, headers, locale, status, status, status
accepted, accepted, badRequest, badRequest, body, code, created, created, created, header, noContent, notAllowed, notAllowed, notAllowedGeneric, notFound, notFound, notModified, ok, ok, permanentRedirect, reason, redirect, seeOther, serverError, serverError, setAttribute, status, status, status, temporaryRedirect, unauthorized, unprocessableEntity, uri
@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>
public io.micronaut.http.MutableHttpResponse<T> cookie(io.micronaut.http.cookie.Cookie cookie)
cookie
in interface io.micronaut.http.MutableHttpResponse<T>
public <B> io.micronaut.http.MutableHttpResponse<B> body(@Nullable B body)
@Nonnull public io.micronaut.http.MutableHttpHeaders getHeaders()
public io.micronaut.http.MutableHttpResponse<T> status(io.micronaut.http.HttpStatus status, java.lang.CharSequence message)
status
in interface io.micronaut.http.MutableHttpResponse<T>
public io.micronaut.http.HttpStatus getStatus()
getStatus
in interface io.micronaut.http.HttpResponse<T>
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable