Class PublicResource
- java.lang.Object
-
- org.glassfish.jersey.examples.managedclient.PublicResource
-
@Path("public") public class PublicResource extends Object
A resource that uses managed clients to retrieve values of internal resources 'A' and 'B', which are protected by aCustomHeaderFilterand require a specific custom header in a request to be set to a specific value.Properly configured managed clients have a
CustomHeaderFilterinstance configured to insert therequiredcustom header with a proper value into the outgoing client requests.- Author:
- Marek Potociar
-
-
Constructor Summary
Constructors Constructor Description PublicResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetTargetA()ResponsegetTargetB(WebTarget targetB)
-