org.jboss.resteasy.annotations
Annotation Type ClientResponseType
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface ClientResponseType
This is an annotation that you can add to a RESTEasy client interface that
has a return type of Response.
You have two options:
- use the entityType property to set a Class that will always be returned
- use the entityTypeFactory to determine which Class to use based on a
factory that determines which class to use based on logic that uses the
headers and status of the result.
Note: if you want to use generic types, you can't use this annotation. You'll
have to either use ClientResponse as part of your interface, or cast the
resulting Response object as a ClientResponse.
- Version:
- $Revision: 1 $
- Author:
- Solomon Duskis
entityType
public abstract java.lang.Class entityType
- Default:
- java.lang.Void.class
entityTypeFactory
public abstract java.lang.Class<? extends EntityTypeFactory> entityTypeFactory
- Default:
- org.jboss.resteasy.client.core.VoidEntityTypeFactory.class
Copyright © 2010. All Rights Reserved.