I'm partially agree with the response, but I think in most of the cases you will have javax.servlet.ServletRegistration.Dynamic obtained via ServletContext, on this interface you have method for configure async support, as this interface implements Registration.Dynamic interface.
So I think javax.servlet.Registration.Dynamic and javax.servlet.ServletRegistration.Dynamic are valid, also if you are talking about configure async support on servlet, ServletRegistration.Dynamic looks like better option. Just my comment. XD
About Question enthuware.jwpv6.2.641 :
Moderators: Site Manager, fjwalraven
-
- Posts: 5
- Joined: Wed Apr 03, 2013 5:59 pm
- Contact:
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.641 :
The setAsyncSupported method is declared in Registration.Dynamic so this is the only required interface for this purpose. Yes, ServletRegistration.Dynamic can also be used but not required.
HTH,
Paul.
HTH,
Paul.
-
- Posts: 3
- Joined: Wed Dec 30, 2015 1:17 am
- Contact:
Re: About Question enthuware.jwpv6.2.641 :
Looks like the above explanation provided is wrong.javax.servlet.ServletRegistration extends javax.servlet.Registration: Provides addMapping and addMappings
All Known Subinterfaces: ServletRegistration.Dynamic
I don't find any addMappings() for javax.servlet.ServletRegistration Interface.
Below is what I found (ref: http://docs.oracle.com/javaee/6/api/jav ... ation.html)
==================================================================
addMapping(java.lang.String... urlPatterns)
getMappings()
getRunAsRole()
Can you please confirm.
Regards,
Manoj
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.641 :
You are right, it should be getMappings. Fixed.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 10 guests