Package com.rest

Class CommandHandler

java.lang.Object
com.rest.CommandHandler
All Implemented Interfaces:
com.sun.net.httpserver.HttpHandler

public class CommandHandler
extends java.lang.Object
implements com.sun.net.httpserver.HttpHandler
  • Constructor Summary

    Constructors 
    Constructor Description
    CommandHandler()  
  • Method Summary

    Modifier and Type Method Description
    void handle​(com.sun.net.httpserver.HttpExchange exchange)
    Handler

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • handle

      public void handle​(com.sun.net.httpserver.HttpExchange exchange) throws java.io.IOException

      Handler

      Redirige los comandos
      Specified by:
      handle in interface com.sun.net.httpserver.HttpHandler
      Parameters:
      exchange - peticion de http
      Throws:
      java.io.IOException