Class 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 a CustomHeaderFilter and require a specific custom header in a request to be set to a specific value.

    Properly configured managed clients have a CustomHeaderFilter instance configured to insert the required custom header with a proper value into the outgoing client requests.

    Author:
    Marek Potociar
    • Constructor Detail

      • PublicResource

        public PublicResource()
    • Method Detail

      • getTargetA

        @GET
        @Produces("text/plain")
        @Path("a")
        public String getTargetA()
      • getTargetB

        @GET
        @Produces("text/plain")
        @Path("b")
        public jakarta.ws.rs.core.Response getTargetB​(@Uri("internal/b") @ClientB
                                                      jakarta.ws.rs.client.WebTarget targetB)