@@ -27,29 +27,29 @@ public DefaultUcloudClient(UcloudConfig config) {
2727 @ Override
2828 public GetRegionResult getRegion () throws Exception {
2929 UcloudHttp http = new UcloudHttpImpl (GetRegionResult .class );
30- return (GetRegionResult ) http .doGet (new GetRegionParam (), config , null );
30+ return (GetRegionResult ) http .doPost (new GetRegionParam (), config , null );
3131 }
3232
3333 @ Override
3434 public void getRegion (UcloudHandler <GetRegionResult > handler , Boolean ... asyncFlag ) {
3535 UcloudHttp http = new UcloudHttpImpl (GetRegionResult .class );
3636 try {
37- http .doGet (new GetRegionParam (), config , handler , asyncFlag );
37+ http .doPost (new GetRegionParam (), config , handler , asyncFlag );
3838 } catch (Exception e ) {
3939 }
4040 }
4141
4242 @ Override
4343 public GetProjectListResult getProjectList () throws Exception {
4444 UcloudHttp http = new UcloudHttpImpl (GetProjectListResult .class );
45- return (GetProjectListResult ) http .doGet (new GetProjectListParam (), config , null );
45+ return (GetProjectListResult ) http .doPost (new GetProjectListParam (), config , null );
4646 }
4747
4848 @ Override
4949 public void getProjectList (UcloudHandler <GetProjectListResult > handler , Boolean ... asyncFlag ) {
5050 UcloudHttp http = new UcloudHttpImpl (GetProjectListResult .class );
5151 try {
52- http .doGet (new GetProjectListParam (), config , handler , asyncFlag );
52+ http .doPost (new GetProjectListParam (), config , handler , asyncFlag );
5353 } catch (Exception e ) {
5454 }
5555 }
@@ -58,15 +58,15 @@ public void getProjectList(UcloudHandler<GetProjectListResult> handler, Boolean.
5858 public BaseResponseResult doAction (BaseRequestParam param ,
5959 Class <? extends BaseResponseResult > clazz ) throws Exception {
6060 UcloudHttp http = new UcloudHttpImpl (clazz );
61- return (BaseResponseResult ) http .doGet (param , config , null );
61+ return (BaseResponseResult ) http .doPost (param , config , null );
6262 }
6363
6464 @ Override
6565 public void doAction (BaseRequestParam param , Class <? extends BaseResponseResult > clazz ,
6666 UcloudHandler <? extends BaseResponseResult > handler , Boolean ... asyncFlag ) {
6767 UcloudHttp http = new UcloudHttpImpl (clazz );
6868 try {
69- http .doGet (param , config , handler , asyncFlag );
69+ http .doPost (param , config , handler , asyncFlag );
7070 } catch (Exception e ) {
7171 }
7272 }
0 commit comments