View Javadoc
1   package de.mxro.webapiexample;
2   
3   /**
4    * The interface for interacting with servers.
5    * 
6    * @author Max
7    *
8    */
9   public interface WebApiServer {
10  	
11  	/**
12  	 * <p>Starts the server on the specified port.
13  	 * 
14  	 * @param port The port at which the server is to be started.
15  	 */
16  	public void start(int port);
17  	
18  	/**
19  	 * <p>Stops the server and releases the port.
20  	 */
21  	public void stop();
22  	
23  }