|
Restlet Framework 2.2.3 OSGi Environments |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.Resource
org.restlet.resource.ClientResource
org.restlet.ext.jaxrs.JaxRsClientResource
public class JaxRsClientResource
The JAX-RS implementation of the ClientResource
class.
ClientResource
Constructor Summary | |
---|---|
JaxRsClientResource(Context context,
Reference reference)
|
Method Summary | ||
---|---|---|
static
|
createJaxRsClient(Context context,
Reference reference,
Class<? extends T> resourceInterface)
Creates a client resource that proxy calls to the given Java interface into Restlet method calls. |
|
static
|
createJaxRsClient(String baseUri,
Class<? extends T> resourceInterface)
Creates a client resource that proxy calls to the given Java interface into Restlet method calls. |
|
|
wrap(Class<? extends T> resourceInterface)
Wraps the client resource to proxy calls to the given Java interface into Restlet method calls. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JaxRsClientResource(Context context, Reference reference)
Method Detail |
---|
public static <T> T createJaxRsClient(Context context, Reference reference, Class<? extends T> resourceInterface)
T
- context
- The context.reference
- The target reference.resourceInterface
- The annotated resource interface class to proxy.
public static <T> T createJaxRsClient(String baseUri, Class<? extends T> resourceInterface) throws org.restlet.ext.jaxrs.internal.exceptions.JaxRsException
T
- baseUri
- The target URI.resourceInterface
- The annotated resource interface class to proxy.
org.restlet.ext.jaxrs.internal.exceptions.JaxRsException
public <T> T wrap(Class<? extends T> resourceInterface)
wrap
in class ClientResource
T
- resourceInterface
- The annotated resource interface class to proxy.
|
Restlet Framework 2.2.3 OSGi Environments |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |