Skip to content

Commit 658553b

Browse files
http-client-java, fix bug on service version in client constructor (#5616)
code change 039787f later it is unified with branded DPG logic fc5eb95
1 parent 1381733 commit 658553b

File tree

47 files changed

+90
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+90
-101
lines changed

packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/authentication/apikey/implementation/ApiKeyClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public HttpPipeline getHttpPipeline() {
5959
* @param endpoint Service host.
6060
*/
6161
public ApiKeyClientImpl(HttpPipeline httpPipeline, String endpoint) {
62-
this.endpoint = "http://localhost:3000";
6362
this.httpPipeline = httpPipeline;
63+
this.endpoint = endpoint;
6464
this.service = RestProxy.create(ApiKeyClientService.class, this.httpPipeline);
6565
}
6666

packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/authentication/http/custom/implementation/CustomClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public HttpPipeline getHttpPipeline() {
5959
* @param endpoint Service host.
6060
*/
6161
public CustomClientImpl(HttpPipeline httpPipeline, String endpoint) {
62-
this.endpoint = "http://localhost:3000";
6362
this.httpPipeline = httpPipeline;
63+
this.endpoint = endpoint;
6464
this.service = RestProxy.create(CustomClientService.class, this.httpPipeline);
6565
}
6666

packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/numeric/implementation/NumericClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public PropertiesImpl getProperties() {
5757
* @param endpoint Service host.
5858
*/
5959
public NumericClientImpl(HttpPipeline httpPipeline, String endpoint) {
60-
this.endpoint = "http://localhost:3000";
6160
this.httpPipeline = httpPipeline;
61+
this.endpoint = endpoint;
6262
this.properties = new PropertiesImpl(this);
6363
}
6464
}

packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/parameters/basic/implementation/BasicClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public ImplicitBodiesImpl getImplicitBodies() {
7171
* @param endpoint Service host.
7272
*/
7373
public BasicClientImpl(HttpPipeline httpPipeline, String endpoint) {
74-
this.endpoint = "http://localhost:3000";
7574
this.httpPipeline = httpPipeline;
75+
this.endpoint = endpoint;
7676
this.explicitBodies = new ExplicitBodiesImpl(this);
7777
this.implicitBodies = new ImplicitBodiesImpl(this);
7878
}

packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/parameters/bodyoptionality/implementation/BodyOptionalityClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public OptionalExplicitsImpl getOptionalExplicits() {
7474
* @param endpoint Service host.
7575
*/
7676
public BodyOptionalityClientImpl(HttpPipeline httpPipeline, String endpoint) {
77-
this.endpoint = "http://localhost:3000";
7877
this.httpPipeline = httpPipeline;
78+
this.endpoint = endpoint;
7979
this.optionalExplicits = new OptionalExplicitsImpl(this);
8080
this.service = RestProxy.create(BodyOptionalityClientService.class, this.httpPipeline);
8181
}

packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/parameters/collectionformat/implementation/CollectionFormatClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public HeadersImpl getHeaders() {
7171
* @param endpoint Service host.
7272
*/
7373
public CollectionFormatClientImpl(HttpPipeline httpPipeline, String endpoint) {
74-
this.endpoint = "http://localhost:3000";
7574
this.httpPipeline = httpPipeline;
75+
this.endpoint = endpoint;
7676
this.queries = new QueriesImpl(this);
7777
this.headers = new HeadersImpl(this);
7878
}

packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/parameters/spread/implementation/SpreadClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public AliasImpl getAlias() {
7171
* @param endpoint Service host.
7272
*/
7373
public SpreadClientImpl(HttpPipeline httpPipeline, String endpoint) {
74-
this.endpoint = "http://localhost:3000";
7574
this.httpPipeline = httpPipeline;
75+
this.endpoint = endpoint;
7676
this.models = new ModelsImpl(this);
7777
this.alias = new AliasImpl(this);
7878
}

packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/payload/contentnegotiation/implementation/ContentNegotiationClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public DifferentBodiesImpl getDifferentBodies() {
7171
* @param endpoint Service host.
7272
*/
7373
public ContentNegotiationClientImpl(HttpPipeline httpPipeline, String endpoint) {
74-
this.endpoint = "http://localhost:3000";
7574
this.httpPipeline = httpPipeline;
75+
this.endpoint = endpoint;
7676
this.sameBodies = new SameBodiesImpl(this);
7777
this.differentBodies = new DifferentBodiesImpl(this);
7878
}

packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/payload/jsonmergepatch/implementation/JsonMergePatchClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public HttpPipeline getHttpPipeline() {
6262
* @param endpoint Service host.
6363
*/
6464
public JsonMergePatchClientImpl(HttpPipeline httpPipeline, String endpoint) {
65-
this.endpoint = "http://localhost:3000";
6665
this.httpPipeline = httpPipeline;
66+
this.endpoint = endpoint;
6767
this.service = RestProxy.create(JsonMergePatchClientService.class, this.httpPipeline);
6868
}
6969

packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/payload/mediatype/implementation/MediaTypeClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public StringBodiesImpl getStringBodies() {
5757
* @param endpoint Service host.
5858
*/
5959
public MediaTypeClientImpl(HttpPipeline httpPipeline, String endpoint) {
60-
this.endpoint = "http://localhost:3000";
6160
this.httpPipeline = httpPipeline;
61+
this.endpoint = endpoint;
6262
this.stringBodies = new StringBodiesImpl(this);
6363
}
6464
}

0 commit comments

Comments
 (0)