Code Monkey home page Code Monkey logo

ical4j-integration's Introduction

iCal4j Integration

A Java API for iCalendar transport protocol integrations.

Overview

Where the main iCal4j library provides support for data interoperability via the iCalendar specification, this library focuses on transport protocols and patterns to exchange data between applications. There are many proven Enterprise Integration Patterns in use today, and this project provides support for some of these common integration approaches.

Message Producer

A common use case for iCal4j is to send calendar invites via email to attendees. The ChannelAdapter interface defines a common contract for sending data via email, or other implementations of underlying transport protocols.

Message Polling

The most common method of exchanging iCalendar data is email, which is a kind of asynchronous message queue. Messages are retrieved via polling the "queue" (i.e. Inbox) and iCalendar data is extracted from attachments.

Implementations of the ChannelConsumer interface provide support for message polling, whilst abstracting the complexities of the underlying transports.

Reactive Streams

Java Reactive Streams provides support for the Publisher/Subscriber pattern, which is another asynchronous messaging pattern for sharing data with multiple consumers.

Implementors of the ChannelPublisher interface provide support for subscribing multiple consumers to a data stream.

Examples

Webhooks

Publish calendar object to webhook target:

Calendar calendar = ...
ChannelAdapter<Calendar> producer = new ApacheHttpClientAdapter(null, "POST", "http://ical.example.com");
producer.publish(() -> calendar);

Consume calendar object from HTTP endpoint:

Calendar calendar = null;
ChannelConsumer<Calendar> consumer = new ApacheHttpClientAdapter("http://tzurl.org/zoneinfo/Australia/Melbourne");
Calendar calendar = consumer.accept(c -> calendar = c, 30);

Email

Publish calendar object via email:

Calendar calendar = ...
Session session = ...
ChannelAdapter<Calendar> producer = new JakartaMailAdapter(session);
producer.send(calendar);

Consume calendar object delivered to an email address:

Calendar calendar = null;
Session session = ...
ChannelConsumer<Calendar> consumer = new JakartaMailAdapter(session);
Calendar calendar = consumer.consume(c -> calendar = c, 30);

Subscribe to calendar objects delivered to an email address:

TBD.

Apache Camel

Added the ical4j-integration dependency to your project and configure your routes:

from('ical:http://tzurl.org/zoneinfo/Australia/Melbourne').to("mock:result")

ical4j-integration's People

Contributors

benfortuna avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ical4j-integration's Issues

AWS Lambda integrations

Implement lambda functions to provide icalendar-related processing capabilities.

e.g.

  • processing of icalendar requests (e.g. auto-delegation)
  • publishing icalendar methods (e.g. publish updates)

Mail2event

Create a vevent from email content to support services that manage calendars with email endpoints.

  • Subject -> summary
  • Body -> description
  • Parse description for date
  • Attachments

Add DynamoDB support

Provide binding operations for persistence (should it be a separate project?)

Support for Slack

Adding ability to send/receive iCalendar with Slack channels enables practices such as CHatOps and more focused pubsub channels

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.