1 package org.kuali.asr.handler;
2
3 import org.kuali.ole.ncip.bo.OLERenewItem;
4 import org.kuali.ole.ncip.converter.OLERenewItemConverter;
5
6
7
8
9 public class RenewItemResponseHandler extends ResponseHandler {
10
11 private OLERenewItemConverter oleRenewItemConverter;
12
13 @Override
14 public String marshalObjectToXml(Object object) {
15 String renewItemXml = getOleRenewItemConverter().generateRenewItemXml((OLERenewItem) object);
16 return renewItemXml;
17 }
18
19 @Override
20 public String marshalObjectToJson(Object object) {
21 return super.marshalObjectToJson(object);
22 }
23
24 private OLERenewItemConverter getOleRenewItemConverter() {
25 if (null == oleRenewItemConverter) {
26 oleRenewItemConverter = new OLERenewItemConverter();
27 }
28 return oleRenewItemConverter;
29 }
30 }