|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.jersey.client.proxy.WebResourceFactory
public final class WebResourceFactory
Factory for client-side representation of a resource. See the package overview for an example on how to use this class.
| Method Summary | ||
|---|---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
|
static
|
newResource(java.lang.Class<C> resourceInterface,
WebTarget target)
Creates a new client-side representation of a resource described by the interface passed in the first argument. |
|
static
|
newResource(java.lang.Class<C> resourceInterface,
WebTarget target,
boolean ignoreResourcePath,
MultivaluedMap<java.lang.String,java.lang.Object> headers,
java.util.List<Cookie> cookies,
Form form)
Creates a new client-side representation of a resource described by the interface passed in the first argument. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <C> C newResource(java.lang.Class<C> resourceInterface,
WebTarget target)
WebResourceFactory.newResource(resourceInterface, rootTarget, false).
C - Type of the resource to be created.resourceInterface - Interface describing the resource to be created.target - WebTarget pointing to the resource or the parent of the resource.
public static <C> C newResource(java.lang.Class<C> resourceInterface,
WebTarget target,
boolean ignoreResourcePath,
MultivaluedMap<java.lang.String,java.lang.Object> headers,
java.util.List<Cookie> cookies,
Form form)
C - Type of the resource to be created.resourceInterface - Interface describing the resource to be created.target - WebTarget 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)
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||