@Path(value="/test") @HTTPMonitoring public class TestService extends Object
| Constructor and Description |
|---|
TestService() |
| Modifier and Type | Method and Description |
|---|---|
String |
echo(String string) |
int |
getRandomInt(int bound) |
long |
getTotal(int number) |
@GET
@Path(value="/rand/{bound}")
@Metered
public int getRandomInt(@PathParam(value="bound")
int bound)
@GET
@Path(value="/echo/{string}")
@Timed
public String echo(@PathParam(value="string")
String string)
@GET
@Path(value="/total/{number}")
@Counted(monotonic=true)
public long getTotal(@PathParam(value="number")
int number)
Copyright © 2015 WSO2. All rights reserved.