[ 
https://issues.apache.org/jira/browse/CAMEL-5575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509706#comment-13509706
 ] 

Amit Patel commented on CAMEL-5575:
-----------------------------------

Christian,


 The changes  to add this feature is minor and risk free. Actually  this 
feature help us to resolve the defect. We have been waiting for last two months 
for Camel 2.11.0 release, but Camel 2.11.0 is not going to release pretty soon.

We really appreciate your help!

Thanks,
Amit Patel




On Dec 3, 2012, at 5:51 PM, Christian Müller (JIRA) 
<[email protected]<mailto:[email protected]>> wrote:


   [ 
https://issues.apache.org/jira/browse/CAMEL-5575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509287#comment-13509287
 ]

Christian Müller commented on CAMEL-5575:
-----------------------------------------

Camel 2.9.5 and 2.10.3 are already in VOTE. I'm afraid it's to late to back 
port this fix to these versions.

http://camel.465427.n5.nabble.com/VOTE-Release-Apache-Camel-2-9-5-td5723412.html
http://camel.465427.n5.nabble.com/VOTE-Release-Apache-Camel-2-10-3-td5723516.html

Add new HttpEndpoint Option "httpHeaderFilterStrategy" on Http4 component
-------------------------------------------------------------------------

               Key: CAMEL-5575
               URL: https://issues.apache.org/jira/browse/CAMEL-5575
           Project: Camel
        Issue Type: New Feature
        Components: camel-http
          Reporter: Amit Patel
          Assignee: Willem Jiang
           Fix For: 2.11.0

       Attachments: HttpComponent.java


Our third-party application accepts Date as Http header, but 
HttpHeaderFilterStrategy.java filters the date. To support out third-party 
application I want new feature to add Custom http filter on a Http4 Endpoint.
I made the following changes on HttpComponent createEndpoint method  to support 
custom http filter as opetion qq on Http4 Endpoint. Please find source code in 
the attached HttpComponent.java file.


HttpHeaderFilterStrategy httpHeaderFilterStrategy = 
resolveAndRemoveReferenceParameter(
                                                                                
              parameters, "httpHeaderFilterStrategy",
                                                                                
              HttpHeaderFilterStrategy.class);
       if (httpHeaderFilterStrategy == null) {
httpHeaderFilterStrategy = resolveAndRemoveReferenceParameter(
                                                                         
parameters, "httpHeaderFilterStrategy",
                                                                         
HttpHeaderFilterStrategy.class);
       }

       if (httpHeaderFilterStrategy != null) {
endpoint.setHeaderFilterStrategy(httpHeaderFilterStrategy);
} else {
setEndpointHeaderFilterStrategy(endpoint);
     }



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


                
> Add new HttpEndpoint Option "httpHeaderFilterStrategy" on Http4 component
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-5575
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5575
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-http
>            Reporter: Amit Patel
>            Assignee: Willem Jiang
>             Fix For: 2.11.0
>
>         Attachments: HttpComponent.java
>
>
> Our third-party application accepts Date as Http header, but 
> HttpHeaderFilterStrategy.java filters the date. To support out third-party 
> application I want new feature to add Custom http filter on a Http4 Endpoint.
> I made the following changes on HttpComponent createEndpoint method  to 
> support custom http filter as opetion qq on Http4 Endpoint. Please find 
> source code in the attached HttpComponent.java file. 
>   
>         
>  HttpHeaderFilterStrategy httpHeaderFilterStrategy = 
> resolveAndRemoveReferenceParameter(
>                                                                               
>                  parameters, "httpHeaderFilterStrategy",
>                                                                               
>                  HttpHeaderFilterStrategy.class);
>         if (httpHeaderFilterStrategy == null) {
>                       httpHeaderFilterStrategy = 
> resolveAndRemoveReferenceParameter(
>                                                                           
> parameters, "httpHeaderFilterStrategy",
>                                                                           
> HttpHeaderFilterStrategy.class);
>         }
>        
>         if (httpHeaderFilterStrategy != null) {
>                       
> endpoint.setHeaderFilterStrategy(httpHeaderFilterStrategy);
>               } else {
>                       setEndpointHeaderFilterStrategy(endpoint);
>       }
>         
>       

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to