RE: improving Protocol.valueOf()

2009-01-13 Thread Jerome Louvel
Hi Carlos, I don't consider http://www.restlet.org/; to be a protocol name, so I would expect false. In order to achieve what you want, I would use this code: Reference ref = new Reference(http://www.restlet.org/;); Protocol.HTTP.equals(ref.getSchemeProtocol()); Best regards, Jerome Louvel --

RE: improving Protocol.valueOf()

2009-01-13 Thread Carlos Alexandre Moscoso
You're right! thanks for the tip! -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1023309