You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Gerald Turner (JIRA)" <ji...@apache.org> on 2009/09/03 22:50:57 UTC

[jira] Created: (HTTPCORE-204) Add StringEntity constructor with MIME-type

Add StringEntity constructor with MIME-type
-------------------------------------------

                 Key: HTTPCORE-204
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-204
             Project: HttpComponents HttpCore
          Issue Type: Improvement
          Components: HttpCore
    Affects Versions: 4.0.1
            Reporter: Gerald Turner
            Priority: Trivial


Wishlist request to add an additional constructor to StringEntity which takes the MIME-type portion of the Content-Type.
  
  Without additional constructor:

    StringEntity entity = new StringEntity(xml, "UTF-8");
    entity.setContentType("text/xml; charset=UTF-8");

  With additional constructor:

    StringEntity entity = new StringEntity(xml, "text/xml", "UTF-8");

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] Resolved: (HTTPCORE-204) Add StringEntity constructor with MIME-type

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCORE-204.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.1-alpha1

Patch checked in. Many thanks, Gerald

Oleg

> Add StringEntity constructor with MIME-type
> -------------------------------------------
>
>                 Key: HTTPCORE-204
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-204
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: HttpCore
>    Affects Versions: 4.0.1
>            Reporter: Gerald Turner
>            Priority: Trivial
>             Fix For: 4.1-alpha1
>
>         Attachments: StringEntity.patch
>
>
> Wishlist request to add an additional constructor to StringEntity which takes the MIME-type portion of the Content-Type.
>   
>   Without additional constructor:
>     StringEntity entity = new StringEntity(xml, "UTF-8");
>     entity.setContentType("text/xml; charset=UTF-8");
>   With additional constructor:
>     StringEntity entity = new StringEntity(xml, "text/xml", "UTF-8");

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] Updated: (HTTPCORE-204) Add StringEntity constructor with MIME-type

Posted by "Gerald Turner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerald Turner updated HTTPCORE-204:
-----------------------------------

    Attachment: StringEntity.patch

Patch StringEntity and TestStringEntity to include and unit test the additional constructor

> Add StringEntity constructor with MIME-type
> -------------------------------------------
>
>                 Key: HTTPCORE-204
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-204
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: HttpCore
>    Affects Versions: 4.0.1
>            Reporter: Gerald Turner
>            Priority: Trivial
>         Attachments: StringEntity.patch
>
>
> Wishlist request to add an additional constructor to StringEntity which takes the MIME-type portion of the Content-Type.
>   
>   Without additional constructor:
>     StringEntity entity = new StringEntity(xml, "UTF-8");
>     entity.setContentType("text/xml; charset=UTF-8");
>   With additional constructor:
>     StringEntity entity = new StringEntity(xml, "text/xml", "UTF-8");

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org