org.jasig.portlet.calendar.url
Class CalendarkeyUrlCreatorImpl
java.lang.Object
org.jasig.portlet.calendar.url.CalendarkeyUrlCreatorImpl
- All Implemented Interfaces:
- IUrlCreator
public class CalendarkeyUrlCreatorImpl
- extends Object
- implements IUrlCreator
IUrlCreator implementation specific for integrating
with CalendarKey (http://mywebspace.wisc.edu/npblair/calendarkey).
CalendarKey instances can expose a REST style web service for retrieving
individual user calendars.
These REST urls are built in the following way:
- baseUrl, retrieved from the
CalendarConfiguration, in a property named "baseUrl"
- the current authenticated user's name (from PortletRequest.getRemoteUser() or HttpServletRequest.getRemoteUser())
- The startDate and endDate, retrieved from the period
The following example url retrieves the calendar for user "netid" between Oct 9 2008 and Oct 10 2008:
http://localhost:8080/calendarkey/ws/netid/20081009/20081010
- Version:
- $Header: CalendarkeyUrlCreatorImpl.java Exp $
- Author:
- Nicholas Blair, nblair@doit.wisc.edu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalendarkeyUrlCreatorImpl
public CalendarkeyUrlCreatorImpl()
constructUrl
public String constructUrl(CalendarConfiguration calendarListing,
org.joda.time.Interval interval,
javax.portlet.PortletRequest request)
- Specified by:
constructUrl in interface IUrlCreator
- Returns:
Copyright © 2012 Jasig. All Rights Reserved.