This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 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  RSS feed

 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!