You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by ricb <ri...@brinydeep.net> on 2013/08/04 16:33:55 UTC
receive non-wicket json payload via wicket website
I have a requirement to receive some json payloads via a wicket website. (I
have IP and port restrictions that make it difficult to receive it
elsewhere.) These payloads are unrelated to the content of the website, and
will be sent via simple http post calls.
Is there a way to bypass most of the wicket infrastructure for these http
calls and just do something simple with the json payloads (e.g., save to
disk or a postgresql database)?
Thanks much.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/receive-non-wicket-json-payload-via-wicket-website-tp4660680.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: receive non-wicket json payload via wicket website
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
IResource is like a Servlet with access to the Wicket Application, Session
and RequestCycle.
On Thu, Aug 22, 2013 at 9:49 PM, ricb <ri...@brinydeep.net> wrote:
> Thanks, Andrea. I agree: unless I am missing something, IResource seems
> like
> the appropriate (and only) way to handle non-Wicket requests via a Wicket
> application. Do you know if there would be much additional overhead
> incurred
> if I run my non-Wicket request-handling code in an IResource (as opposed to
> a plain servlet under Tomcat or the like)?
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/receive-non-wicket-json-payload-via-wicket-website-tp4660680p4661030.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: receive non-wicket json payload via wicket website
Posted by Andrea Del Bene <an...@gmail.com>.
Of course there is a little overhead, but I think is completely
negligible compared to business code.
> Thanks, Andrea. I agree: unless I am missing something, IResource seems like
> the appropriate (and only) way to handle non-Wicket requests via a Wicket
> application. Do you know if there would be much additional overhead incurred
> if I run my non-Wicket request-handling code in an IResource (as opposed to
> a plain servlet under Tomcat or the like)?
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/receive-non-wicket-json-payload-via-wicket-website-tp4660680p4661030.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: receive non-wicket json payload via wicket website
Posted by ricb <ri...@brinydeep.net>.
Thanks, Andrea. I agree: unless I am missing something, IResource seems like
the appropriate (and only) way to handle non-Wicket requests via a Wicket
application. Do you know if there would be much additional overhead incurred
if I run my non-Wicket request-handling code in an IResource (as opposed to
a plain servlet under Tomcat or the like)?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/receive-non-wicket-json-payload-via-wicket-website-tp4660680p4661030.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: receive non-wicket json payload via wicket website
Posted by Andrea Del Bene <an...@gmail.com>.
You could mount a custom resource (a custom IResource) and use it read
the JSON from request.
> I have a requirement to receive some json payloads via a wicket website. (I
> have IP and port restrictions that make it difficult to receive it
> elsewhere.) These payloads are unrelated to the content of the website, and
> will be sent via simple http post calls.
>
> Is there a way to bypass most of the wicket infrastructure for these http
> calls and just do something simple with the json payloads (e.g., save to
> disk or a postgresql database)?
>
> Thanks much.
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/receive-non-wicket-json-payload-via-wicket-website-tp4660680.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: receive non-wicket json payload via wicket website
Posted by ricb <ri...@brinydeep.net>.
Thanks, Nick. How would it be possible to host/run a servlet within a Wicket
application? Did you notice my limitations regarding IP and port?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/receive-non-wicket-json-payload-via-wicket-website-tp4660680p4661025.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: receive non-wicket json payload via wicket website
Posted by Nick Pratt <nb...@gmail.com>.
Write a servlet.
On Aug 4, 2013 10:35 AM, "ricb" <ri...@brinydeep.net> wrote:
> I have a requirement to receive some json payloads via a wicket website. (I
> have IP and port restrictions that make it difficult to receive it
> elsewhere.) These payloads are unrelated to the content of the website, and
> will be sent via simple http post calls.
>
> Is there a way to bypass most of the wicket infrastructure for these http
> calls and just do something simple with the json payloads (e.g., save to
> disk or a postgresql database)?
>
> Thanks much.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/receive-non-wicket-json-payload-via-wicket-website-tp4660680.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>