yacy_search_server/source/net/yacy/http/YaCyHttpServer.java
reger 71d2655c02 downgrade to Jetty 8 to assure support of JRE 1.6
- introduce a YaCyHttp interface to modulize/separate http server
- adjust the Jetty version specific implementation part (in package net.yacy.http)
     - putting the version specific code in classes starting with Jetty8xxxx
     - moved existing Jetty9xxx implementation into a test class (to keep the code)
- adjust build to the changed jars
- make use of the introduced YaCyHttpServer interface in related htroot servlets

- adjust other test cases/classes
2013-10-09 00:40:48 +02:00

30 lines
980 B
Java

package net.yacy.http;
import java.net.InetSocketAddress;
import java.net.SocketException;
/**
* Isolation of HttpServer
*
* Development Goal: allow for individual implementation of a HttpServer
* to provide the routines and entry points required by the
* YaCy servlets
*
* currently Jetty implementation is ongoing
*
* Implementation Jetty8HttpServerImpl.java
*/
public interface YaCyHttpServer {
abstract public void startupServer() throws Exception;
abstract public void stop() throws Exception;
abstract public void setMaxSessionCount(int cnt);
abstract public InetSocketAddress generateSocketAddress(String port) throws SocketException;
abstract public int getMaxSessionCount();
abstract public int getJobCount();
abstract public boolean withSSL();
abstract public void reconnect(int milsec);
abstract public String getVersion();
}