PDA

View Full Version : LoginHandler confusion



dwlee
07-10-2008, 08:33 AM
Hi,

I'm alittle confused. If the flash sets a LoginRequest with a EsObject using the api



LoginRequest lr = new LoginRequest();
EsObject x = new EsObject();
x.setString("tag", "value");
lr.setEsObject(x);


On the server side when it hits my login handler which implements BaseLoginEventHandler. In the executeLogin(LoginContext loginContext)

which of the LoginContext api do I use to extract the EsObject that was set from the action script above (ie esobject x)? I'm asking because all the methods in the LoginContext api requires a 'name' to grab the EsObject out. But the we never gave it a name for the EsObject in the above code. Am I missing something here?

tcarr
07-10-2008, 08:39 AM
Educated guess: try context.getRequestParameters() and see if that gives you the EsObject you sent with the LoginRequest.

dwlee
07-10-2008, 09:18 AM
In my java code when I want to test it using
LoginContext lc = new LoginContext(esObj, null, null, 0);

and when i do lc.getRequestParameters(). it gives null. Does this mean even if you do the setEsObject() in actionscript it'll most likely be null from the server end?

It's difficult for me to really test with actionscript cuz the programmer for actionscript is in a different city....

dwlee
07-10-2008, 09:25 AM
my bad...my test works on the java end...going to try it with actionscript...thanks!!