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:
  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 $
  Author:
    Solomon Duskis

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `Class` | `entityType`
    `Class<? extends EntityTypeFactory>` | `entityTypeFactory`

- - ### Element Detail

    - #### entityType

          public abstract Class entityType

      Default:
        java.lang.Void.class

    - #### entityTypeFactory

          public abstract Class<? extends EntityTypeFactory> entityTypeFactory

      Default:
        org.jboss.resteasy.client.core.VoidEntityTypeFactory.class

Copyright © 2014. All Rights Reserved.