You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Daniel Yokomizo (JIRA)" <ji...@apache.org> on 2012/06/27 15:31:42 UTC
[jira] [Created] (HTTPCORE-300) ContentType does not support
parameters
Daniel Yokomizo created HTTPCORE-300:
----------------------------------------
Summary: ContentType does not support parameters
Key: HTTPCORE-300
URL: https://issues.apache.org/jira/browse/HTTPCORE-300
Project: HttpComponents HttpCore
Issue Type: Bug
Components: HttpCore
Affects Versions: 4.2
Reporter: Daniel Yokomizo
Priority: Minor
ContentType is the class to be used in httpcore-4.2 whenever a mime type is expected (e.g. StringEntity, FileEntity), but it does not support parameters so it's not possible to use it in places where a parameters is part of the mime type.
For example in an application I work on we use parameter to specify the applicable JSON schema, as recommended in the JSON Schema draft (http://tools.ietf.org/html/draft-zyp-json-schema-03)
Content-Type: application/my-media-type+json;profile=http://json.com/my-hyper-schema
It should be possible to specify parameters to a ContentType and get them when parsing.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Updated] (HTTPCORE-300) ContentType does not support
parameters
Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCORE-300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated HTTPCORE-300:
---------------------------------------
Fix Version/s: 4.3
Issue Type: Improvement (was: Bug)
> ContentType does not support parameters
> ---------------------------------------
>
> Key: HTTPCORE-300
> URL: https://issues.apache.org/jira/browse/HTTPCORE-300
> Project: HttpComponents HttpCore
> Issue Type: Improvement
> Components: HttpCore
> Affects Versions: 4.2
> Reporter: Daniel Yokomizo
> Priority: Minor
> Fix For: 4.3
>
>
> ContentType is the class to be used in httpcore-4.2 whenever a mime type is expected (e.g. StringEntity, FileEntity), but it does not support parameters so it's not possible to use it in places where a parameters is part of the mime type.
> For example in an application I work on we use parameter to specify the applicable JSON schema, as recommended in the JSON Schema draft (http://tools.ietf.org/html/draft-zyp-json-schema-03)
> Content-Type: application/my-media-type+json;profile=http://json.com/my-hyper-schema
> It should be possible to specify parameters to a ContentType and get them when parsing.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org