hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCORE-139) allow explicit unsetting of parameters in stacks or hierarchies
Date Thu, 10 Jan 2008 19:51:34 GMT

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

Oleg Kalnichevski commented on HTTPCORE-139:
--------------------------------------------

Disregard my previous post. I picked up the wrong class. How about this? 

===
public final class DefaultedHttpParams extends AbstractHttpParams {

...

    public Object getParameter(final String name) {
        Object obj = this.local.getParameter(name);
        if (NoParamValue.NULL.equals(obj)) {
            return null;
        }
        if (obj == null && this.defaults != null) {
            obj = this.defaults.getParameter(name);
        }
        return obj;
    }
===

Oleg

> 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-beta1
>
>         Attachments: 2k8-01-10-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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message