target = processor.build(target, args[i]);
}
}
ClientInvocationBuilder builder = null;
if (accepts != null)
{
builder = (ClientInvocationBuilder)target.request(accepts);
}
else
{
builder = (ClientInvocationBuilder)target.request();
}
for (int i = 0; i < processors.length; i++)
{
if (processors != null && processors[i] instanceof InvocationProcessor)
{
InvocationProcessor processor = (InvocationProcessor)processors[i];
processor.process(builder, args[i]);
}
}
return (ClientInvocation)builder.build(httpMethod);
}