@MultiHandler
Posted: 11 Jan 2011, 13:41
Hi there
if i follow the code from the tutorial:
I get the error message that i need in Override getParentExtension().
If i override it, i get this:
In these examples http://forums.smartfoxserver.com/viewto ... ltihandler the class extends BaseClientRequestHandler instead of implementing IClientRequestHandler.
Is there an error in the documentation?
Many thanks.
if i follow the code from the tutorial:
Code: Select all
@MultiHandler
public class RegisterMultiHandler implements IClientRequestHandler
{
@Override
public void handleClientRequest(User sender, ISFSObject params, SFSExtension parentExt)
{
// Obtain the request id
String requestId = params.getUtfString(SFSExtension.MULTIHANDLER_REQUEST_ID);
}
}
If i override it, i get this:
Code: Select all
@Override
public SFSExtension getParentExtension() {
throw new UnsupportedOperationException("Not supported yet.");
}Is there an error in the documentation?
Many thanks.