Class Connect
java.lang.Object
org.eclipse.rdf4j.console.command.ConsoleCommand
org.eclipse.rdf4j.console.command.Connect
Connect command
- Author:
- dale
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.console.command.ConsoleCommand
LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionConnect(ConsoleIO consoleIO, ConsoleState state, Disconnect disconnect) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanConnect to default repositorybooleanconnectLocal(String path) Connect to local repositorybooleanconnectRemote(String url) Connect to remote repository without username of passwordvoidExecute the given parameters.Get long descriptionGet short description, small enough to fit on one console rowgetName()Get the name of the commandMethods inherited from class org.eclipse.rdf4j.console.command.ConsoleCommand
askProceed, getConsoleIO, getConsoleSettings, getConsoleState, usesSettings, write, writeError, writeError, writeInfo, writeln, writeUnopenedError
-
Constructor Details
-
Connect
Constructor- Parameters:
consoleIO-state-disconnect-
-
-
Method Details
-
getName
Description copied from interface:HelpGet the name of the command- Returns:
- string
-
getHelpShort
Description copied from class:ConsoleCommandGet short description, small enough to fit on one console row- Specified by:
getHelpShortin interfaceHelp- Overrides:
getHelpShortin classConsoleCommand- Returns:
- help string
-
getHelpLong
Description copied from class:ConsoleCommandGet long description- Specified by:
getHelpLongin interfaceHelp- Overrides:
getHelpLongin classConsoleCommand- Returns:
- string, can be multiple lines
-
execute
Description copied from interface:CommandExecute the given parameters.- Specified by:
executein interfaceCommand- Overrides:
executein classConsoleCommand- Parameters:
tokens- parameters typed by user
-
connectDefault
public boolean connectDefault()Connect to default repository- Returns:
- true if connected
-
connectLocal
Connect to local repository- Parameters:
path- directory of the local repository- Returns:
- true on success
-
connectRemote
Connect to remote repository without username of password- Parameters:
url- URL of the repository- Returns:
- true on success
-