Interface FormCapableHttpRequest<B>
- Type Parameters:
B- The body type
- All Superinterfaces:
io.micronaut.core.attr.AttributeHolder, HttpMessage<B>, HttpRequest<B>, LifecycleHttpRequest<B>, io.micronaut.core.attr.MutableAttributeHolder, ServerHttpRequest<B>
A request that is capable of parsing form data, though the request does not necessarily
have to contain form data.
-
Field Summary
Fields inherited from interface HttpRequest
SCHEME_HTTP, SCHEME_HTTPS -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<RawFormField> Get the raw form field publisher.booleanCheck whether this request contains a form body (url encoded or multipart).Methods inherited from interface io.micronaut.core.attr.AttributeHolder
getAttribute, getAttributeMethods inherited from interface HttpMessage
getAttributes, getBody, getBody, getBody, getBody, getBodyWriter, getCharacterEncoding, getContentLength, getContentType, getHeadersMethods inherited from interface HttpRequest
accept, getCertificate, getCookies, getHttpVersion, getLocale, getMethod, getMethodName, getOrigin, getParameters, getPath, getRemoteAddress, getServerAddress, getServerName, getSslSession, getUri, getUserPrincipal, getUserPrincipal, isSecure, mutate, setAttribute, setUserPrincipal, toMutableRequestMethods inherited from interface LifecycleHttpRequest
addDisposalResourceMethods inherited from interface io.micronaut.core.attr.MutableAttributeHolder
removeAttributeMethods inherited from interface ServerHttpRequest
byteBody, byteBodyFactory
-
Method Details
-
getRawFormFields
Get the raw form field publisher. Can only be subscribed to once.- Returns:
- The raw form fields
- Throws:
IllegalStateException- If this request does not contain a form body
-
hasFormBody
boolean hasFormBody()Check whether this request contains a form body (url encoded or multipart).- Returns:
trueif this is a form request
-