You never call the getAsX method, you let Taffy do that for you.
The X in getAsX corresponds to what request "file extension" will imply the text response format, as an alternative to sending the Accept header (if you did send it, you should send, "application/text" or "text/plain")
Taffy interprets the request to figure out which of the supported formats (getters you have defined) is appropriate to respond with and calls the appropriate one to do the serialization.
If you want all requests to return plain text, get rid of the json getter and set Taffy:default="true" on your text getter.
You may or may not want to append .text to your request Uri to ensure the correct format is implied in the request. E.g. /foo/bar.text
If you would rather .txt then rename your getter getAsTxt... /foo/bar.txt
Hope that helps.
Adam
--
You received this message because you are subscribed to the Google Groups "Taffy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You could append ".text" in the rewritten URL. You may also need to leave off the trailing slashes (for this and other resources)
> email to taffy-users+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "Taffy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Taffy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users+unsubscribe@googlegroups.com.