Commit ed882693 authored by acq1305's avatar acq1305
Browse files

creando un servicio

parent 517cd9bf
......@@ -31,7 +31,8 @@ public class ServidorRest {
* Constructor por Defecto
*
*/
public ServidorRest() {
public ServidorRest() {
jettyServer = new Server();
}
/**
......@@ -54,8 +55,7 @@ public class ServidorRest {
ServletHolder jerseyServlet = contextHandler.addServlet(ServletContainer.class, "/*");
jerseyServlet.setInitOrder(0);
jerseyServlet.setInitParameter(ServerProperties.PROVIDER_PACKAGES, "bo.gob.softwarelibre.firmadorestatal.servidor.servicios");
//SERVER
jettyServer = new Server();
//SERVER
ServerConnector connector = new ServerConnector(jettyServer);
//inicio http
connector.setPort(PUERTO_POR_DEFECTO_HTTP);
......
......@@ -32,8 +32,7 @@ public class Run {
GestorSlot gestorSlot;
gestorSlot = GestorSlot.getInstance();
gestorSlot.adicionarProveedor(proveedores(new File("token.cfg").getAbsolutePath ()));
ServidorRest rest = new ServidorRest();
rest = new ServidorRest();
ServidorRest rest = new ServidorRest();
rest.iniciar();
} catch (Exception e) {
System.out.println(e.getMessage());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment