Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Today is my exam.I have found a line below in new specs of servlet.Please anybody exp

 
pradeep singh
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody
Today is my exam.I have found a line below in new specs of servlet.Please anybody explain me this as soon as possible.I am unable to understand it.

5. Support Alternative HTTP Methods with Authorization Constraints
The previous Servlet 2.4 schema restricted HTTP methods to GET, POST, PUT, DELETE, HEAD, OPTIONS, and TRACE. The schema http-methodType was changed from:



<xsd:complexType name="http-methodType">

...

<xsd:simpleContent>

<xsd:restriction base="j2ee:string">

<xsd:enumeration value="GET"/>

<xsd:enumeration value="POST"/>

<xsd:enumeration value="PUT"/>

<xsd:enumeration value="DELETE"/>

<xsd:enumeration value="HEAD"/>

<xsd:enumeration value="OPTIONS"/>

<xsd:enumeration value="TRACE"/>

</xsd:restriction>

</xsd:simpleContent>

</xsd:complexType>



To the following:



<xsd:simpleType name="http-methodType">

<xsd:annotation>

<xsd ocumentation>

A HTTP method type as defined in HTTP 1.1 section 2.2.

</xsd ocumentation>

</xsd:annotation>



<xsd:restriction base="xsd:token">

<xsd attern value="[\p{L}-[\p{Cc}\p{Z}]]+"/>

</xsd:restriction>

</xsd:simpleType>



The http-method elements now need to be a token as described in HTTP 1.1 specification section 2.2.[/QUOTE]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't panic, but you're looking at the wrong spec. You should be looking at Servlets 2.4, not 2.5.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic