Package io.micronaut.http.server.netty
Interface HttpContentProcessorResolver
- All Known Implementing Classes:
DefaultHttpContentProcessorResolver
@DefaultImplementation(DefaultHttpContentProcessorResolver.class)
@Internal
public interface HttpContentProcessorResolver
Responsible for determining which
HttpContentProcessor
to use to process
the body of the request.- Since:
- 1.3.0
- Author:
- James Kleeh
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(@NonNull NettyHttpRequest<?> request) Resolves the processor for the given request.resolve
(@NonNull NettyHttpRequest<?> request, @NonNull Argument<?> bodyType) Resolves the processor for the given request and body argument.resolve
(@NonNull NettyHttpRequest<?> request, @NonNull RouteMatch<?> route) Deprecated.
-
Method Details
-
resolve
@NonNull @Deprecated @NonNull HttpContentProcessor resolve(@NonNull @NonNull NettyHttpRequest<?> request, @NonNull @NonNull RouteMatch<?> route) Deprecated.Resolves the processor for the given request and route.- Parameters:
request
- The requestroute
- The matched route- Returns:
- The content processor
-
resolve
@NonNull @NonNull HttpContentProcessor resolve(@NonNull @NonNull NettyHttpRequest<?> request, @NonNull @NonNull Argument<?> bodyType) Resolves the processor for the given request and body argument.- Parameters:
request
- The requestbodyType
- The body argument- Returns:
- The content processor
-
resolve
Resolves the processor for the given request.- Parameters:
request
- The request- Returns:
- The content processor
-