Package org.hpi.dialogue.protocol.response

Examples of org.hpi.dialogue.protocol.response.Response


            this.getWriter().flush();

            // initiating the reader and reading the response from the server
            this.setReader(this.getSocket().openInputStream());
            String serverMessage = this.readMessage();
            Response response = (Response) HPIDialogueProtocol.parseMessage(serverMessage);

            // closing the connections
            this.closeSocket();

            // return the retrieved response
View Full Code Here


      this.getWriter().flush();

      // initiating the reader and reading the response from the server
      this.setReader(this.getSocket().getInputStream());
      String serverMessage = this.readMessage();
      Response response = (Response) HPIDialogueProtocol.parseMessage(serverMessage);
     
      // closing the connections
      this.closeSocket();
     
      // return the retrieved response
View Full Code Here

  public void run() {
    HPIServerProtocol serverProtocol = null;
    try {
      serverProtocol = new HPIServerProtocol(this.socket);
      Request clientRequest = serverProtocol.readRequest();
      Response response = null;

      // deciding the correct request
      if (clientRequest instanceof LoginRequest) { // login request
        response = this.doLogin((LoginRequest) clientRequest);
      } else if (clientRequest instanceof ListInvokersRequest) { // list invokers request
View Full Code Here

TOP

Related Classes of org.hpi.dialogue.protocol.response.Response

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.