hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Volodymyr Kyrychenko (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HTTPCORE-400) ContentType.equals & hashCode are not implemented
Date Wed, 22 Apr 2015 16:20:59 GMT

    [ 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message