@Path(value="/time") public class TimeResource extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INTRO_MESSAGE |
static String |
MESSAGE_HELLO |
| Constructor and Description |
|---|
TimeResource() |
| Modifier and Type | Method and Description |
|---|---|
String |
addMessage(String time) |
String |
getTime() |
String |
getTimeForZone(String zoneId) |
String |
hello(String name) |
public static final String INTRO_MESSAGE
public static final String MESSAGE_HELLO
@GET @Path(value="/default") @Produces(value="text/plain") public String getTime()
@GET @Path(value="/tz") @Produces(value="text/plain") public String getTimeForZone(@QueryParam(value="zoneId") String zoneId)
@GET @Path(value="/message") @Produces(value="text/plain") public String addMessage(@QueryParam(value="time") String time)
Copyright © 2017 JBoss by Red Hat. All rights reserved.