I'm calling the Jersey REST client Java API in JavaScript from a BIRT report design. The sample code is listed below. The last line is getting a JavaScript syntax error "missing name after . operator". I believe it's because class is a reserved keyword in JavaScript. I have to pass ClientResponse.class into the Java get method. Is there a way to work around this issue? I feel Rhino JavaScript has to have a resolution.
var clientConfig = new DefaultClientConfig();
var client = Client.create(clientConfig);
var webResource = client.resource("
http://localhost/test/getStatus");
var clientResponse = webResource.type(MediaType.APPLICATION_XML).get(ClientResponse.class);
Thanks!