Code example for HttpEntityEnclosingRequest

Methods: getEntity

0
        } 
 
        public ConsumingNHttpEntity entityRequest( 
                final HttpEntityEnclosingRequest request,
                final HttpContext context) throws HttpException, IOException {
            return new BufferingNHttpEntity( 
                    request.getEntity(),
                    HeapByteBufferAllocator.INSTANCE); 
        } 
 
        @Override 
        public void handle( 
                final HttpRequest request,
                final HttpResponse response,
                final HttpContext context) throws HttpException, IOException {
            this.requestHandler.handle(request, response, context);
        } 
 
    } 
 
}