ghttp
Component
Available as of Camel 2.1
The ghttp
component contributes to the Camel Components for Google App Engine (GAE). It provides connectivity to the GAE URL fetch service but can also be used to receive messages from servlets (the only way to receive HTTP requests on GAE). This is achieved by extending the Servlet component
. As a consequence, ghttp
URI formats and options sets differ on the consumer-side (from
) and producer-side (to
).
...
Name | Default Value | Context | Description | ||||
---|---|---|---|---|---|---|---|
| | Producer | If set to | ||||
| | Producer | Throw a | ||||
| reference to | Consumer | Reference to an | ||||
| reference to | Producer | Reference to an | | reference to | Producer | Reference to an |
On the consumer-side, all options of the Servlet component are supported.
...
For receiving messages via the ghttp
component, a CamelHttpTransportServlet
must be configured and mapped in the application's web.xml
. For example, to handle requests targeted at http://<appname>.appspot.com/camel/*
or http://localhost/camel/*
(when using a local development server) the following servlet mapping must be defined:
...
Code Block | ||||
---|---|---|---|---|
| ||||
from(...) ... .to("ghttps://svn.apache.org/repos/asf/camel/trunk/") ... |
Advanced usage
...
Dependencies
Maven users will need to add the following dependency to their pom.xml
.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-gae</artifactId> <version>${camel-version}<<version>x.x.x</version> </dependency> |
...
Include Page | ||||
---|---|---|---|---|
|