• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt in the http-method

 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

In HFSJ first edition page no 634 it is said that "if no <http-method> is specified then that means none of the http-methods are allowed

In Page no 660 it is said that "we left off <http-method> so that no http-methods are accessible by any one apart from Admin

It is confussing when we wont specify http-method in such cases none of them are able to access any of the http-methods but in second case even though we have not specified http-method by specifying the <role-name> Admin </role-name> how Admin will be able to access all the http-methods but not others. I think even Admin should not be able to have access to any of the http-methods becuase we have no specified http-methods in web.xml is that correct?

Thanks
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if role-name is specified , only the specfied role name can access the resource with that specified http method.

if the http-method tag is not there, all the HTTP methods are constrained.

so , all the methods can be used to access the resource by the Admin which is role specified in role-name.

Hope this helps.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic