@Path(value="/demo") public class DemoService extends Object
| Constructor and Description |
|---|
DemoService() |
| Modifier and Type | Method and Description |
|---|---|
String |
echo(String string) |
long |
getCount(long number) |
int |
getRandomInt(int bound) |
@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="/count/{number}")
@Counted(monotonic=true)
public long getCount(@PathParam(value="number")
long number)
Copyright © 2017 WSO2. All rights reserved.