Top Fields Constructors Methods
org.jabref.http.server

public Class LibraryResource

extends Object
Class Inheritance
Annotations
@Path:libraries/{id}
Imports
java.io.IOException, java.nio.file.Files, java.util.List, .Objects, org.jabref.http.JabrefMediaType, org.jabref.http.dto.BibEntryDTO, org.jabref.logic.citationstyle.JabRefItemDataProvider, org.jabref.logic.importer.ParserResult, org.jabref.logic.importer.fileformat.BibtexImporter, org.jabref.logic.util.io.BackupFileUtil, org.jabref.model.entry.BibEntryTypesManager, org.jabref.model.util.DummyFileUpdateMonitor, org.jabref.preferences.PreferencesService, com.airhacks.afterburner.injection.Injector, com.google.gson.Gson, jakarta.inject.Inject, jakarta.ws.rs.GET, .InternalServerErrorException, .NotFoundException, .Path, .PathParam, .Produces, jakarta.ws.rs.core.MediaType, .Response, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
pack-priv Gson
public static final Logger
pack-priv PreferencesService

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Response
public String
public String
private Path
private ParserResult
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

gsonback to summary
pack-priv Gson gson
Annotations
@Inject
LOGGERback to summary
public static final Logger LOGGER
preferencesback to summary
pack-priv PreferencesService preferences
Annotations
@Inject

Constructor Detail

LibraryResourceback to summary
public LibraryResource()

Method Detail

getBibtexback to summary
public Response getBibtex(String id)
Annotations
@GET
@Produces:application/x-bibtex
getClsItemJsonback to summary
public String getClsItemJson(String id)
Annotations
@GET
@Produces:application/x-bibtex-library-csl+json
getJsonback to summary
public String getJson(String id)
Annotations
@GET
@Produces:application/json
getLibraryPathback to summary
private Path getLibraryPath(String id)
getParserResultback to summary
private ParserResult getParserResult(String id)