You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Roland Weber (JIRA)" <ji...@apache.org> on 2007/01/27 16:49:49 UTC

[jira] Created: (HTTPCORE-32) provide interface to manipulate interceptor lists

provide interface to manipulate interceptor lists
-------------------------------------------------

                 Key: HTTPCORE-32
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-32
             Project: HttpComponents Core
          Issue Type: New Feature
          Components: HttpCore
    Affects Versions: 4.0-alpha3
            Reporter: Roland Weber
         Assigned To: Roland Weber
            Priority: Minor


HttpClient interface should expose the lists of request and response interceptors in an HttpProcessor to allow for programmatic modification. Currently, there is no interface that allows for modification, only the implementation class BasicHttpProcessor. Interfaces should be defined in HttpCore rather than HttpClient so they can be implemented directly by BasicHttpProcessor. Suggested names:
HttpRequestInterceptorList
HttpResponseInterceptorList

cheers,
  Roland


-- 
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


[jira] Commented: (HTTPCORE-32) provide interface to manipulate interceptor lists

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCORE-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468151 ] 

Oleg Kalnichevski commented on HTTPCORE-32:
-------------------------------------------

Makes sense, but could we keep it out of HttpCore? BasicHttpProcessor seems to be good enough for HttpCore

Oleg

> provide interface to manipulate interceptor lists
> -------------------------------------------------
>
>                 Key: HTTPCORE-32
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-32
>             Project: HttpComponents Core
>          Issue Type: New Feature
>          Components: HttpCore
>    Affects Versions: 4.0-alpha3
>            Reporter: Roland Weber
>         Assigned To: Roland Weber
>            Priority: Minor
>
> HttpClient interface should expose the lists of request and response interceptors in an HttpProcessor to allow for programmatic modification. Currently, there is no interface that allows for modification, only the implementation class BasicHttpProcessor. Interfaces should be defined in HttpCore rather than HttpClient so they can be implemented directly by BasicHttpProcessor. Suggested names:
> HttpRequestInterceptorList
> HttpResponseInterceptorList
> cheers,
>   Roland

-- 
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


[jira] Commented: (HTTPCORE-32) provide interface to manipulate interceptor lists

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCORE-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468398 ] 

Oleg Kalnichevski commented on HTTPCORE-32:
-------------------------------------------

I tend to see HttpProcessors as immutable, because I can't think of a legitimate case where one might want to modify protocol interceptors 'on the fly', but I do not feel very strongly about it. Just go ahead and hack it up in HttpCore.

Oleg

> provide interface to manipulate interceptor lists
> -------------------------------------------------
>
>                 Key: HTTPCORE-32
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-32
>             Project: HttpComponents Core
>          Issue Type: New Feature
>          Components: HttpCore
>    Affects Versions: 4.0-alpha3
>            Reporter: Roland Weber
>         Assigned To: Roland Weber
>            Priority: Minor
>
> HttpClient interface should expose the lists of request and response interceptors in an HttpProcessor to allow for programmatic modification. Currently, there is no interface that allows for modification, only the implementation class BasicHttpProcessor. Interfaces should be defined in HttpCore rather than HttpClient so they can be implemented directly by BasicHttpProcessor. Suggested names:
> HttpRequestInterceptorList
> HttpResponseInterceptorList
> cheers,
>   Roland

-- 
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


[jira] Resolved: (HTTPCORE-32) provide interface to manipulate interceptor lists

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCORE-32.
---------------------------------------

    Resolution: Fixed

Reviewed. Looks good to me.

Oleg

> provide interface to manipulate interceptor lists
> -------------------------------------------------
>
>                 Key: HTTPCORE-32
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-32
>             Project: HttpComponents Core
>          Issue Type: New Feature
>          Components: HttpCore
>    Affects Versions: 4.0-alpha3
>            Reporter: Roland Weber
>         Assigned To: Roland Weber
>            Priority: Minor
>             Fix For: 4.0-alpha4
>
>
> HttpClient interface should expose the lists of request and response interceptors in an HttpProcessor to allow for programmatic modification. Currently, there is no interface that allows for modification, only the implementation class BasicHttpProcessor. Interfaces should be defined in HttpCore rather than HttpClient so they can be implemented directly by BasicHttpProcessor. Suggested names:
> HttpRequestInterceptorList
> HttpResponseInterceptorList
> cheers,
>   Roland

