Luc14860 / jwebsocket

Automatically exported from code.google.com/p/jwebsocket
0 stars 0 forks source link

need a stringToToken method #100

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We need to add a stringToToken method (convert Json String in a Token).
request from forum user tapdur 

Original issue reported on code.google.com by Quentin....@gmail.com on 22 Oct 2010 at 10:05

GoogleCodeExporter commented 9 years ago
I restructured the code so that the TokenFactory class now provides the two new 
static methods packetToToken and tokenToPacket. The TokenServer class now uses 
this instead of its own implementation. The DataPacket class provides a 
constructor with a string as argument. So this makes it easy now to convert as 
string of a support format (e.g. "jWebSocket-JSON") into a Token. Before 
notifying users please let's wait for our final decision regarding the 
SubProtocol discussion.

Original comment by fivefeetfurther@gmail.com on 25 Oct 2010 at 12:17

GoogleCodeExporter commented 9 years ago

Original comment by fivefeetfurther@gmail.com on 25 Oct 2010 at 12:17

GoogleCodeExporter commented 9 years ago
I also added a more simple way directly in JSONProcessor (simplier than 
creating a rawPacket and use it wth the ServerToken class.
I add a clear javadoc on the jsonStringToToken

Original comment by Quentin....@gmail.com on 4 Nov 2010 at 11:32