• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Authorization

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


This code means ,
files under /Beer/UpdateRecipes directory is contarined resurce for member role that tooonly for POST method .

but it can be accessible to other roles (not member), other http methods (not POST) and member role with other http methods(other than POST) unconstrained manner.

Note : all roles and http methods will access the resources. But it can be constrained for some roles and methods.We can't say this resource cant be accessed.

whether my above sayings are correct ?
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The resource can be accessed by members of other roles with constraint through HTTP methods (other than POST). But here is the thing, your servlet won't override doXXX() except for the doPost().
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No other methods and roles apart from defined are not constrained ,provided you trying to send a GET request and you have defined a doGet method,It would work fine.but if there is not doGet method, you would get the default 405 error code.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic