org.surfnet.oaaas.example.api.resource
Class UniversityResource

java.lang.Object
  extended by org.surfnet.oaaas.example.api.resource.UniversityResource

public class UniversityResource
extends Object

Main resource


Constructor Summary
UniversityResource()
           
 
Method Summary
 javax.ws.rs.core.Response getAllCourses(Principal principal)
           
 javax.ws.rs.core.Response getAllStudents(Principal principal)
           
 javax.ws.rs.core.Response getCourseById(Principal principal, String id)
           
protected  org.codehaus.jackson.map.ObjectMapper getObjectMapper()
           
 javax.ws.rs.core.Response getStudentById(Principal principal, String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniversityResource

public UniversityResource()
Method Detail

getObjectMapper

protected org.codehaus.jackson.map.ObjectMapper getObjectMapper()

getAllStudents

public javax.ws.rs.core.Response getAllStudents(@Auth
                                                Principal principal)

getStudentById

public javax.ws.rs.core.Response getStudentById(@Auth
                                                Principal principal,
                                                String id)

getAllCourses

public javax.ws.rs.core.Response getAllCourses(@Auth
                                               Principal principal)

getCourseById

public javax.ws.rs.core.Response getCourseById(@Auth
                                               Principal principal,
                                               String id)


Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.