-- 
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


[jira] Commented: (HTTPCORE-32) provide interface to manipulate interceptor lists

Posted by "Roland Weber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCORE-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468320 ] 

Roland Weber commented on HTTPCORE-32:
--------------------------------------

Hi Oleg,

BasicHttpProcessor is stuck in transition. We changed the underlying collection from Set to List to maintain order, but we didn't update the interface. I always considered that one of the things I'd do when I get to it, and now seems to be the time. The deficiency has not been noticed yet because nobody cares (needs?) to modify interceptor order programmatically: the list is built once and remains unchanged afterwards.
We can declare this to be the usage model of choice for BasicHttpProcessor, in that case I suggest to get rid of the removeInterceptor methods. But if we have methods to manipulate the list, I feel we should give the user full control over the interceptor order.

I can define interfaces and implementation in HttpClient and we'll discuss folding them into HttpCore afterwards.

cheers,
  Roland


> provide interface to manipulate interceptor lists
> -------------------------------------------------
>
>                 Key: HTTPCORE-32
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-32
>             Project: HttpComponents Core
>          Issue Type: New Feature
>          Components: HttpCore
>    Affects Versions: 4.0-alpha3
>            Reporter: Roland Weber
>         Assigned To: Roland Weber
>            Priority: Minor
>
> HttpClient interface should expose the lists of request and response interceptors in an HttpProcessor to allow for programmatic modification. Currently, there is no interface that allows for modification, only the implementation class BasicHttpProcessor. Interfaces should be defined in HttpCore rather than HttpClient so they can be implemented directly by BasicHttpProcessor. Suggested names:
> HttpRequestInterceptorList
> HttpResponseInterceptorList
> cheers,
>   Roland

-- 
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


[jira] Updated: (HTTPCORE-32) provide interface to manipulate interceptor lists

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski updated HTTPCORE-32:
--------------------------------------

    Fix Version/s: 4.0-alpha4

> provide interface to manipulate interceptor lists
> -------------------------------------------------
>
>                 Key: HTTPCORE-32
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-32
>             Project: HttpComponents Core
>          Issue Type: New Feature
>          Components: HttpCore
>    Affects Versions: 4.0-alpha3
>            Reporter: Roland Weber
>         Assigned To: Roland Weber
>            Priority: Minor
>             Fix For: 4.0-alpha4
>
>
> HttpClient interface should expose the lists of request and response interceptors in an HttpProcessor to allow for programmatic modification. Currently, there is no interface that allows for modification, only the implementation class BasicHttpProcessor. Interfaces should be defined in HttpCore rather than HttpClient so they can be implemented directly by BasicHttpProcessor. Suggested names:
> HttpRequestInterceptorList
> HttpResponseInterceptorList
> cheers,
>   Roland

-- 
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


[jira] Commented: (HTTPCORE-32) provide interface to manipulate interceptor lists

Posted by "Roland Weber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCORE-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470047 ] 

Roland Weber commented on HTTPCORE-32:
--------------------------------------

Hi Oleg,

done. o.a.h.protocol.HttpRe{quest|sponse}InterceptorList and modified BasicHttpProcessor.
Please close this issue if the changes are OK for you.

cheers,
  Roland




> provide interface to manipulate interceptor lists
> -------------------------------------------------
>
>                 Key: HTTPCORE-32
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-32
>             Project: HttpComponents Core
>          Issue Type: New Feature
>          Components: HttpCore
>    Affects Versions: 4.0-alpha3
>            Reporter: Roland Weber
>         Assigned To: Roland Weber
>            Priority: Minor
>             Fix For: 4.0-alpha4
>
>
> HttpClient interface should expose the lists of request and response interceptors in an HttpProcessor to allow for programmatic modification. Currently, there is no interface that allows for modification, only the implementation class BasicHttpProcessor. Interfaces should be defined in HttpCore rather than HttpClient so they can be implemented directly by BasicHttpProcessor. Suggested names:
> HttpRequestInterceptorList
> HttpResponseInterceptorList
> cheers,
>   Roland

-- 
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