ResponseBuilder responseBuilder =
RuntimeDelegate.getInstance().createResponseBuilder();
// send back a media type that has q=0 -- this should be
// detected somewhere
responseBuilder.type(new MediaType("image", "jpeg"));
return responseBuilder.status(Response.Status.OK).entity("unknown string")
.build();
}
}
}
return RuntimeDelegate.getInstance().createResponseBuilder().status(Response.Status.OK)