Apache Camel is an open source Java framework. Questions involving one of its components - camel-http - may have this tag.
Questions tagged [camel-http]
68 questions
1
vote
1 answer
How to merge two xml tags into one xml using apache camel bindy
My problem is I have two different positions in my flat file with "|" seperated string. Position 2 and 3 refer to description. I want to generate xml with both descriptions appended to one description and return one DESC tag with both…

TechGeek
- 480
- 1
- 8
- 22
1
vote
0 answers
CamelHttp multipart/form-data upload. Changes between camel-http4 and camel-http-starter
I have a Spring Boot app that uses Camel to POST a multipart/form-data request to a REST endpoint. The request includes a text part and a file part. The code that builds the request is as follows:
@Override
public void process(Exchange exchange)…

Alberto Zigoni
- 11
- 2
1
vote
1 answer
Apache Camel: How to download multiple files from SFTP with Premove, Move and MoveFailed options?
I have two file names in following format:
Gontagrator_1.xml
Gontagrator_2.xml
As of now i am picking just Gontagrater_1.xml and rename it to processing and failed once done.
+ "&fileName=" + sftpFileName
+…

fatherazrael
- 5,511
- 16
- 71
- 155
1
vote
1 answer
Restlet error: 'Unable to run the following server-side task: sun.net.httpserver.ServerImpl$Exchange@56d26222'
I want to start my route by calling an URL. My start-route isn't ready yet, but works perfectly fine. My problem is, that i get an error message when i am using the rest-route, which calls the start-route.
public class MyRoute extends RouteBuilder…

Dennis Wiesemann
- 11
- 1
1
vote
0 answers
Apache Camel Reactive REST content type
I using camel reactive streams and I would like to add content type APPLICATION_JSON_UTF8_VALUE for the response. I tried to add it in map function. Here is my code.
@Autowired
private CamelReactiveStreamsService camel;
…

Mateusz Sobczak
- 1,551
- 8
- 33
- 67
1
vote
0 answers
Apache Camel: Threads still running after Graceful shutdown
In our project we are have a camel (2.23.1) context and in certain situations we would like to terminate the context and all it routes immediately. For this we have the following code:
private void stopContextImmediately(CamelContext context) throws…

Storage
- 83
- 1
- 9
1
vote
1 answer
camel proxy configuration camel-https4
We have to connect out java camel application with an external system over https. In the middle we have a proxy, but this proxy only accepts http connections.
I have configured http and https proxies in the camel context but it seems that this does…

user3756702
- 215
- 5
- 13
1
vote
1 answer
How to handle errors after sending request(camel-http)?
I want to handle errors depending on the http code response.
I would also like to know how to enable *throwExceptionOnFailure* on my route. For example, if the response code is 500x, send the message to the queue "redmine_errors"
UPDATE 4:
my…

D. Batmanov
- 39
- 1
- 8
1
vote
0 answers
Enable jetty request logging/stats in Apache karaf container
Can anyone please tell us how to enable jetty logging to analyze the requests & other details(stats[parallel request/no of requests]) in Apache KARAF container.
Jetty.xml

Shriram
- 4,343
- 8
- 37
- 64
1
vote
1 answer
Send data to an external resource: why content is null?
I have a simple Camel route. I want to extract a file from the queue and pass it by using POST request to an external resource. This route works and the request reaches an external resource:
import org.apache.camel.Exchange;
import…
user1134181
1
vote
3 answers
proper syntax using camel-http4 for an https call
I just can't get this HTTP4 working. I'm trying to do a POST request to a site that is https. however, nothing seems to work. can someone tell me what the right way is to perform a HTTPS POST with HTTP4 ? thank you so much, really struggling. just…

GLMills
- 558
- 1
- 12
- 37
1
vote
0 answers
Apache Camel's "httpClientConfigurer" is impacting all the URLs and not just the URL on which it is specified
I am using Apache Camel's producer-template to invoke a 3rd party HTTP URL. I am doing something like this:
producerTemplate.requestBodyAndHeaders("http://example.com?httpClientConfigurer=myCustomHttpClientConfigurer", "", requestHeaders,…

Batman
- 49
- 2
1
vote
0 answers
Apache CAMEL + HTTPS REST API (post)
Im a newbie to apache camle and
Lately Ive been trying to make a post request to a HTTPS Rest API.
I have gone through many posts and documentation but still I couldnt get a gist of this.
Please find my code…

java_4_life
- 51
- 6
1
vote
1 answer
Content-Type in GET method not getting populated
Setting Content-Type for GET method is not getting populated using Apache Camel-Http component.
exchange.getIn().setHeader(Exchange.CONTENT_TYPE, "application/json");
Whereas the same is working when using POST method.
Understood that there is no…

Samy
- 2,387
- 2
- 17
- 31
1
vote
1 answer
Apache Camel: How to dynamically set header value in HTTP URI?
I'm learning Camel and created a route as follows:
from("timer:stream?period={{inbound.timer.period}}")
...
.setHeader(Exchange.HTTP_URI, simple(outboundUri()))
...
.multicast()
.to(
"stream:header",
…

Abhijit Sarkar
- 21,927
- 20
- 110
- 219