Verified Owner
Top Fields Constructors Methods
org.jabref.http.server

public Class Server

extends Object
Class Inheritance
Annotations
@NullMarked
Imports
java.io.IOException, .InputStream, java.net.URI, java.nio.file.Files, .Path, .StandardCopyOption, java.util.List, javax.net.ssl.SSLContext, org.jabref.http.JabRefSrvStateManager, .SrvStateManager, org.jabref.http.dto.GlobalExceptionMapper, .GsonFactory, .GsonMessageBodyReader, .GsonMessageBodyWriter, org.jabref.http.server.cayw.CAYWResource, org.jabref.http.server.cayw.format.FormatterService, org.jabref.http.server.command.CommandResource, org.jabref.http.server.resources.CitationsResource, .EntriesResource, .EntryResource, .GroupsResource, .LibrariesQueryResource, .LibrariesResource, .LibraryResource, .MapResource, .RootResource, org.jabref.http.server.services.CitationCacheService, org.jabref.logic.UiMessageHandler, org.jabref.logic.os.OS, org.jabref.logic.preferences.CliPreferences, org.jabref.model.database.BibDatabase, org.jabref.model.entry.BibEntryTypesManager, net.harawata.appdirs.AppDirsFactory, org.glassfish.grizzly.http.server.HttpServer, org.glassfish.grizzly.ssl.SSLContextConfigurator, org.glassfish.hk2.api.ServiceLocator, org.glassfish.hk2.utilities.ServiceLocatorUtilities, org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory, org.glassfish.jersey.server.ResourceConfig, org.jspecify.annotations.NonNull, .NullMarked, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final Logger
private final CliPreferences

Constructor Summary

AccessConstructor and Description
public
Server(CliPreferences preferences)

Method Summary

Modifier and TypeMethod and Description
private @NonNull Path
private SSLContext
public HttpServer
run(List<Path> files, URI uri)

Entry point for the CLI

public HttpServer
run(SrvStateManager srvStateManager, UiMessageHandler uiMessageHandler, URI uri)

Entry point for the GUI with UiMessageHandler

private boolean
private HttpServer
startServer(ServiceLocator serviceLocator, URI uri)

pack-priv static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER
preferencesback to summary
private final CliPreferences preferences

Constructor Detail

Serverback to summary
public Server(CliPreferences preferences)

Method Detail

getSslCertback to summary
private @NonNull Path getSslCert()
getSslContextback to summary
private SSLContext getSslContext()
runback to summary
public HttpServer run(List<Path> files, URI uri) throws IOException

Entry point for the CLI

runback to summary
public HttpServer run(SrvStateManager srvStateManager, UiMessageHandler uiMessageHandler, URI uri)

Entry point for the GUI with UiMessageHandler

sslCertExistsback to summary
private boolean sslCertExists()
startServerback to summary
private HttpServer startServer(ServiceLocator serviceLocator, URI uri)
stopServerback to summary
pack-priv static void stopServer()