I have to implement the service provider of the OAuth protocol in a project that uses Tapestry5. Therefor I just need to return a very simple HTTP response body that is neither HTML or JSON.
At first I tried to use the standard tml & pojo (java class, page) approach but this doesn't work because Tapestry tries to parse the templates.
So I think I have to try something different. Maybe it is possible to use a render() method in a page? But I couldn't find any documentation that would answer this question.
Or should I just use another framework that would better fit my needs?
Thank you for your advice,
Richard
Brian pushed me in the right direction, but the actual solution to the problem was even simpler:
StreamResponse onActivate() {
return new TextStreamResponse("text/plain", "foo=bar");
}