Package org.hpi.dialogue.protocol.service

Examples of org.hpi.dialogue.protocol.service.HPIServerProtocol.writeResponse()


        }.start();
        response = new ServerShutdownResponse("Request to shutdown server received successfully and schedulled to execute in 5 seconds.", Response.Status.SUCCESS);
      } else throw new IllegalStateException("Request type unknown.");
     
      // writing the serialized response
      serverProtocol.writeResponse(response);
    } catch (Exception e) {
      throw new RuntimeException(e);
    } finally {
      if (serverProtocol != null) {
        serverProtocol.closeSocket();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.