[
https://issues.apache.org/jira/browse/HTTPCORE-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14507335#comment-14507335
]
Volodymyr Kyrychenko edited comment on HTTPCORE-400 at 4/22/15 4:20 PM:
------------------------------------------------------------------------
Content Type is pretty much simple object that represents element of the set of
content types. Equivalence of content types should be based on that fact.
according to http://tools.ietf.org/html/rfc2046
mime is case insensitive
charset is case insensitive
attribute names are case insensitive (this logic already applied in
getParameter())
attribute order should not matter
Content types are equivalent if they have same mime types, same charset and
same attributes with respect to corresponding RFC.
was (Author: razer):
Content Type is pretty much simple object that represents element of the set of
content types. Equivalence of that content types should be based on that fact.
according to http://tools.ietf.org/html/rfc2046
mime is case insensitive
charset is case insensitive
attribute names are case insensitive (this logic already applied in
getParameter())
attribute order should not matter
Content types are equivalent if they have same mime types, same charset and
same attributes with respect to corresponding RFC.
> ContentType.equals & hashCode are not implemented
> -------------------------------------------------
>
> Key: HTTPCORE-400
> URL: https://issues.apache.org/jira/browse/HTTPCORE-400
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Reporter: Volodymyr Kyrychenko
>
> Since equals and hashCode are not implemented it's impossible to use them in
> handful of cases
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]