org.glassfish.jersey.examples.managedclient
Class PublicResource
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PublicResource
public PublicResource()
getTargetA
@GET
@Produces(value="text/plain")
@Path(value="a")
public String getTargetA()
getTargetB
@GET
@Produces(value="text/plain")
@Path(value="b")
public javax.ws.rs.core.Response getTargetB(@Uri(value="internal/b")@ClientB
javax.ws.rs.client.WebTarget targetB)
Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.