public class RipServer extends Object implements Comparable<RipServer>, AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
compareTo(RipServer that) |
boolean |
equals(Object object) |
int |
hashCode() |
static RipRoute |
localhost()
Cria um RipServer na porta padrão (7777)
|
static RipRoute |
localhost(int port)
Cria um RipServer na porta
port |
static RipRoute |
localhost(int port,
String location)
Cria um RipServer na porta
port |
static void |
stop(int port)
Para o servidor na porta
port |
String |
toString() |
static Path |
withFile(String fileName)
Transforma um caminho de arquivo informado em um objeto
Path |
public static RipRoute localhost()
public static RipRoute localhost(int port)
port
port
- a porta do servidorpublic static RipRoute localhost(int port, String location)
port
port
- a porta do servidorlocation
- o local dos arquivospublic static void stop(int port)
port
port
- a porta do servidorpublic static Path withFile(String fileName)
Path
fileName
- o caminho/nome do arquivo, com raiz em src/main/resourcesPath
para o arquivopublic void close() throws Exception
close
in interface AutoCloseable
Exception
public int compareTo(RipServer that)
compareTo
in interface Comparable<RipServer>
Copyright © 2018 Technearts. All rights reserved.