[
https://issues.apache.org/jira/browse/CAMEL-5575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Amit Patel updated CAMEL-5575:
------------------------------
Description:
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);
}
was:
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
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);
}
> 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
> Priority: Critical
> Fix For: 2.10.1
>
> 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