- All Implemented Interfaces:
FusekiActionCycle,FusekiBuildCycle,FusekiModule,FusekiServerArgsCustomiser,FusekiStartStop
Looks for an argument --shiro=file, and
in environment variable FUSEKI_SHIRO
(including via system proprties).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FMod_Shirocreate()name()A display name to identify this module.voidprepare(FusekiServer.Builder serverBuilder, Set<String> datasetNames, org.apache.jena.rdf.model.Model configModel) Determine the Shiro configuration file.voidserverArgsModify(org.apache.jena.cmd.CmdGeneral fusekiCmd, ServerArgs serverArgs) Called after the standard Fuseki main arguments have been added and before argument processing of the command line.voidserverArgsPrepare(org.apache.jena.cmd.CmdGeneral fusekiCmd, ServerArgs serverArgs) Called at the end command line argument processing.voidserverBeforeStarting(FusekiServer server) Server starting - called just before server.start happens.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.fuseki.main.sys.FusekiModule
configDataAccessPoint, configured, server, serverAfterStarting, serverConfirmReload, serverReload, serverStoppedMethods inherited from interface org.apache.jena.fuseki.main.sys.FusekiServerArgsCustomiser
serverArgsBuilder
-
Field Details
-
shiroConfigLog
public static final org.slf4j.Logger shiroConfigLog
-
-
Constructor Details
-
FMod_Shiro
public FMod_Shiro() -
FMod_Shiro
-
-
Method Details
-
name
Description copied from interface:FusekiModuleA display name to identify this module.This defaults to the Java simple class name of module.
- Specified by:
namein interfaceFusekiBuildCycle- Specified by:
namein interfaceFusekiModule
-
create
-
serverArgsModify
Description copied from interface:FusekiServerArgsCustomiserCalled after the standard Fuseki main arguments have been added and before argument processing of the command line. This allows a Fuseki module to add custom arguments viaCmdLineArgs.addArg(String, String)andCmdGeneral.addModule(org.apache.jena.cmd.ArgModuleGeneral).This method can throw
CmdExceptionto indicate errors. This will cause a error message to be printed, without the stack trace. The server construction is aborted.- Specified by:
serverArgsModifyin interfaceFusekiServerArgsCustomiser- Parameters:
fusekiCmd- Fuseki Main command line argumentsserverArgs- Initial setting before command line processing.
-
serverArgsPrepare
Description copied from interface:FusekiServerArgsCustomiserCalled at the end command line argument processing.This allows a Fuseki module to pull out custom arguments it has added and process them appropriately, including validating or modifying the
ServerArgsthat will be used to build the server. This method can set the set the dataset, in which case a command line dataset setup or configuration file server set up is not performed.This method can throw
CmdExceptionto indicate errors. This will cause a error message to be printed, without the stack trace. The server construction is aborted.- Specified by:
serverArgsPreparein interfaceFusekiServerArgsCustomiser- Parameters:
fusekiCmd- Fuseki MainserverArgs- Standard server argument settings, before building the server.
-
prepare
public void prepare(FusekiServer.Builder serverBuilder, Set<String> datasetNames, org.apache.jena.rdf.model.Model configModel) Determine the Shiro configuration file. This applies whether command line arguments used for programmatic setup.- Specified by:
preparein interfaceFusekiBuildCycle- Specified by:
preparein interfaceFusekiModule- Parameters:
serverBuilder- The FusekiServer.BuilderdatasetNames- The names of DataServices configured by API calls and configuration file.
-
serverBeforeStarting
Description copied from interface:FusekiModuleServer starting - called just before server.start happens.- Specified by:
serverBeforeStartingin interfaceFusekiModule- Specified by:
serverBeforeStartingin interfaceFusekiStartStop
-