return new BodyEntityExtractor(method);
}
protected EntityExtractor createResponseTypeEntityExtractor(final Method method)
{
final ClientResponseType responseHint = method.getAnnotation(ClientResponseType.class);
if (responseHint != null)
{
final Class responseHintReturnType = responseHint.entityType();
if (isVoidReturnType(responseHintReturnType))
{
final Class<? extends EntityTypeFactory> entityTypeFactory = responseHint.entityTypeFactory();
return new EntityExtractor()
{
public Object extractEntity(ClientRequestContext context, Object... args)
{
EntityTypeFactory factory = null;