Search in sources :

Example 1 with PhoneHomeResponse

use of com.blackducksoftware.integration.hub.service.model.PhoneHomeResponse in project hub-alert by blackducksoftware.

the class DailyItemReader method read.

@Override
public List<NotificationModel> read() throws Exception, UnexpectedInputException, ParseException, NonTransientResourceException {
    List<NotificationModel> notificationList;
    PhoneHomeResponse phoneHomeResponse = null;
    try {
        notificationList = super.read();
        phoneHomeResponse = phoneHome();
    } finally {
        if (phoneHomeResponse != null) {
            phoneHomeResponse.endPhoneHome();
        }
    }
    return notificationList;
}
Also used : PhoneHomeResponse(com.blackducksoftware.integration.hub.service.model.PhoneHomeResponse) NotificationModel(com.blackducksoftware.integration.hub.alert.hub.model.NotificationModel)

Aggregations

NotificationModel (com.blackducksoftware.integration.hub.alert.hub.model.NotificationModel)1 PhoneHomeResponse (com.blackducksoftware.integration.hub.service.model.PhoneHomeResponse)1