hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roland Weber (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCORE-129) Immutable request/response
Date Tue, 06 Nov 2007 19:38:51 GMT

    [ https://issues.apache.org/jira/browse/HTTPCORE-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540534

Roland Weber commented on HTTPCORE-129:

I'm not a big fan of the idea, though it might actually work since the referenced interfaces
Header, RequestLine and StatusLine are read-only interfaces. But you have to omit the headerIterator()
methods from the immutable message, to avoid message.headerIterator().remove();
Immutability ends with the entity, of course.
If you want to make this change, I have no objections.


> Immutable request/response
> --------------------------
>                 Key: HTTPCORE-129
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-129
>             Project: HttpComponents Core
>          Issue Type: Improvement
>          Components: HttpCore
>    Affects Versions: 4.0-beta1
>            Reporter: Stojce Dimski
>            Priority: Minor
> There are many cases where user would just 'consume' response and would not have to modify
nothing es. received response...
> With 2 interfaces and guideline to use a immutable version for polymorphic variables
compiler would catch any error pretty soon...
> Is there some possibility to have e immutable request/response objects as in:
> https://svn.safehaus.org/repos/asyncweb/trunk/core/src/main/java/org/safehaus/asyncweb/common/HttpMessage.java
> https://svn.safehaus.org/repos/asyncweb/trunk/core/src/main/java/org/safehaus/asyncweb/common/MutableHttpMessage.java

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

View raw message