-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41804 from geoand/rest-client-proxy
Introduce the ability to automatically standup an HTTP proxy for the REST Client
- Loading branch information
Showing
14 changed files
with
1,263 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...c/main/java/io/quarkus/rest/client/reactive/deployment/RegisteredRestClientBuildItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package io.quarkus.rest.client.reactive.deployment; | ||
|
||
import java.util.Objects; | ||
import java.util.Optional; | ||
|
||
import org.jboss.jandex.ClassInfo; | ||
|
||
import io.quarkus.builder.item.MultiBuildItem; | ||
|
||
/** | ||
* Contains information about the REST Clients that have been discovered via | ||
* {@link org.eclipse.microprofile.rest.client.inject.RegisterRestClient} | ||
*/ | ||
public final class RegisteredRestClientBuildItem extends MultiBuildItem { | ||
|
||
private final ClassInfo classInfo; | ||
private final Optional<String> configKey; | ||
private final Optional<String> defaultBaseUri; | ||
|
||
public RegisteredRestClientBuildItem(ClassInfo classInfo, Optional<String> configKey, Optional<String> defaultBaseUri) { | ||
this.classInfo = Objects.requireNonNull(classInfo); | ||
this.configKey = Objects.requireNonNull(configKey); | ||
this.defaultBaseUri = Objects.requireNonNull(defaultBaseUri); | ||
} | ||
|
||
public ClassInfo getClassInfo() { | ||
return classInfo; | ||
} | ||
|
||
public Optional<String> getConfigKey() { | ||
return configKey; | ||
} | ||
|
||
public Optional<String> getDefaultBaseUri() { | ||
return defaultBaseUri; | ||
} | ||
} |
Oops, something went wrong.