Package org.surfnet.oaaas.model

Examples of org.surfnet.oaaas.model.StatisticsResponse


  public void stats() {
    final ClientResponse response = webResource.path("stats").header("Authorization", authorizationBearer(ACCESS_TOKEN))
        .get(ClientResponse.class);
    assertEquals(200, response.getStatus());

    StatisticsResponse entity = response.getEntity(StatisticsResponse.class);
    assertTrue(entity.getResourceServers().size() > 0);
    assertNotNull(entity.getResourceServers().get(0).getName());
  }
View Full Code Here


                accessTokenRepository.countByUniqueResourceOwnerIdAndClientId(client.getId())));
      }
      resourceServerStats.add(new StatisticsResponse.ResourceServerStat(resourceServer.getName(), resourceServer
              .getDescription(), clientStats));
    }
    return Response.ok(new StatisticsResponse(resourceServerStats)).build();
  }
View Full Code Here

TOP

Related Classes of org.surfnet.oaaas.model.StatisticsResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.