org.jasig.portlet.courses.dao.xml
Class HttpClientCoursesDaoImpl

java.lang.Object
  extended by org.jasig.portlet.courses.dao.xml.HttpClientCoursesDaoImpl
All Implemented Interfaces:
ICoursesDao

public class HttpClientCoursesDaoImpl
extends Object
implements ICoursesDao

HttpClientCoursesDaoImpl retrieves courses from a Basic Authentication protected XML feed.

Version:
$Revision$
Author:
Jen Bourey, jennifer.bourey@gmail.com

Constructor Summary
HttpClientCoursesDaoImpl()
           
 
Method Summary
 CoursesByTerm getCoursesByTerm(javax.portlet.PortletRequest request, String termCode)
          Get courses for a term for the current user
protected  org.springframework.http.HttpEntity<?> getRequestEntity(javax.portlet.PortletRequest request)
          Get a request entity prepared for basic authentication.
 TermList getTermList(javax.portlet.PortletRequest request)
          Get a term list for the current user
protected  TermsAndCourses getTermsAndCourses(javax.portlet.PortletRequest request)
          Get terms and courses for the current user
 void setPasswordKey(String passwordKey)
           
 void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
           
 void setUrlFormat(String urlFormat)
           
 void setUsernameKey(String usernameKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientCoursesDaoImpl

public HttpClientCoursesDaoImpl()
Method Detail

setUrlFormat

public void setUrlFormat(String urlFormat)

setUsernameKey

public void setUsernameKey(String usernameKey)

setPasswordKey

public void setPasswordKey(String passwordKey)

setRestTemplate

@Autowired(required=true)
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)

getTermList

public TermList getTermList(javax.portlet.PortletRequest request)
Description copied from interface: ICoursesDao
Get a term list for the current user

Specified by:
getTermList in interface ICoursesDao
Returns:

getCoursesByTerm

public CoursesByTerm getCoursesByTerm(javax.portlet.PortletRequest request,
                                      String termCode)
Description copied from interface: ICoursesDao
Get courses for a term for the current user

Specified by:
getCoursesByTerm in interface ICoursesDao
Returns:

getTermsAndCourses

protected TermsAndCourses getTermsAndCourses(javax.portlet.PortletRequest request)
Get terms and courses for the current user


getRequestEntity

protected org.springframework.http.HttpEntity<?> getRequestEntity(javax.portlet.PortletRequest request)
Get a request entity prepared for basic authentication.



Copyright © 2012 Jasig. All Rights Reserved.