notification-portlet-webapp/src/main/java/org/jasig/portlet/notice/controller/rest/JPANotificationRESTController.java
@RequestMapping(value = "/{notificationId}/addressees/{addresseeId}", method = RequestMethod.GET)
    @ResponseBody
    public AddresseeDTO getAddressee(HttpServletResponse resp,
            @PathVariable("notificationId") long notificationId,
            @PathVariable("addresseeId") long addresseeId) {
        AddresseeDTO dto = restService.getAddressee(addresseeId);
        if (dto == null) {
            resp.setStatus(HttpStatus.NOT_FOUND.value());
            return null;
        }

        return dto;
    }
@RequestMapping(value = "/{notificationId}/addressees/{addresseeId}", method = RequestMethod.GET)
    @ResponseBody
    public AddresseeDTO getAddressee(HttpServletResponse resp,
            @PathVariable("notificationId") long notificationId,
            @PathVariable("addresseeId") long addresseeId) {
        AddresseeDTO dto = restService.getAddressee(addresseeId);
        if (dto == null) {
            resp.setStatus(HttpStatus.NOT_FOUND.value());
            return null;
        }

        return dto;
    }
@ RequestMapping ( value = "/{notificationId}/addressees/{addresseeId}" , method = RequestMethod . GET ) @ ResponseBody public AddresseeDTO getAddressee ( HttpServletResponse resp , @ PathVariable ( "notificationId" ) long notificationId , @ PathVariable ( "addresseeId" ) long addresseeId ) { AddresseeDTO dto = restService . getAddressee ( addresseeId ) ; if ( dto == null ) { resp . setStatus ( HttpStatus . NOT_FOUND . value ( ) ) ; return null ; } return dto ; }
Get a specific addressee

@param resp the Http Response
@param notificationId the notification id
@param addresseeId the addressee id
@return the matching addressee if available
Get a specific addressee