Hi Jerome,
I am trying to migrate my work to b18. Eventhough I have to unlearn a
lot, it is much nicer to work with the API.
I have a suggestion to make about some o.r.data classes. For Protocol
you provide the method - create, that acts as a factory method. It
would be very convenient to have a similar method for ChallengeScheme.
It would be great to be able to do
ChallengeScheme.valueOf("http_basic"); which we could when there was
the Enum ChallengeSchemes.
that brings us to that point of consistency in naming methods names
etc. I propose using valueOf() just like it is used in the JDK. So
that means renaming the create() to valueOf().
One thing that has to decided too is whether or not to ignore case in
such situations i.e.
should both http_basic and HTTP_BASIC be allowed?
Are there any other places we could use this suggestion?
Cheers
Piyush