public final class WebResourceFactory extends Object implements InvocationHandler
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
static <C> C |
newResource(Class<C> resourceInterface,
com.sun.jersey.api.client.WebResource target,
boolean ignoreResourcePath,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
List<javax.ws.rs.core.Cookie> cookies,
com.sun.jersey.api.representation.Form form)
Creates a new client-side representation of a resource described by
the interface passed in the first argument.
|
static <T> T |
newResource(Class<T> resourceInterface,
com.sun.jersey.api.client.WebResource target)
Creates a new client-side representation of a resource described by
the interface passed in the first argument.
|
public static <T> T newResource(Class<T> resourceInterface, com.sun.jersey.api.client.WebResource target)
WebResourceFactory.newResource(resourceInterface, rootTarget, false).C - Type of the resource to be created.resourceInterface - Interface describing the resource to be created.target - WebResource pointing to the resource or the parent of the resource.public static <C> C newResource(Class<C> resourceInterface, com.sun.jersey.api.client.WebResource target, boolean ignoreResourcePath, javax.ws.rs.core.MultivaluedMap<String,String> headers, List<javax.ws.rs.core.Cookie> cookies, com.sun.jersey.api.representation.Form form)
C - Type of the resource to be created.resourceInterface - Interface describing the resource to be created.target - WebResource pointing to the resource or the parent of the resource.ignoreResourcePath - If set to true, ignores path annotation on the resource interface (this is used when creating sub-resources)headers - Header params collected from parent resources (used when creating a sub-resource)cookies - Cookie params collected from parent resources (used when creating a sub-resource)form - Form params collected from parent resources (used when creating a sub-resource)Copyright © 2016 Nuxeo SA. All rights reserved.