HdfsHttpClientDispatch
package org.apache.knox.gateway.hdfs.dispatch;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import org.apache.http.HttpEntity;
import org.apache.knox.gateway.dispatch.DefaultDispatch;
public class HdfsHttpClientDispatch extends DefaultDispatch {
public HdfsHttpClientDispatch() throws ServletException {
super();
}
//@Override
/**
* This method ensures that the request InputStream is not acquired
* prior to a dispatch to a component such as a namenode that doesn't
* the request body. The side effect of this is that the client does
* not get a 100 continue from Knox which will trigger the client to
* send the entire payload before redirect to the target component
* like a datanode and have to send it again.
*/
@Override
protected HttpEntity createRequestEntity(HttpServletRequest request)
throws IOException {
return null;
}
}