About Question enthuware.jwpv6.2.645 :
Moderators: Site Manager, fjwalraven
About Question enthuware.jwpv6.2.645 :
In explanation: the link to ibm.com website is not working
-
- Posts: 11
- Joined: Wed Jan 18, 2012 8:32 am
- Contact:
Re: About Question enthuware.jwpv6.2.645 :
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
Re: About Question enthuware.jwpv6.2.645 :
Hi,
I was also wondering about the "*" like goetz user above in "methodConstraints.add(new HttpMethodConstraintElement("*", constraint ));"
If someone could clarify this I would be grateful
I was also wondering about the "*" like goetz user above in "methodConstraints.add(new HttpMethodConstraintElement("*", constraint ));"
If someone could clarify this I would be grateful

-
- Site Admin
- Posts: 10401
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.645 :
* doesn't make sense here. Even though it does not affect the answer, it should be changed.
This has now been fixed. Thank you for your feedback!
This has now been fixed. Thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 3 guests