Interface FormCapableHttpRequest<B>
- Type Parameters:
B- The body type
- All Superinterfaces:
AttributeHolder, HttpMessage<B>, HttpRequest<B>, LifecycleHttpRequest<B>, MutableAttributeHolder, ServerHttpRequest<B>
- All Known Implementing Classes:
NettyHttpRequest
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 TypeMethodDescriptionGet the raw form field publisher.booleanCheck whether this request contains a form body (url encoded or multipart).Methods inherited from interface 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 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
-