public class FoxServer extends AServer
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.configuration.XMLConfiguration |
CFG |
protected FoxStatistics |
foxStatistics |
static String |
jsonContentType |
static String |
KEY_API |
static String |
KEY_CACHE |
static String |
KEY_DEFAULT_NETWORK_HOST |
static String |
KEY_DEMO |
static String |
KEY_FEEDBACK |
static String |
KEY_FOX_LIFETIME |
static String |
KEY_FOX_STATICFOLDER |
static String |
KEY_LISTENER_NAME |
static String |
KEY_POOL_SIZE |
static String |
KEY_PORT |
protected FoxLanguageDetector |
languageDetector |
protected Oke |
oke |
protected static Map<String,Pool<IFox>> |
pool |
protected RouteConfig |
routeConfig |
static String |
turtleContentType |
Modifier and Type | Method and Description |
---|---|
void |
addShutdownHook()
Runs before the server shuts down.
|
protected boolean |
callFox(IFox fox,
Map<String,String> parameter) |
String |
fox(List<org.aksw.gerbil.transfer.nif.Document> docs,
Map<String,String> parameter) |
protected static void |
initPools() |
static FoxServer |
instance(org.apache.commons.configuration.XMLConfiguration xmlConfiguration) |
void |
mapCfg() |
void |
mapRoutes()
Initializes the roots of the server
|
public static final String KEY_POOL_SIZE
public static final String KEY_DEMO
public static final String KEY_API
public static final String KEY_FEEDBACK
public static final String KEY_CACHE
public static final String KEY_LISTENER_NAME
public static final String KEY_PORT
public static final String KEY_DEFAULT_NETWORK_HOST
public static final String KEY_FOX_LIFETIME
public static final String KEY_FOX_STATICFOLDER
public static final String turtleContentType
public static final String jsonContentType
protected final Oke oke
protected final FoxLanguageDetector languageDetector
protected final RouteConfig routeConfig
protected FoxStatistics foxStatistics
protected static org.apache.commons.configuration.XMLConfiguration CFG
public static FoxServer instance(org.apache.commons.configuration.XMLConfiguration xmlConfiguration)
public void addShutdownHook()
AServer
addShutdownHook
in class AServer
public void mapCfg()
public void mapRoutes()
AServer
public String fox(List<org.aksw.gerbil.transfer.nif.Document> docs, Map<String,String> parameter)
Copyright © 2024. All rights reserved.