/** * This method is used to create a body consumer to read the body * from the pipeline. This will examine the HTTP header associated * with the body to determine how to consume the data. This will * provide an empty consumer if no specific delimiter was provided. * * @return this returns the consumer used to consume the body */ public BodyConsumer getInstance() { long length = getContentLength(); if(length < 0) { return getInstance(8192); } return getInstance(length); }
/** * This method is used to create a body consumer to read the body * from the pipeline. This will examine the HTTP header associated * with the body to determine how to consume the data. This will * provide an empty consumer if no specific delimiter was provided. * * @return this returns the consumer used to consume the body */ public BodyConsumer getInstance() { long length = getContentLength(); if(length < 0) { return getInstance(8192); } return getInstance(length); }
/** * This method is used to create a body consumer to read the body * from the pipeline. This will examine the HTTP header associated * with the body to determine how to consume the data. This will * provide an empty consumer if no specific delimiter was provided. * * @return this returns the consumer used to consume the body */ public BodyConsumer getInstance() { long length = getContentLength(); if(length < 0) { return getInstance(8192); } return getInstance(length); }