[Building Sakai] EntityCustomAction getting the Request body

Aaron Zeckoski azeckoski at unicon.net
Wed Jul 18 03:43:08 PDT 2012


The best way IMO is to implement RequestAware and then use the
RequestGetter to grab the ServletRequest during execution of your
action. Then use either getInputStream or getReader depending on what
kind of data you are expecting.

-AZ


On Wed, Jul 18, 2012 at 5:18 AM, Marc Savitsky
<marc.savitsky at oucs.ox.ac.uk> wrote:
> Hi,
>
> I need to get hold of the contents of a file in EntityBroker, for example
>
> curl -u "admin:admin" -F "file=@Downloads/departments.json"
> http://localhost:8080/direct/content/upload?__auth=basic
>
> Does anybody know how I can get hold of data from a request body in an
> EntityCustomAction.
>
> thanks
> Marc
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"



-- 
Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile


More information about the sakai-dev mailing list