Package org.hpi.dialogue.protocol.request

Examples of org.hpi.dialogue.protocol.request.LoginRequest


    public ServerShutdownResponse serverShutdown() {
        return (ServerShutdownResponse) this.writeAndGetResponse(new ServerShutdownRequest());
    }

    public LoginResponse doLogin(User user) {
        return (LoginResponse) this.writeAndGetResponse(new LoginRequest(user));
    }
View Full Code Here


      } else if (serviceName.equals(HPIDialogueConstants.EXECUTE_INVOKER_SERVICE)) {
        return new ExecuteInvokerResponse(responseMessage, responseStatus);
      } else throw new RuntimeException("Unknow value to " + HPIDialogueConstants.SERVICE_NAME + ", the value is: " + serviceName);
    } else if (serviceType.equals(HPIDialogueConstants.REQUEST_SERVICE)) {
      if (serviceName.equals(HPIDialogueConstants.LOGIN_SERVICE)) {
        return new LoginRequest(
          new User(
            parameters.getLeaf(HPIDialogueConstants.NICKNAME).getValue(),
            parameters.getLeaf(HPIDialogueConstants.PASSPHRASE).getValue()));
      } else if (serviceName.equals(HPIDialogueConstants.SERVER_SHUTDOWN_SERVICE)) {
        return new ServerShutdownRequest();
View Full Code Here

  public ServerShutdownResponse serverShutdown() {
    return (ServerShutdownResponse) this.writeAndGetResponse(new ServerShutdownRequest());
  }
 
  public LoginResponse doLogin(User user) {
    return (LoginResponse) this.writeAndGetResponse(new LoginRequest(user));
  }
View Full Code Here

      } else if (serviceName.equals(HPIDialogueConstants.EXECUTE_INVOKER_SERVICE)) {
        return new ExecuteInvokerResponse(responseMessage, responseStatus);
      } else throw new RuntimeException("Unknow value to " + HPIDialogueConstants.SERVICE_NAME + ", the value is: " + serviceName);
    } else if (serviceType.equals(HPIDialogueConstants.REQUEST_SERVICE)) {
      if (serviceName.equals(HPIDialogueConstants.LOGIN_SERVICE)) {
        return new LoginRequest(
          new User(
            parameters.getLeaf(HPIDialogueConstants.NICKNAME).getValue(),
            parameters.getLeaf(HPIDialogueConstants.PASSPHRASE).getValue()));
      } else if (serviceName.equals(HPIDialogueConstants.SERVER_SHUTDOWN_SERVICE)) {
        return new ServerShutdownRequest();
View Full Code Here

TOP

Related Classes of org.hpi.dialogue.protocol.request.LoginRequest

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.