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] [Commented] (HTTPCORE-400) ContentType.equals & hashCode are not implemented
Date Wed, 22 Apr 2015 16:19:58 GMT

    [ https://issues.apache.org/jira/browse/HTTPCORE-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14507335#comment-14507335

Volodymyr Kyrychenko commented on HTTPCORE-400:

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 handull
of cases

This message was sent by Atlassian JIRA

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

View raw message