protected void modifyApplication(JaxRsApplication application) {
application.getTunnelService().setExtensionsTunnel(true);
}
public void testAbsoluteGet() throws Exception {
Response response = get("absolute", TEXT_HTML);
assertUriAndMediaType("absolute", TEXT_HTML, response, true, null);
response = get("absolute.txt", TEXT_HTML);
assertUriAndMediaType("absolute.txt", TEXT_PLAIN, response, true, "txt");
response = get("absolute.html", IMAGE_GIF);
assertUriAndMediaType("absolute.html", TEXT_HTML, response, true,
"html");
response = get("absolute.xml", TEXT_HTML);
assertEquals(Status.CLIENT_ERROR_NOT_ACCEPTABLE, response.getStatus());
}