Class OAuthCalendarSource
java.lang.Object
com.codename1.calendar.CalendarSource
com.codename1.calendar.OAuthCalendarSource
- Direct Known Subclasses:
GoogleCalendarSource, MicrosoftCalendarSource
Shared authenticated HTTP behavior for online calendar sources. Tokens and
credentials remain app-owned; the source only asks for a token when needed.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOAuthCalendarSource(String id, String displayName, CalendarTokenProvider tokenProvider, CalendarHttpTransport transport, String[] scopes) -
Method Summary
Modifier and TypeMethodDescriptiongetAuthorizationStatus(CalendarAccess access) protected final AsyncResource<Map<String, Object>> protected final AsyncResource<CalendarHttpResponse> requestAuthorization(CalendarAccess access) Methods inherited from class CalendarSource
addChangeListener, completed, deleteCalendar, deleteEvent, deleteTask, fireChange, getCapabilities, getDisplayName, getEvent, getId, getTask, isAvailable, listCalendars, queryEvents, queryFreeBusy, queryTasks, removeChangeListener, respondToEvent, saveCalendar, saveEvent, saveTask, unavailable, unsupported
-
Constructor Details
-
OAuthCalendarSource
protected OAuthCalendarSource(String id, String displayName, CalendarTokenProvider tokenProvider, CalendarHttpTransport transport, String[] scopes)
-
-
Method Details
-
getAuthorizationStatus
- Overrides:
getAuthorizationStatusin classCalendarSource
-
requestAuthorization
- Overrides:
requestAuthorizationin classCalendarSource
-
json
-
raw
protected final AsyncResource<CalendarHttpResponse> raw(String method, String url, String body, String contentType, Map<String, String> headers)
-