org.glassfish.jersey.examples.managedclient
Class PublicResource

java.lang.Object
  extended by org.glassfish.jersey.examples.managedclient.PublicResource

@Path(value="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 (marek.potociar at oracle.com)

Constructor Summary
PublicResource()
           
 
Method Summary
 String getTargetA()
           
 Response getTargetB(WebTarget targetB)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicResource

public PublicResource()
Method Detail

getTargetA

@GET
@Produces(value="text/plain")
@Path(value="a")
public String getTargetA()

getTargetB

@GET
@Produces(value="text/plain")
@Path(value="b")
public Response getTargetB(@Uri(value="internal/b")@ClientB
                                                       WebTarget targetB)


Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.