Package marauroa.common.net.message

Examples of marauroa.common.net.message.MessageS2CCreateAccountNACK


          break;

        /* Account was not created. Reason explained on event. */
        case S2C_CREATEACCOUNT_NACK:
          logger.debug("Create account NACK");
          MessageS2CCreateAccountNACK nack = (MessageS2CCreateAccountNACK) msg;
          result = new AccountResult(nack.getResolutionCode(), username);

          received++;
          break;
        default:
          logger.debug("Unexpected method while waiting for confirmation of account creation: " + msg);
View Full Code Here


      } else {
        /*
         * Account creation may also fail. So expose the reasons of the
         * failure.
         */
        MessageS2CCreateAccountNACK msgCreateAccountNACK = new MessageS2CCreateAccountNACK(
            message.getSocketChannel(), result);
        msgCreateAccountNACK.setProtocolVersion(message.getProtocolVersion());
        netMan.sendMessage(msgCreateAccountNACK);
      }
    } catch (Exception e) {
      logger.error("Unable to create an account", e);
    }
View Full Code Here

TOP

Related Classes of marauroa.common.net.message.MessageS2CCreateAccountNACK

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.