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