-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Davide Cerbo
committed
Nov 14, 2016
1 parent
31bc725
commit a966ad1
Showing
2 changed files
with
22 additions
and
3 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
19 changes: 19 additions & 0 deletions
19
nut-corelationid/src/main/java/com/nutcore/nut/correlationid/ClientProducer.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,19 @@ | ||
package com.nutcore.nut.correlationid; | ||
|
||
import javax.enterprise.inject.Produces; | ||
import javax.ws.rs.client.Client; | ||
import javax.ws.rs.client.ClientBuilder; | ||
|
||
/** | ||
* Created by davidecerbo on 14/11/2016. | ||
*/ | ||
public class ClientProducer | ||
{ | ||
@Produces | ||
public Client newClient() | ||
{ | ||
return ClientBuilder | ||
.newClient() | ||
.register(new CorrelationIdClientRequestFilter()); | ||
} | ||
} |