B - The body@Internal public abstract class AbstractNettyHttpRequest<B> extends io.netty.util.DefaultAttributeMap implements io.micronaut.http.HttpRequest<B>, NettyHttpRequestBuilder
HttpRequest for Netty.| Modifier and Type | Field and Description |
|---|---|
protected io.micronaut.core.convert.ConversionService<?> |
conversionService |
static io.netty.util.AsciiString |
HTTP2_SCHEME |
protected io.micronaut.http.HttpMethod |
httpMethod |
protected java.lang.String |
httpMethodName |
protected io.netty.handler.codec.http.HttpRequest |
nettyRequest |
static io.netty.util.AsciiString |
STREAM_ID |
protected java.net.URI |
uri |
| Constructor and Description |
|---|
AbstractNettyHttpRequest(io.netty.handler.codec.http.HttpRequest nettyRequest,
io.micronaut.core.convert.ConversionService conversionService) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<io.micronaut.http.MediaType> |
accept() |
protected io.netty.handler.codec.http.QueryStringDecoder |
createDecoder(java.net.URI uri) |
java.nio.charset.Charset |
getCharacterEncoding() |
java.util.Optional<io.micronaut.http.MediaType> |
getContentType() |
io.micronaut.http.HttpVersion |
getHttpVersion() |
java.util.Optional<java.util.Locale> |
getLocale() |
io.micronaut.http.HttpMethod |
getMethod() |
java.lang.String |
getMethodName() |
io.netty.handler.codec.http.HttpRequest |
getNettyRequest() |
io.micronaut.http.HttpParameters |
getParameters() |
java.lang.String |
getPath() |
java.net.URI |
getUri() |
protected abstract java.nio.charset.Charset |
initCharset(java.nio.charset.Charset characterEncoding) |
boolean |
isStream() |
io.netty.handler.codec.http.FullHttpRequest |
toFullHttpRequest()
Converts this object to a full http request.
|
io.netty.handler.codec.http.HttpRequest |
toHttpRequest()
Converts this object to the most appropriate http request type.
|
StreamedHttpRequest |
toStreamHttpRequest()
Converts this object to a streamed http request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, DELETE, DELETE, DELETE, GET, GET, getCertificate, getCookies, getRemoteAddress, getServerAddress, getServerName, getUserPrincipal, getUserPrincipal, HEAD, HEAD, isSecure, mutate, OPTIONS, OPTIONS, PATCH, PATCH, POST, POST, PUT, PUT, setAttributegetAttributes, getBody, getBody, getBody, getContentLength, getHeaderstoHttpRequestpublic static final io.netty.util.AsciiString STREAM_ID
public static final io.netty.util.AsciiString HTTP2_SCHEME
protected final io.netty.handler.codec.http.HttpRequest nettyRequest
protected final io.micronaut.core.convert.ConversionService<?> conversionService
protected final io.micronaut.http.HttpMethod httpMethod
protected final java.net.URI uri
protected final java.lang.String httpMethodName
public AbstractNettyHttpRequest(io.netty.handler.codec.http.HttpRequest nettyRequest,
io.micronaut.core.convert.ConversionService conversionService)
nettyRequest - The Http netty requestconversionService - The conversion service@NonNull public io.netty.handler.codec.http.HttpRequest toHttpRequest()
NettyHttpRequestBuildertoHttpRequest in interface NettyHttpRequestBuilder@NonNull public io.netty.handler.codec.http.FullHttpRequest toFullHttpRequest()
NettyHttpRequestBuildertoFullHttpRequest in interface NettyHttpRequestBuilder@NonNull public StreamedHttpRequest toStreamHttpRequest()
NettyHttpRequestBuildertoStreamHttpRequest in interface NettyHttpRequestBuilderpublic boolean isStream()
isStream in interface NettyHttpRequestBuilderpublic io.micronaut.http.HttpVersion getHttpVersion()
getHttpVersion in interface io.micronaut.http.HttpRequest<B>public io.netty.handler.codec.http.HttpRequest getNettyRequest()
public io.micronaut.http.HttpParameters getParameters()
getParameters in interface io.micronaut.http.HttpRequest<B>public java.util.Collection<io.micronaut.http.MediaType> accept()
accept in interface io.micronaut.http.HttpRequest<B>public java.util.Optional<io.micronaut.http.MediaType> getContentType()
getContentType in interface io.micronaut.http.HttpMessage<B>public java.nio.charset.Charset getCharacterEncoding()
getCharacterEncoding in interface io.micronaut.http.HttpMessage<B>public java.util.Optional<java.util.Locale> getLocale()
public io.micronaut.http.HttpMethod getMethod()
getMethod in interface io.micronaut.http.HttpRequest<B>public java.net.URI getUri()
getUri in interface io.micronaut.http.HttpRequest<B>public java.lang.String getPath()
getPath in interface io.micronaut.http.HttpRequest<B>protected abstract java.nio.charset.Charset initCharset(java.nio.charset.Charset characterEncoding)
characterEncoding - The charactger encodingprotected final io.netty.handler.codec.http.QueryStringDecoder createDecoder(java.net.URI uri)
uri - The URIpublic java.lang.String getMethodName()
getMethodName in interface io.micronaut.http.HttpRequest<B>