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

Roland Weber commented on HTTPCORE-139:
---------------------------------------

I don't think it addressed all the cases where it is or might be necessary. I 
was just addressing the most obvious ones, hoping to avoid implementing more 
complex ones like NO_INET_ADDRESS to unset the LOCAL_ADDRESS parameter. I 
consider the technique of creating invalid objects to represent NULL a hack, 
and it cannot even be used for elementary types where every possible value is 
valid. How do you unset a String?
Have you taken a look at the NO_HOST object in HttpClient? If we ever added 
basic sanity checks to HttpHost, it would have to be changed. And as soon as it 
is changed, we run into version compatibility problems.

cheers,
  Roland


> allow explicit unsetting of parameters in stacks or hierarchies
> ---------------------------------------------------------------
>
>                 Key: HTTPCORE-139
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-139
>             Project: HttpComponents Core
>          Issue Type: Improvement
>          Components: HttpCore
>    Affects Versions: 4.0-alpha6
>            Reporter: Roland Weber
>            Assignee: Roland Weber
>            Priority: Minor
>             Fix For: 4.0-beta2
>
>         Attachments: 2k8-01-10-null-param.txt, 2k8-01-13-null-param.txt
>
>
> Patch for the "global null" approach to follow.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to