Java 类io.netty.handler.codec.http.HttpObjectDecoder 实例源码
项目:riposte
文件:StreamingAsyncHttpClient.java
protected static int determineHttpClientCodecInboundState(HttpClientCodec currentCodec) {
try {
HttpObjectDecoder decoder = (HttpObjectDecoder) httpClientCodecInboundHandlerField.get(currentCodec);
return ((Enum) httpObjectDecoderCurrentStateField.get(decoder)).ordinal();
}
catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
}