yacy_search_server/source/net/yacy/http/YaCyHttpServer.java
reger 71cac1a278 added SSL/HTTPS connector to support SSL/https connection on port 8443
!!! attention !!! to make sure YaCy can start, https will be disabled if port 8443 is used
   - added ping test for above to migration 

- as of now port for https is hardcoded to default 8443
- if not urgend required I'd leave it this way (it's standard) to use different ports for http and https 

- post https port on ConfigBasic.html (if active)
2013-12-25 05:20:13 +01:00

31 lines
949 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 void startupServer() throws Exception;
abstract void stop() throws Exception;
abstract void setMaxSessionCount(int cnt);
abstract InetSocketAddress generateSocketAddress(String port) throws SocketException;
abstract int getMaxSessionCount();
abstract int getJobCount();
abstract int getSslPort();
abstract boolean withSSL();
abstract void reconnect(int milsec);
abstract String getVersion();
}