Example #1
0
 public RestClient() {
   config = new DefaultClientConfig();
   client = Client.create(config);
   // 操作日志
   //		service =
   // client.resource(UriBuilder.fromUri("http://localhost:8080/cbss_rest/rest/service").build());//要请求的url路径
   // 性能监控
   service =
       client.resource(
           UriBuilder.fromUri("http://localhost:8080/cbss_rest/rest/performance")
               .build()); // 要请求的url路径
 }