public class ThreadResource extends Object
Constructor and Description |
---|
ThreadResource(Long id)
Constructs this ThreadResource from the supplied id.
|
Modifier and Type | Method and Description |
---|---|
String |
getTHreadAsHtml()
Gets the Thread with the id that was supplied at construction time, in HTML format.
|
public ThreadResource(Long id)
id
- ID of the Thread.@GET @Produces(value="text/html;q=0.7") public String getTHreadAsHtml()
curl --header Accept:text/html --get http://localhost:8080/josef-demo-rest-ws/resources/management/threads/1
Copyright © 2008–2018. All rights reserved.