@Override
    protected void doRead(final Action<ByteBuffer> chunkAction) {
        // Using one of Play's thread pools may be a better way to go?
        // https://www.playframework.com/documentation/2.3.x/ThreadPools
        // TODO https://github.com/vibe-project/vibe-java-platform/issues/6
        new Thread(new Runnable() {
            @Override
            public void run() {
                chunkAction.on(ByteBuffer.wrap(request.body().asRaw().asBytes()));
                endActions.fire();
            }
        })
        .start();
    }
@ Override protected void doRead ( final Action < ByteBuffer > chunkAction ) { new Thread ( new Runnable ( ) { @ Override public void run ( ) { chunkAction . on ( ByteBuffer . wrap ( request . body ( ) . asRaw ( ) . asBytes ( ) ) ) ; endActions . fire ( ) ; } } ) . start ( ) ; }
TODO https://github.com/vibe-project/vibe-java-platform/issues/4