View Javadoc
1   package org.kuali.ole.ncip.service.impl;
2   
3   import org.kuali.asr.handler.RenewItemResponseHandler;
4   import org.kuali.ole.ncip.bo.OLERenewItemList;
5   
6   /**
7    * Created by pvsubrah on 7/2/15.
8    */
9   public class Sip2RenewItemService extends RenewItemsService {
10      @Override
11      public String prepareResponse(OLERenewItemList oleRenewItemList) {
12          switch (responseFormatType){
13              case("XML"):
14                  response =  ((RenewItemResponseHandler)getResponseHandler()).marshalObjectToSIP2Xml(oleRenewItemList);
15                  break;
16              case("JSON"):
17                  response = getResponseHandler().marshalObjectToJson(oleRenewItemList);
18                  break;
19          }
20  
21          return response;
22      }
23  }