public Task(TransactionContext context) { this.startTime = System.currentTimeMillis(); this.seqid = context.getSeqid(); SoaHeader soaHeader = context.getHeader(); this.serviceName = soaHeader.getServiceName(); this.versionName = soaHeader.getVersionName(); this.methodName = soaHeader.getMethodName(); this.callerFrom = soaHeader.getCallerFrom().isPresent() ? soaHeader.getCallerFrom().get() : null; this.callerIp = soaHeader.getCallerIp().isPresent() ? soaHeader.getCallerIp().get() : null; this.operatorId = soaHeader.getOperatorId().isPresent() ? soaHeader.getOperatorId().get() : null; this.operatorName = soaHeader.getOperatorName().isPresent() ? soaHeader.getOperatorName().get() : null; this.customerId = soaHeader.getCustomerId().isPresent() ? soaHeader.getCustomerId().get() : null; this.customerName = soaHeader.getCustomerName().isPresent() ? soaHeader.getCustomerName().get() : null; this.currentThread = Thread.currentThread(); }
soaHeader.setCustomerName(oriHeader.getCustomerName()); soaHeader.setOperatorId(oriHeader.getOperatorId()); soaHeader.setOperatorName(oriHeader.getOperatorName());
soaHeader.setCustomerName(oriHeader.getCustomerName()); soaHeader.setOperatorId(oriHeader.getOperatorId()); soaHeader.setOperatorName(oriHeader.getOperatorName());
oprot.writeFieldEnd(); if (bean.getCustomerName().isPresent()) { oprot.writeFieldBegin(new TField("customerName", TType.STRING, (short) 18)); oprot.writeString(bean.getCustomerName().get()); oprot.writeFieldEnd();
oprot.writeFieldEnd(); if (bean.getCustomerName().isPresent()) { oprot.writeFieldBegin(new TField("customerName", TType.STRING, (short) 18)); oprot.writeString(bean.getCustomerName().get()); oprot.writeFieldEnd();