@Path(value="/") public class Sample extends Object
| Constructor and Description |
|---|
Sample() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
forward(javax.ws.rs.core.UriInfo uriInfo,
String queryParam,
javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
greet(String msg) |
@GET
@Produces(value="text/plain")
public javax.ws.rs.core.Response greet(@DefaultValue(value="World") @QueryParam(value="greeting")
String msg)
@GET
@Path(value="/forward")
public javax.ws.rs.core.Response forward(@Context
javax.ws.rs.core.UriInfo uriInfo,
@QueryParam(value="q")
String queryParam,
@Context
javax.ws.rs.core.HttpHeaders headers)
Copyright © 2016. All rights reserved.