org.jasig.portlet.calendar.url
Class CalendarkeyUrlCreatorImpl

java.lang.Object
  extended by 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:

  1. baseUrl, retrieved from the CalendarConfiguration, in a property named "baseUrl"
  2. the current authenticated user's name (from PortletRequest.getRemoteUser() or HttpServletRequest.getRemoteUser())
  3. 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

Constructor Summary
CalendarkeyUrlCreatorImpl()
           
 
Method Summary
 String constructUrl(CalendarConfiguration calendarListing, org.joda.time.Interval interval, javax.portlet.PortletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarkeyUrlCreatorImpl

public CalendarkeyUrlCreatorImpl()
Method Detail

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.