@Path(value="management/threads") public class ThreadsResource extends Object
| Constructor and Description |
|---|
ThreadsResource() |
| Modifier and Type | Method and Description |
|---|---|
ThreadResource |
getThreadResource(Long id)
Gets the sub resource to handle the "{thread}" part of the path.
|
String |
getThreadsAsHtml(javax.ws.rs.core.UriInfo uriInfo)
Gets all the threads in HTML format.
|
ThreadInfo[] |
getThreadsAsJasonOrXml(String details)
Gets all the threads in JSON format.
|
@GET @Produces(value="text/html;q=1.1") public String getThreadsAsHtml(@Context javax.ws.rs.core.UriInfo uriInfo)
curl --header Accept:text/html --get http://localhost:8080/josef-demo-rest-ws/resources/management/threads
uriInfo - URI Info to create links.@GET @Produces(value="application/json") public ThreadInfo[] getThreadsAsJasonOrXml(@QueryParam(value="details") String details)
curl --header Accept:application/json --get http://localhost:8080/josef-demo-rest-ws/resources/management/threads
details - Determines whether detailed information should be returned.
@Path(value="{thread}")
public ThreadResource getThreadResource(@PathParam(value="thread")
Long id)
id - The id of the Thread.Copyright © 2008–2018. All rights reserved.