qu'est-ce que stringentity dans android et son utilisation

Je suis nouveau sur android , je suis la suite de ce tutoriel, j'ai trouvé le code ci-dessous , il est la conversion de chaîne json à StringEntity. corrigez-moi si je me trompe StringEntity est utilisé pour transmettre les données,les en-Têtes comme les Accepter,de type de Contenu pour le Serveur.

            //1. create HttpClient
        HttpClient httpclient = new DefaultHttpClient();

        //2. make POST request to the given URL
        HttpPost httpPost = new HttpPost(url);



        String json = "";

        //3. build jsonObject
        JSONObject jsonObject = new JSONObject();
        jsonObject.accumulate("name", person.getName());
        jsonObject.accumulate("country", person.getCountry());
        jsonObject.accumulate("twitter", person.getTwitter());

        //4. convert JSONObject to JSON to String
        json = jsonObject.toString();

        //** Alternative way to convert Person object to JSON string usin Jackson Lib
        //ObjectMapper mapper = new ObjectMapper();
        //json = mapper.writeValueAsString(person);

        //5. set json to StringEntity
        StringEntity se = new StringEntity(json);

        //6. set httpPost Entity
        httpPost.setEntity(se);

        //7. Set some headers to inform server about the type of the content   
        httpPost.setHeader("Accept", "application/json");
        httpPost.setHeader("Content-type", "application/json");

        //8. Execute POST request to the given URL
        HttpResponse httpResponse = httpclient.execute(httpPost);

        //9. receive response as inputStream
        inputStream = httpResponse.getEntity().getContent();
.
.
.

et comment puis-je obtenir les données dans le servlet/jsp ? Dois-je utiliser getStream() ou de la demande.getParameter()

OriginalL'auteur LMK | 2014-03-05