boolean isDebugMode) throws URISyntaxException
{
try
{
RestRequestBuilder builder =
new RestRequestBuilder(new URI(uri)).setMethod(httpMethod).addHeaderValue("Accept", "application/x-pson")
.setHeader(RestConstants.HEADER_RESTLI_PROTOCOL_VERSION, version.toString());
if (entityBody != null)
{
builder.setEntity(entityBody.getBytes(Data.UTF_8_CHARSET));
}
RestRequest request = builder.build();
RoutingResult routingResult =
new RoutingResult(new ResourceContextImpl(pathkeys, request,
new RequestContext()), methodDescriptor);
_invoker.invoke(routingResult, request, callback, isDebugMode, null);