Java Code Examples for io.netty.handler.codec.http.HttpObject.getDecoderResult()

The following are Jave code examples for showing how to use getDecoderResult() of the io.netty.handler.codec.http.HttpObject class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: riposte   File:   Source Code and License Vote up 4 votes
private void throwExceptionIfNotSuccessfullyDecoded(HttpObject httpObject) {
    if (httpObject.getDecoderResult() != null && httpObject.getDecoderResult().isFailure()) {
        throw new InvalidHttpRequestException("Detected HttpObject that was not successfully decoded.", httpObject.getDecoderResult().cause());