Package org.ical4j.integration.mail
Class CalendarMailTransport
- java.lang.Object
-
- org.ical4j.integration.mail.CalendarMailTransport
-
- All Implemented Interfaces:
org.ical4j.integration.CalendarConsumer
,org.ical4j.integration.CalendarProducer
public class CalendarMailTransport extends Object implements org.ical4j.integration.CalendarProducer, org.ical4j.integration.CalendarConsumer
-
-
Constructor Summary
Constructors Constructor Description CalendarMailTransport(javax.mail.Session session, MessageParser<net.fortuna.ical4j.model.Calendar> messageParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<net.fortuna.ical4j.model.Calendar>
poll(long timeout)
void
send(net.fortuna.ical4j.model.Calendar calendar)
CalendarMailTransport
withMessageTemplate(MessageTemplate messageTemplate)
-
-
-
Constructor Detail
-
CalendarMailTransport
public CalendarMailTransport(javax.mail.Session session, MessageParser<net.fortuna.ical4j.model.Calendar> messageParser)
-
-
Method Detail
-
withMessageTemplate
public CalendarMailTransport withMessageTemplate(MessageTemplate messageTemplate)
-
send
public void send(net.fortuna.ical4j.model.Calendar calendar) throws org.ical4j.integration.FailedDeliveryException
- Specified by:
send
in interfaceorg.ical4j.integration.CalendarProducer
- Throws:
org.ical4j.integration.FailedDeliveryException
-
poll
public Optional<net.fortuna.ical4j.model.Calendar> poll(long timeout)
- Specified by:
poll
in interfaceorg.ical4j.integration.CalendarConsumer
-
-