Interface LifecycleHttpRequest<B>
- Type Parameters:
B- The request body
- All Superinterfaces:
AttributeHolder, HttpMessage<B>, HttpRequest<B>, MutableAttributeHolder
- All Known Subinterfaces:
FormCapableHttpRequest<B>
- All Known Implementing Classes:
NettyHttpRequest
A server HTTP request that cleans up resources at the end of its lifecycle.
- Since:
- 5.0.0
-
Field Summary
Fields inherited from interface HttpRequest
SCHEME_HTTP, SCHEME_HTTPS -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDisposalResource(Runnable dispose) Mark a resource for disposal when the request lifecycle ends.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 MutableAttributeHolder
removeAttribute
-
Method Details
-
addDisposalResource
Mark a resource for disposal when the request lifecycle ends. The task must be non-blocking.- Parameters:
dispose- The task to run for disposal
-