Annotation Type ClientResponseType


@Target(METHOD) @Retention(RUNTIME) @Deprecated public @interface ClientResponseType
Deprecated.
This is an annotation that you can add to a RESTEasy client interface that has a return type of Response.

You have two options:

  1. use the entityType property to set a Class that will always be returned
  2. 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 $
  • Element Details

    • entityType

      Class entityType
      Deprecated.
      Default:
      java.lang.Void.class
    • entityTypeFactory

      Class<? extends EntityTypeFactory> entityTypeFactory
      Deprecated.
      Default:
      org.jboss.resteasy.client.core.VoidEntityTypeFactory.class