public interface MediaTypeDecoder
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(List<MediaType> mediaType) |
void |
finished(io.netty.channel.ChannelHandlerContext ctx)
Invoked when all the HTTP content for the request has een received.
|
void |
offer(io.netty.handler.codec.http.HttpContent chunk)
Called each time a chunk of data is received for the request
|
DependencyProvider |
provider() |
boolean canDecode(List<MediaType> mediaType)
mediaType - the media type to check compatibility forvoid offer(io.netty.handler.codec.http.HttpContent chunk)
chunk - the chunk to decode or buffervoid finished(io.netty.channel.ChannelHandlerContext ctx)
offer(HttpContent) will not be
called after this and whatever is decoded will be passed to the target methodctx - the contextDependencyProvider provider()
Copyright © 2012-2015. All Rights Reserved.