Java tutorial
package siddur.solidtrust.azure; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import org.apache.commons.io.IOUtils; import org.apache.http.NameValuePair; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.message.BasicNameValuePair; public class AzureCarConstants { @Deprecated public static final String OPENDATA_RWD_CSV_URL = "https://opendata.rdw.nl/api/views/m9d7-ebf2/rows.csv?accessType=DOWNLOAD"; @Deprecated public static final String OPENDATA_RWD_CSV_POST_URL = "https://opendata.rdw.nl/api/views/INLINE/rows.csv?accessType=DOWNLOAD"; public static final String OPENDATA_RWD_CSV_URL_NEW = "https://opendata.rdw.nl/resource/m9d7-ebf2.csv?" + "$order=kenteken" + "&$limit=20000000" + "&$select=kenteken,voertuigsoort,merk,handelsbenaming,vervaldatum_apk,datum_tenaamstelling,bruto_bpm,inrichting,aantal_zitplaatsen,eerste_kleur,tweede_kleur,aantal_cilinders,cilinderinhoud,massa_ledig_voertuig,toegestane_maximum_massa_voertuig,massa_rijklaar,maximum_massa_trekken_ongeremd,maximum_trekken_massa_geremd,retrofit_roetfilter,zuinigheidslabel,datum_eerste_toelating,datum_eerste_afgifte_nederland,wacht_op_keuren,catalogusprijs,wam_verzekerd,maximale_constructiesnelheid_brom_snorfiets,laadvermogen,oplegger_geremd,aanhangwagen_autonoom_geremd,aanhangwagen_middenas_geremd,vermogen_brom_snorfiets,aantal_staanplaatsen,aantal_deuren,aantal_wielen,afstand_hart_koppeling_tot_achterzijde_voertuig,afstand_voorzijde_voertuig_tot_hart_koppeling,afwijkende_maximum_snelheid,lengte,breedte,europese_voertuigcategorie,europese_voertuigcategorie_toevoeging,europese_uitvoeringcategorie_toevoeging,plaats_chassisnummer,technische_max_massa_voertuig,type,type_gasinstallatie,typegoedkeuringsnummer,variant,uitvoering,volgnummer_wijziging_eu_typegoedkeuring,vermogen_massarijklaar,wielbasis,export_indicator,openstaande_terugroepactie_indicator,vervaldatum_tachograaf"; //order by license plate and remove some fields @Deprecated public static final String VIEW = "{\"id\":\"m9d7-ebf2\",\"name\":\"Open Data RDW: Gekentekende_voertuigen\",\"category\":\"Voertuigen\",\"displayType\":\"table\",\"licenseId\":\"PUBLIC_DOMAIN\",\"publicationAppendEnabled\":false,\"columns\":[{\"id\":623558,\"name\":\"Kenteken\",\"fieldName\":\"kenteken\",\"position\":2,\"width\":196,\"dataTypeName\":\"text\",\"tableColumnId\":264764,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623559,\"name\":\"Voertuigsoort\",\"fieldName\":\"voertuigsoort\",\"position\":3,\"width\":256,\"dataTypeName\":\"text\",\"tableColumnId\":264765,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623560,\"name\":\"Merk\",\"fieldName\":\"merk\",\"position\":4,\"width\":148,\"dataTypeName\":\"text\",\"tableColumnId\":264766,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623561,\"name\":\"Handelsbenaming\",\"fieldName\":\"handelsbenaming\",\"position\":5,\"width\":280,\"dataTypeName\":\"text\",\"tableColumnId\":264767,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623562,\"name\":\"Vervaldatum APK\",\"fieldName\":\"vervaldatum_apk\",\"position\":6,\"width\":280,\"dataTypeName\":\"text\",\"tableColumnId\":264768,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623563,\"name\":\"Datum tenaamstelling\",\"fieldName\":\"datum_tenaamstelling\",\"position\":7,\"width\":340,\"dataTypeName\":\"text\",\"tableColumnId\":264769,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623564,\"name\":\"Bruto BPM\",\"fieldName\":\"bruto_bpm\",\"position\":8,\"width\":208,\"dataTypeName\":\"number\",\"tableColumnId\":264770,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623565,\"name\":\"Inrichting\",\"fieldName\":\"inrichting\",\"position\":9,\"width\":220,\"dataTypeName\":\"text\",\"tableColumnId\":264771,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623566,\"name\":\"Aantal zitplaatsen\",\"fieldName\":\"aantal_zitplaatsen\",\"position\":10,\"width\":316,\"dataTypeName\":\"number\",\"tableColumnId\":264772,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623567,\"name\":\"Eerste kleur\",\"fieldName\":\"eerste_kleur\",\"position\":11,\"width\":244,\"dataTypeName\":\"text\",\"tableColumnId\":264773,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623568,\"name\":\"Tweede kleur\",\"fieldName\":\"tweede_kleur\",\"position\":12,\"width\":244,\"dataTypeName\":\"text\",\"tableColumnId\":264774,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623569,\"name\":\"Aantal cilinders\",\"fieldName\":\"aantal_cilinders\",\"position\":13,\"width\":292,\"dataTypeName\":\"number\",\"tableColumnId\":264775,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623570,\"name\":\"Cilinderinhoud\",\"fieldName\":\"cilinderinhoud\",\"position\":14,\"width\":268,\"dataTypeName\":\"number\",\"tableColumnId\":264776,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623571,\"name\":\"Massa ledig voertuig\",\"fieldName\":\"massa_ledig_voertuig\",\"position\":15,\"width\":340,\"dataTypeName\":\"number\",\"tableColumnId\":264777,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623572,\"name\":\"Toegestane maximum massa voertuig\",\"fieldName\":\"toegestane_maximum_massa_voertuig\",\"position\":16,\"width\":496,\"dataTypeName\":\"number\",\"tableColumnId\":264778,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623573,\"name\":\"Massa rijklaar\",\"fieldName\":\"massa_rijklaar\",\"position\":17,\"width\":268,\"dataTypeName\":\"number\",\"tableColumnId\":264779,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623574,\"name\":\"Maximum massa trekken ongeremd\",\"fieldName\":\"maximum_massa_trekken_ongeremd\",\"position\":18,\"width\":460,\"dataTypeName\":\"number\",\"tableColumnId\":264780,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623575,\"name\":\"Maximum trekken massa geremd\",\"fieldName\":\"maximum_trekken_massa_geremd\",\"position\":19,\"width\":436,\"dataTypeName\":\"number\",\"tableColumnId\":264781,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623576,\"name\":\"Retrofit roetfilter\",\"fieldName\":\"retrofit_roetfilter\",\"position\":20,\"width\":328,\"dataTypeName\":\"text\",\"tableColumnId\":264782,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623577,\"name\":\"Zuinigheidslabel\",\"fieldName\":\"zuinigheidslabel\",\"position\":21,\"width\":292,\"dataTypeName\":\"text\",\"tableColumnId\":264783,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623578,\"name\":\"Datum eerste toelating\",\"fieldName\":\"datum_eerste_toelating\",\"position\":22,\"width\":364,\"dataTypeName\":\"text\",\"tableColumnId\":264784,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623579,\"name\":\"Datum eerste afgifte Nederland\",\"fieldName\":\"datum_eerste_afgifte_nederland\",\"position\":23,\"width\":460,\"dataTypeName\":\"text\",\"tableColumnId\":264785,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623580,\"name\":\"Wacht op keuren\",\"fieldName\":\"wacht_op_keuren\",\"position\":24,\"width\":280,\"dataTypeName\":\"text\",\"tableColumnId\":264786,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623581,\"name\":\"Catalogusprijs\",\"fieldName\":\"catalogusprijs\",\"position\":25,\"width\":268,\"dataTypeName\":\"number\",\"tableColumnId\":264787,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623582,\"name\":\"WAM verzekerd\",\"fieldName\":\"wam_verzekerd\",\"position\":26,\"width\":256,\"dataTypeName\":\"text\",\"tableColumnId\":264788,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623583,\"name\":\"Maximale constructiesnelheid (brom/snorfiets)\",\"fieldName\":\"maximale_constructiesnelheid_brom_snorfiets\",\"position\":27,\"width\":628,\"dataTypeName\":\"number\",\"tableColumnId\":264789,\"format\":{\"precisionStyle\":\"standard\",\"align\":\"right\",\"noCommas\":\"false\"},\"flags\":null,\"metadata\":{}},{\"id\":623584,\"name\":\"Laadvermogen\",\"fieldName\":\"laadvermogen\",\"position\":28,\"width\":244,\"dataTypeName\":\"number\",\"tableColumnId\":264790,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623585,\"name\":\"Oplegger geremd\",\"fieldName\":\"oplegger_geremd\",\"position\":29,\"width\":280,\"dataTypeName\":\"number\",\"tableColumnId\":264791,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623586,\"name\":\"Aanhangwagen autonoom geremd\",\"fieldName\":\"aanhangwagen_autonoom_geremd\",\"position\":30,\"width\":436,\"dataTypeName\":\"number\",\"tableColumnId\":264792,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623587,\"name\":\"Aanhangwagen middenas geremd\",\"fieldName\":\"aanhangwagen_middenas_geremd\",\"position\":31,\"width\":436,\"dataTypeName\":\"number\",\"tableColumnId\":264793,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623588,\"name\":\"Vermogen (brom/snorfiets)\",\"fieldName\":\"vermogen_brom_snorfiets\",\"position\":32,\"width\":400,\"dataTypeName\":\"number\",\"tableColumnId\":264794,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623589,\"name\":\"Aantal staanplaatsen\",\"fieldName\":\"aantal_staanplaatsen\",\"position\":33,\"width\":340,\"dataTypeName\":\"number\",\"tableColumnId\":264795,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623590,\"name\":\"Aantal deuren\",\"fieldName\":\"aantal_deuren\",\"position\":34,\"width\":256,\"dataTypeName\":\"number\",\"tableColumnId\":264796,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623591,\"name\":\"Aantal wielen\",\"fieldName\":\"aantal_wielen\",\"position\":35,\"width\":256,\"dataTypeName\":\"number\",\"tableColumnId\":264797,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623592,\"name\":\"Afstand hart koppeling tot achterzijde voertuig\",\"fieldName\":\"afstand_hart_koppeling_tot_achterzijde_voertuig\",\"position\":36,\"width\":664,\"dataTypeName\":\"number\",\"tableColumnId\":264798,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623593,\"name\":\"Afstand voorzijde voertuig tot hart koppeling\",\"fieldName\":\"afstand_voorzijde_voertuig_tot_hart_koppeling\",\"position\":37,\"width\":640,\"dataTypeName\":\"number\",\"tableColumnId\":264799,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623594,\"name\":\"Afwijkende maximum snelheid\",\"fieldName\":\"afwijkende_maximum_snelheid\",\"position\":38,\"width\":424,\"dataTypeName\":\"number\",\"tableColumnId\":264800,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623595,\"name\":\"Lengte\",\"fieldName\":\"lengte\",\"position\":39,\"width\":172,\"dataTypeName\":\"number\",\"tableColumnId\":264801,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623596,\"name\":\"Breedte\",\"fieldName\":\"breedte\",\"position\":40,\"width\":184,\"dataTypeName\":\"number\",\"tableColumnId\":264802,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623597,\"name\":\"Europese voertuigcategorie\",\"fieldName\":\"europese_voertuigcategorie\",\"position\":41,\"width\":412,\"dataTypeName\":\"text\",\"tableColumnId\":264803,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623598,\"name\":\"Europese voertuigcategorie toevoeging\",\"fieldName\":\"europese_voertuigcategorie_toevoeging\",\"position\":42,\"width\":544,\"dataTypeName\":\"text\",\"tableColumnId\":264804,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623599,\"name\":\"Europese uitvoeringcategorie toevoeging\",\"fieldName\":\"europese_uitvoeringcategorie_toevoeging\",\"position\":43,\"width\":568,\"dataTypeName\":\"text\",\"tableColumnId\":264805,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623600,\"name\":\"Plaats chassisnummer\",\"fieldName\":\"plaats_chassisnummer\",\"position\":44,\"width\":340,\"dataTypeName\":\"text\",\"tableColumnId\":264806,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623601,\"name\":\"Technische max. massa voertuig\",\"fieldName\":\"technische_max_massa_voertuig\",\"position\":45,\"width\":460,\"dataTypeName\":\"number\",\"tableColumnId\":264807,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623602,\"name\":\"Type\",\"fieldName\":\"type\",\"position\":46,\"width\":148,\"dataTypeName\":\"text\",\"tableColumnId\":264808,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623603,\"name\":\"Type gasinstallatie\",\"fieldName\":\"type_gasinstallatie\",\"position\":47,\"width\":328,\"dataTypeName\":\"text\",\"tableColumnId\":264809,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623604,\"name\":\"Typegoedkeuringsnummer\",\"fieldName\":\"typegoedkeuringsnummer\",\"position\":48,\"width\":364,\"dataTypeName\":\"text\",\"tableColumnId\":264810,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623605,\"name\":\"Variant\",\"fieldName\":\"variant\",\"position\":49,\"width\":184,\"dataTypeName\":\"text\",\"tableColumnId\":264811,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623606,\"name\":\"Uitvoering\",\"fieldName\":\"uitvoering\",\"position\":50,\"width\":220,\"dataTypeName\":\"text\",\"tableColumnId\":264812,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623607,\"name\":\"Volgnummer wijziging EU typegoedkeuring\",\"fieldName\":\"volgnummer_wijziging_eu_typegoedkeuring\",\"position\":51,\"width\":568,\"dataTypeName\":\"number\",\"tableColumnId\":264813,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623608,\"name\":\"Vermogen massarijklaar\",\"fieldName\":\"vermogen_massarijklaar\",\"position\":52,\"width\":364,\"dataTypeName\":\"number\",\"tableColumnId\":264814,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623609,\"name\":\"Wielbasis\",\"fieldName\":\"wielbasis\",\"position\":53,\"width\":208,\"dataTypeName\":\"number\",\"tableColumnId\":264815,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623610,\"name\":\"Export indicator\",\"fieldName\":\"export_indicator\",\"position\":54,\"width\":292,\"dataTypeName\":\"text\",\"tableColumnId\":264816,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623611,\"name\":\"Openstaande terugroepactie indicator\",\"fieldName\":\"openstaande_terugroepactie_indicator\",\"position\":55,\"width\":532,\"dataTypeName\":\"text\",\"tableColumnId\":264817,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623612,\"name\":\"Vervaldatum tachograaf\",\"fieldName\":\"vervaldatum_tachograaf\",\"position\":56,\"width\":364,\"dataTypeName\":\"text\",\"tableColumnId\":264818,\"format\":{},\"flags\":null,\"metadata\":{}},{\"id\":623613,\"name\":\"API Gekentekende_voertuigen_assen\",\"fieldName\":\"api_gekentekende_voertuigen_assen\",\"position\":57,\"width\":496,\"dataTypeName\":\"text\",\"tableColumnId\":264819,\"format\":{},\"flags\":[\"hidden\"],\"metadata\":{}},{\"id\":623614,\"name\":\"API Gekentekende_voertuigen_brandstof\",\"fieldName\":\"api_gekentekende_voertuigen_brandstof\",\"position\":58,\"width\":544,\"dataTypeName\":\"text\",\"tableColumnId\":264820,\"format\":{},\"flags\":[\"hidden\"],\"metadata\":{}},{\"id\":623615,\"name\":\"API Gekentekende_voertuigen_carrosserie\",\"fieldName\":\"api_gekentekende_voertuigen_carrosserie\",\"position\":59,\"width\":568,\"dataTypeName\":\"text\",\"tableColumnId\":264821,\"format\":{},\"flags\":[\"hidden\"],\"metadata\":{}},{\"id\":623616,\"name\":\"API Gekentekende_voertuigen_carrosserie_specifiek\",\"fieldName\":\"api_gekentekende_voertuigen_carrosserie_specifiek\",\"position\":60,\"width\":688,\"dataTypeName\":\"text\",\"tableColumnId\":264822,\"format\":{},\"flags\":[\"hidden\"],\"metadata\":{}},{\"id\":623617,\"name\":\"API Gekentekende_voertuigen_voertuigklasse\",\"fieldName\":\"api_gekentekende_voertuigen_voertuigklasse\",\"position\":61,\"width\":604,\"dataTypeName\":\"text\",\"tableColumnId\":264823,\"format\":{},\"flags\":[\"hidden\"],\"metadata\":{}}],\"metadata\":{\"custom_fields\":{\"Licentie\":{\"Licentie\":\"Creative Commons 0 (CC0)\"}},\"renderTypeConfig\":{\"visible\":{\"table\":true}},\"availableDisplayTypes\":[\"table\",\"fatrow\",\"page\"],\"rowLabel\":\"Row\",\"rdfSubject\":\"kenteken\",\"rdfClass\":\"\",\"jsonQuery\":{\"order\":[{\"columnFieldName\":\"kenteken\",\"ascending\":true}]}},\"query\":{\"orderBys\":[{\"expression\":{\"columnId\":623558,\"type\":\"column\"},\"ascending\":true}]},\"tags\":[\"kenteken\"],\"flags\":[\"default\"],\"originalViewId\":\"m9d7-ebf2\",\"displayFormat\":{}}"; public static final String METHOD = "index"; @Deprecated public static final String API_URL = "https://api.datamarket.azure.com/Data.ashx/opendata.rdw/VRTG.Open.Data/v1"; @Deprecated public static final String DATASET_URL = "https://datamarket.azure.com/offer/download?" + "endpoint=https%3A%2F%2Fapi.datamarket.azure.com%2Fopendata.rdw%2FVRTG.Open.Data%2Fv1%2F" + "&query=KENT_VRTG_O_DAT" + "&accountKey=npxbH%2FGL20XJOZGO5G6Pd%2F3%2BDE5oH2HGPN%2BRbE5%2BOWY" + "&title=Voertuig+Open+Data" + "&name=Voertuig+Open+Data-KENT_VRTG_O_DAT"; public static final String TITLE = "KENT_VRTG_O_DAT"; public static final String BPM = "BPM"; public static final String CATALOGUSPRIJS = "Catalogusprijs"; public static final String CO2UITSTOOTGECOMBINEERD = "CO2uitstootgecombineerd"; public static final String DATUMAANVANGTENAAMSTELLING = "Datumaanvangtenaamstelling"; public static final String DATUMEERSTEAFGIFTENEDERLAND = "DatumeersteafgifteNederland"; public static final String DATUMEERSTETOELATING = "Datumeerstetoelating"; public static final String EERSTEKLEUR = "Eerstekleur"; public static final String HANDELSBENAMING = "Handelsbenaming"; public static final String HOOFDBRANDSTOF = "Hoofdbrandstof"; public static final String INRICHTING = "Inrichting"; public static final String KENTEKEN = "Kenteken"; public static final String MERK = "Merk"; public static final String MILIEUCLASSIFICATIE = "Milieuclassificatie"; public static final String NEVENBRANDSTOF = "Nevenbrandstof"; public static final String RETROFITROETFILTER = "Retrofitroetfilter"; public static final String TWEEDEKLEUR = "Tweedekleur"; public static final String VERVALDATUMAPK = "VervaldatumAPK"; public static final String VOERTUIGSOORT = "Voertuigsoort"; public static final String ZUINIGHEIDSLABEL = "Zuinigheidslabel"; public static final String AANTALCILINDERS = "Aantalcilinders"; public static final String AANTALSTAANPLAATSEN = "Aantalstaanplaatsen"; public static final String AANTALZITPLAATSEN = "Aantalzitplaatsen"; public static final String BRANDSTOFVERBRUIKBUITENWEG = "Brandstofverbruikbuitenweg"; public static final String BRANDSTOFVERBRUIKGECOMBINEERD = "Brandstofverbruikgecombineerd"; public static final String BRANDSTOFVERBRUIKSTAD = "Brandstofverbruikstad"; public static final String CILINDERINHOUD = "Cilinderinhoud"; public static final String G3INSTALLATIE = "G3installatie"; public static final String LAADVERMOGEN = "Laadvermogen"; public static final String MASSALEEGVOERTUIG = "Massaleegvoertuig"; public static final String MASSARIJKLAAR = "Massarijklaar"; public static final String MAXIMALECONSTRUCTIESNELHEID = "Maximaleconstructiesnelheid"; public static final String MAXIMUMTETREKKENMASSAAUTONOOMGEREMD = "Maximumtetrekkenmassaautonoomgeremd"; public static final String MAXIMUMTETREKKENMASSAGEREMD = "Maximumtetrekkenmassageremd"; public static final String MAXIMUMTETREKKENMASSAMIDDENASGEREMD = "Maximumtetrekkenmassamiddenasgeremd"; public static final String MAXIMUMTETREKKENMASSAONGEREMD = "Maximumtetrekkenmassaongeremd"; public static final String MAXIMUMTETREKKENMASSAOPLEGGERGEREMD = "Maximumtetrekkenmassaopleggergeremd"; public static final String TOEGESTANEMAXIMUMMASSAVOERTUIG = "Toegestanemaximummassavoertuig"; public static final String VERMOGEN = "Vermogen"; public static final String WACHTOPKEUREN = "Wachtopkeuren"; public static final String WAMVERZEKERDGEREGISTREERD = "WAMverzekerdgeregistreerd"; public static void main(String[] args) throws Exception { String url = OPENDATA_RWD_CSV_POST_URL; HttpPost request = new HttpPost(url); List<NameValuePair> nvps = new ArrayList<NameValuePair>(); nvps.add(new BasicNameValuePair("view", VIEW)); nvps.add(new BasicNameValuePair("method", METHOD)); request.setEntity(new UrlEncodedFormEntity(nvps)); CloseableHttpClient httpClient = HttpClients.custom().build(); CloseableHttpResponse response = httpClient.execute(request); InputStream is = response.getEntity().getContent(); IOUtils.copy(is, System.out); } }