-
- All Implemented Interfaces:
public abstract class AbstractServer extends RouterNanoHTTPD
-
-
Field Summary
Fields Modifier and Type Field Description public final Stringhostnamepublic final IntegermyPortprivate final ServerSocketmyServerSocketprivate IFactoryThrowing<ServerSocket, IOException>serverSocketFactoryprivate IFactory<ITempFileManager>tempFileManagerFactory
-
Constructor Summary
Constructors Constructor Description AbstractServer(Integer port, Context context, Boolean enableReadiumNavigatorSupport)
-
Method Summary
Modifier and Type Method Description final UnitloadCustomResource(InputStream inputStream, String fileName, Injectable injectable)final UnitloadCustomFont(InputStream inputStream, Context context, String fileName)final URLaddPublication(Publication publication, File userPropertiesFile)final UnitaddEpub(Publication publication, String fileName, String userPropertiesPath)final UnitaddEpub(Publication publication, Container container, String fileName, String userPropertiesPath)final UnitloadReadiumCSSResources(AssetManager assets)final UnitloadR2ScriptResources(AssetManager assets)final UnitloadR2FontResources(AssetManager assets, Context context)-
Methods inherited from class org.nanohttpd.protocols.http.NanoHTTPD
addHTTPInterceptor, closeAllConnections, getHostname, getListeningPort, getMyServerSocket, getServerSocketFactory, getTempFileManagerFactory, handle, isAlive, makeSecure, setAsyncRunner, setHTTPHandler, setServerSocketFactory, setTempFileManagerFactory, start, start, start, stop, wasStarted -
Methods inherited from class org.nanohttpd.router.RouterNanoHTTPD
addMappings, addRoute, removeRoute, serve, setNotFoundHandler, setNotImplementedHandler, setRoutePrioritizer -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
loadCustomResource
final Unit loadCustomResource(InputStream inputStream, String fileName, Injectable injectable)
-
loadCustomFont
final Unit loadCustomFont(InputStream inputStream, Context context, String fileName)
-
addPublication
final URL addPublication(Publication publication, File userPropertiesFile)
-
addEpub
@Deprecated(message = "Use the easier-to-use addPublication()", replaceWith = @ReplaceWith(imports = {}, expression = "this.addPublication(publication, userPropertiesFile = File(userPropertiesPath))"), level = DeprecationLevel.ERROR) final Unit addEpub(Publication publication, String fileName, String userPropertiesPath)
-
addEpub
@Deprecated(message = "Use the easier-to-use addPublication()", replaceWith = @ReplaceWith(imports = {}, expression = "this.addPublication(publication, userPropertiesFile = File(userPropertiesPath))"), level = DeprecationLevel.ERROR) final Unit addEpub(Publication publication, Container container, String fileName, String userPropertiesPath)
-
loadReadiumCSSResources
@Deprecated(message = "This is not needed anymore") final Unit loadReadiumCSSResources(AssetManager assets)
-
loadR2ScriptResources
@Deprecated(message = "This is not needed anymore") final Unit loadR2ScriptResources(AssetManager assets)
-
loadR2FontResources
@Deprecated(message = "This is not needed anymore") final Unit loadR2FontResources(AssetManager assets, Context context)
-
-
-
-