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

public Class ServerCli

extends Object
implements Callable<Void>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable
Annotations
@org.jabref.architecture.AllowedToUseStandardStreams
@Command
name:jabsrv
mixinStandardHelpOptions:true
description:JabSrv - JabRef HTTP server
Imports
java.io.IOException, java.net.URI, .URISyntaxException, java.nio.file.Files, .Path, java.util.ArrayList, .List, java.util.concurrent.Callable, org.jabref.architecture.AllowedToUseStandardStreams, org.jabref.http.server.Server, org.jabref.logic.preferences.JabRefCliPreferences, org.glassfish.grizzly.http.server.HttpServer, org.slf4j.Logger, .LoggerFactory, org.slf4j.bridge.SLF4JBridgeHandler, picocli.CommandLine

Field Summary

Modifier and TypeField and Description
pack-priv List<Path>
private String
private static final Logger
private Integer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Void
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

public static void
main(final String[] args)

Starts an http server serving the last files opened in JabRef

More files can be provided as args.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

filesback to summary
pack-priv List<Path> files
Annotations
@Parameters
arity:0..*
paramLabel:FILE
description:the library files (*.bib) to serve
hostback to summary
private String host
Annotations
@Option
names:-H, --host
description:the host name
LOGGERback to summary
private static final Logger LOGGER
portback to summary
private Integer port
Annotations
@Option
names:-p, --port
description:the port

Constructor Detail

ServerCliback to summary
public ServerCli()

Method Detail

callback to summary
public Void call() throws InterruptedException, IOException

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Annotations
@Override
mainback to summary
public static void main(final String[] args) throws InterruptedException

Starts an http server serving the last files opened in JabRef

More files can be provided as args.

Implementation Note

method needs to be public, because JabServLauncher calls it.