About Question enthuware.jwpv6.2.645 :
Posted: Mon Oct 10, 2011 11:24 am
In explanation: the link to ibm.com website is not working
Java Certification Resources and Java Discussion Forum
https://enthuware.com/forum/
Code: Select all
List<HttpMethodConstraintElement> methodConstraints = new ArrayList<HttpMethodConstraintElement>();
methodConstraints.add(new HttpMethodConstraintElement("*", constraint ));
In light of this information it seems the container would simply ignore the "*" definition and default to use the HttpConstraintElement definition, which is supposed to cover any HTTP method not already covered by HttpMethodConstraintElement (in this case apparently none). This doesn't change the answer but makes the example harder to understand...methodName - the name of an HTTP protocol method. The name must not be null, or the empty string, and must be a legitimate HTTP Method name as defined by RFC 2616