/** * Constructor for the <code>EntityConsumer</code> object. This * is used to build an entity from the constituent parts. Once * all of the parts have been consumed they are available from * the exposed methods of this consumed instance. * * @param allocator this is used to allocate the memory used * @param channel this is the channel used to send a response */ public EntityConsumer(Allocator allocator, Channel channel) { this.header = new RequestConsumer(); this.dispatcher = new ContinueDispatcher(channel); this.factory = new ConsumerFactory(allocator, header); this.trace = channel.getTrace(); }
/** * Constructor for the <code>EntityConsumer</code> object. This * is used to build an entity from the constituent parts. Once * all of the parts have been consumed they are available from * the exposed methods of this consumed instance. * * @param allocator this is used to allocate the memory used * @param channel this is the channel used to send a response */ public EntityConsumer(Allocator allocator, Channel channel) { this.header = new RequestConsumer(); this.expect = new Expectation(channel); this.factory = new ConsumerFactory(allocator, header); this.trace = channel.getTrace(); }
/** * Constructor for the <code>EntityConsumer</code> object. This * is used to build an entity from the constituent parts. Once * all of the parts have been consumed they are available from * the exposed methods of this consumed instance. * * @param allocator this is used to allocate the memory used * @param channel this is the channel used to send a response */ public EntityConsumer(Allocator allocator, Channel channel) { this.header = new RequestConsumer(); this.dispatcher = new ContinueDispatcher(channel); this.factory = new ConsumerFactory(allocator, header); this.trace = channel.getTrace(); }