Fix code gen to getTransport() not getOutputTransport()

Reviewed By: wayne


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664995 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/generate/t_java_generator.cc b/compiler/cpp/src/generate/t_java_generator.cc
index e3a3166..8894c99 100644
--- a/compiler/cpp/src/generate/t_java_generator.cc
+++ b/compiler/cpp/src/generate/t_java_generator.cc
@@ -808,7 +808,7 @@
     f_service_ <<
       indent() << "args.write(oprot_);" << endl <<
       indent() << "oprot_.writeMessageEnd();" << endl <<
-      indent() << "oprot_.getOutputTransport().flush();" << endl;
+      indent() << "oprot_.getTransport().flush();" << endl;
 
     scope_down(f_service_);
     f_service_ << endl;
@@ -1100,7 +1100,7 @@
     indent() << "oprot.writeMessageBegin(new TMessage(\"" << tfunction->get_name() << "\", TMessageType.REPLY, seqid));" << endl <<
     indent() << "result.write(oprot);" << endl <<
     indent() << "oprot.writeMessageEnd();" << endl <<
-    indent() << "oprot.getOutputTransport().flush();" << endl;
+    indent() << "oprot.getTransport().flush();" << endl;
 
   // Close function
   scope_down(f_service_);
diff --git a/compiler/cpp/src/generate/t_php_generator.cc b/compiler/cpp/src/generate/t_php_generator.cc
index 7ebf747..cee4065 100644
--- a/compiler/cpp/src/generate/t_php_generator.cc
+++ b/compiler/cpp/src/generate/t_php_generator.cc
@@ -758,7 +758,7 @@
     f_service_ <<
       indent() << "$output->writeMessageBegin('" << tfunction->get_name() << "', TMessageType::REPLY, $seqid);" << endl <<
       indent() << "$result->write($output);" << endl <<
-      indent() << "$output->getOutputTransport()->flush();" << endl;
+      indent() << "$output->getTransport()->flush();" << endl;
   }
 
   // Close function
@@ -1013,7 +1013,7 @@
         f_service_ <<
           indent() << "$args->write($this->output_);" << endl <<
           indent() << "$this->output_->writeMessageEnd();" << endl <<
-          indent() << "$this->output_->getOutputTransport()->flush();" << endl;
+          indent() << "$this->output_->getTransport()->flush();" << endl;
       }   
       
     scope_down(f_service_);
diff --git a/compiler/cpp/src/generate/t_py_generator.cc b/compiler/cpp/src/generate/t_py_generator.cc
index 5190de3..04a67c9 100644
--- a/compiler/cpp/src/generate/t_py_generator.cc
+++ b/compiler/cpp/src/generate/t_py_generator.cc
@@ -642,7 +642,7 @@
       f_service_ <<
         indent() << "args.write(self._oprot)" << endl <<
         indent() << "self._oprot.writeMessageEnd()" << endl <<
-        indent() << "self._oprot.otrans.flush()" << endl;  
+        indent() << "self._oprot.trans.flush()" << endl;  
 
     indent_down();
 
@@ -1005,7 +1005,7 @@
     indent() << "oprot.writeMessageBegin(\"" << tfunction->get_name() << "\", TMessageType.REPLY, seqid)" << endl <<
     indent() << "result.write(oprot)" << endl <<
     indent() << "oprot.writeMessageEnd()" << endl <<
-    indent() << "oprot.otrans.flush()" << endl;
+    indent() << "oprot.trans.flush()" << endl;
 
   // Close function
   indent_down();