//fields of interest : expire_time
List<OSRFObject> listHoldsAhr = null;
- listHoldsAhr = (List<OSRFObject>) Utils.doRequest(conn, SERVICE_CIRC, METHOD_FETCH_HOLDS, authToken, cm, new Object[]{authToken,userID});
+ Object resp = Utils.doRequest(conn, SERVICE_CIRC, METHOD_FETCH_HOLDS, authToken, cm, new Object[]{authToken,userID});
+
+ listHoldsAhr = (List<OSRFObject>) resp;
for(int i=0;i<listHoldsAhr.size();i++){
//create hold item
}
return holds;
}
-
/* hold target type :
* M - metarecord
* T - record
System.out.println("Sync Response: " + resp);
Object response = (Object) resp;
- try{
- String textcode = ((Map<String,String>)response).get("textcode");
- if(textcode != null){
- if(textcode.equals("NO_SESSION")){
- System.out.println("REQUIRE NEW SESSION");
- throw new SessionNotFoundException();
- }
-
- }
- }catch(Exception e){
- System.err.println("Exception in retreive" + e.getMessage());
+ String textcode = null;
+ try{
+ textcode = ((Map<String,String>)response).get("textcode");
+ }catch(Exception e){
+ System.err.println("Exception in retreive" + e.getMessage());
+ }
+
+ if(textcode != null){
+ if(textcode.equals("NO_SESSION")){
+ //System.out.println("REQUIRE NEW SESSION");
+ throw new SessionNotFoundException();
+ }
+
}
+
return response;
}