Best code snippets using org.apache.stanbol.commons.testing.http.RequestBuilder(Showing top 8 results out of 315)

protected Request buildMultipartRequest(String path,MultipartEntity multiPart) {
HttpPost httpPost = new HttpPost(builder.buildUrl(path));
httpPost.setEntity(multiPart);
/** * In case of Multipart requests, we must __NOT__ set the content-type header to multipart/form-data. * If we do it, we have a 400 response (bad request). */returnthis.builder.buildOtherRequest(httpPost);
}