Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 153. iCal DataFormat
Available as of Camel version 2.12
The ICal dataformat is used for working with iCalendar messages.
A typical iCalendar message looks like:
153.1. Options Link kopierenLink in die Zwischenablage kopiert!
The iCal dataformat supports 2 options, which are listed below.
Name | Default | Java Type | Description |
---|---|---|---|
validating |
|
| Whether to validate. |
contentTypeHeader |
|
| Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSon etc. |
153.2. Spring Boot Auto-Configuration Link kopierenLink in die Zwischenablage kopiert!
The component supports 3 options, which are listed below.
Name | Description | Default | Type |
---|---|---|---|
camel.dataformat.ical.content-type-header | Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSon etc. | false | Boolean |
camel.dataformat.ical.enabled | Enable ical dataformat | true | Boolean |
camel.dataformat.ical.validating | Whether to validate. | false | Boolean |
ND
153.3. Basic Usage Link kopierenLink in die Zwischenablage kopiert!
To unmarshal and marshal the message shown above, your route will look like the following:
from("direct:ical-unmarshal") .unmarshal("ical") .to("mock:unmarshaled") .marshal("ical") .to("mock:marshaled");
from("direct:ical-unmarshal")
.unmarshal("ical")
.to("mock:unmarshaled")
.marshal("ical")
.to("mock:marshaled");
Maven users will need to add the following dependency to their pom.xml
for this component:
153.4. See Also Link kopierenLink in die Zwischenablage kopiert!
- Configuring Camel
- Component
- Endpoint
- Getting Started