REST Web Services 24 - Using Context and BeanParam annotations
Vložit
- čas přidán 7. 05. 2015
- Website: javabrains.koushik.org/courses...
In this tutorial, we'll cover a few more ways to have request information injected into resource methods. We'll look at Context and BeanParam annotations.
Koushik, Thanks for these awesome tutorials, When I start to watch first tutorials I can not stop myself to complete whole series of tutorials . You create interest of audience, Your way of explanation, Knowledge of things everything is Super Great. Thanks a billion Man...
Impeccable and top notch presentation with such clarity of flow and content. Thank you very much Koushik for the exceptional quality of videos.
@koushik,predominately you done fabulous job and Thanks for providing the top class series of video's on Rest API's
Your are the Best web teacher. Thank you Koushik.
great tutorial ... Crisp and clear ... Thank You Koushik ...
Koushik, you are awesome. I have learned so much from you. Thanks for sharing your knowledge with us.
Hi Sir,
Simply awesome,God bless you
Thanks for sharing your knowledge. Very clear and concise.
Very good job, Thank you
This is fantastic! I need to do the same that is access the context objects such as ServletContext in JavaBean but the problem is that the application is based on multiple complex layers and I don't know the details. I am only able to develop and deploy the JavaBean which is invoked from the back end server side components. In my JavaBean, I need to access the ServletContext but I don't think jersy is used. How to do that using plain Java APIs?
I love it!
Hey Kaushik,
Have a small query. Can't we just create a Instance of FilterBean with out specifying @Bean annotation ? @Bean was introduced in JAX-RS 2.0, so how did developers use to write before that with out writing all the @XXXParam annotation in the arguments.
wonderful tutorial.. Thanks Koushik . Can you please clarify , while doing a get call with @beanParam ,do i still need to send all the values of date, size etc in URI ? .Can i directly send a JSON object in the URl retrieve query values from that?
Thank you 👏
Thank you so much
Koushik, very good videos.Thank you very much.can you suggest me the online doc which is best for interview preparation on REST WS.
First of all thank you for your clear and clever explanation, keep doing these videos. Second, I have just a short question: Is there any way to call method getMessages using method overloading?, just because function body is full of if statements and using method overloading it may be clearer the use of parameters, I mean, one for year param and other one for size and start. Thank you
can you please make tutorials about oracle jdeveloper and adf and how to develop app with these technologies
Great
Can somebody please help me with this. This is really weird. I am unable to import @BeanParam. Eclipse either says create a new annotation or fix project setup. I have manually checked the classes in jax.rs.* , jax.rs.core.* and jas.rs.ext.*. It is not present !!! Why would this happen ? Nothing similar to this on stack over flow as well.
jax.ws.rs.* , jax.ws.rs.core.* , jax.ws.rs.ext.*
Hi, I am following your tutorial series, able to execute all the tutorial examples till now, but getting "415-Unsupported data type" error when I send GET request to the getMessages method using @BeanParam.
Is there something which I am missing to do ?
Sandeep Kaur I can think of a couple of possible things, but it's hard to tell without looking at your code. Check out the source code in the website page and see if there's any difference.
Thanks so much for excellent tutorial . I have one question , can we use @beanparam for header and cookie parameter.
I tried it, it works.
localhost:8080/arest/webapi/messages?year=2015&start=1&size=2 doesn't work after using param beans, could you please help?
Could you increase your font size?
I want to get all the wookies 😄
Thank you! but now i kinda feel stupid that i never read on beanparam
How to query in Postman by this way? /messages?year=2015 does not work,localhost:8080/arest/webapi/messages?year=2015;start=1;size=2
localhost:8080/arest/webapi/messages?year=2015&start=1&size=2
Yes, Correct