public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getBaggageRestrictions_result result = new getBaggageRestrictions_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } };
public void onComplete(List<BaggageRestriction> o) { getBaggageRestrictions_result result = new getBaggageRestrictions_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) {
public getBaggageRestrictions_result deepCopy() { return new getBaggageRestrictions_result(this); }
public List<BaggageRestriction> recv_getBaggageRestrictions() throws org.apache.thrift.TException { getBaggageRestrictions_result result = new getBaggageRestrictions_result(); receiveBase(result, "getBaggageRestrictions"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBaggageRestrictions failed: unknown result"); }
public getBaggageRestrictions_result getResult(I iface, getBaggageRestrictions_args args) throws org.apache.thrift.TException { getBaggageRestrictions_result result = new getBaggageRestrictions_result(); result.success = iface.getBaggageRestrictions(args.serviceName); return result; } }