-
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.
Add UrlTemplatePath handling for Reactive REST Client
- Loading branch information
Showing
5 changed files
with
79 additions
and
6 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
22 changes: 22 additions & 0 deletions
22
...src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientObservabilityHandler.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,22 @@ | ||
package org.jboss.resteasy.reactive.client.handlers; | ||
|
||
import org.jboss.resteasy.reactive.client.impl.RestClientRequestContext; | ||
import org.jboss.resteasy.reactive.client.spi.ClientRestHandler; | ||
|
||
/** | ||
* This is added by the Reactive Rest Client if observability features are enabled | ||
*/ | ||
@SuppressWarnings("unused") | ||
public class ClientObservabilityHandler implements ClientRestHandler { | ||
|
||
private final String templatePath; | ||
|
||
public ClientObservabilityHandler(String templatePath) { | ||
this.templatePath = templatePath; | ||
} | ||
|
||
@Override | ||
public void handle(RestClientRequestContext requestContext) throws Exception { | ||
requestContext.getClientFilterProperties().put("UrlPathTemplate", templatePath); | ||
} | ||
} |
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