HTML-Content for JMX operations

42 views
Skip to first unread message

Michael Knigge

unread,
Mar 17, 2014, 3:49:11 PM3/17/14
to jminix...@googlegroups.com
Hi,

I wonder why JMInix doensn't support HTML rendering for JMX operations. Is it a bug (forget to implement), not supported or just "not possible"?


Thanks,
Michael

lbovet

unread,
Mar 18, 2014, 3:49:51 PM3/18/14
to jminix...@googlegroups.com
JMiniX has always been more focused on attributes than operations given its RESTful orientation. The HTML rendering is a kind of experiment because it goes outside the JMX standard.
There would not be a huge change to add this feature, I guess. If you give a try, feel free to submit a pull request.

Uziel David Sulkies

unread,
Mar 19, 2017, 4:19:09 PM3/19/17
to jminix-users
Hi!
I've just started using jminix and I'm facing the same issue.
I have various jmx operations. All of those java methods returns String.
Sometimes the string is a plain text, sometimes its an XML, sometimes a HTML.
I tried to use the org.restlet annotations like @Post ("html") and it didn't work.
I tried to change the method to return Representation and used the MediaType constructor, but still -
The result I get from jminix application is always a plain-text.

I'd happily develop the solution into the open source project, but I'll be happier if someone can guide me where should be the intervention point?
Where should I set the response header Content-Type to the right type?

Thanks a lot,
Uziel

בתאריך יום שלישי, 18 במרץ 2014 בשעה 21:49:51 UTC+2, מאת lbovet:
Reply all
Reply to author
Forward
0 new messages