• 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

web-resource-collection element

 
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Please confirm the answer to this question from "Eduardo Cobian".
What are the mandatory elements of the web-resource-collection element?
1) web-resource-name
2) url-pattern
3) http-method
4) auth-constrait
The correct answers mentioned are: 1 and 2.
According to me http-method is also a mandatory element. Here is definition of web-resource-collection element:
<!ELEMENT web-resource-collection (web-resource-name, description?, url-pattern*, http-method*)
Thanks
-- Ravi
 
Ranch Hand
Posts: 390
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From the definition <!ELEMENT web-resource-collection (web-resource-name, description?, url-pattern*, http-method*)
the only mandatory element is web-resource-name.
anselm
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Regarding to SCWCD Kit Appendix B (XML), the * sign means the element can occur zero or more number of times. So, according this, the http-method element is not mandatory.
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
As stated in the previous reply, the http-method is not mandatory. If you do not specify the HTTP method within the web-resource-collection, then the security constraints are applied for all the methods such as GET, POST, PUT ....etc.
Benny T
 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
If we strictly go by the definition for web-resource-collection element:
<!ELEMENT web-resource-collection (web-resource-name, description?, url-pattern*, http-method*)
Then answer # 2 i.e. url-pattern must not be mandatory too so the only correct answer should be 1.
-- Ravi
 
Anselm Paulinus
Ranch Hand
Posts: 390
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's right; the only mandatory answer is 1.
 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Anselm
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic