public class BootstrapConnector
extends java.lang.Object
| Constructor and Description |
|---|
BootstrapConnector(OOoServer oooServer)
Constructs a bootstrap connector which connects to the specified
OOo server.
|
BootstrapConnector(java.lang.String oooExecFolder)
Constructs a bootstrap connector which uses the folder of the OOo
installation containing the soffice executable.
|
| Modifier and Type | Method and Description |
|---|---|
static com.sun.star.uno.XComponentContext |
bootstrap(java.lang.String oooExecFolder,
java.lang.String oooAcceptOption,
java.lang.String oooConnectionString)
Bootstraps a connection to an OOo server in the specified soffice
executable folder of the OOo installation using the specified accept
option and connection string and returns a component context for using
the connection to the OOo server.
|
com.sun.star.uno.XComponentContext |
connect(java.lang.String oooAcceptOption,
java.lang.String oooConnectionString)
Connects to an OOo server using the specified accept option and
connection string and returns a component context for using the
connection to the OOo server.
|
void |
disconnect()
Disconnects from an OOo server using the connection string from the
previous connect.
|
public BootstrapConnector(java.lang.String oooExecFolder)
oooExecFolder - The folder of the OOo installation containing the soffice executablepublic BootstrapConnector(OOoServer oooServer)
oooServer - The OOo serverpublic com.sun.star.uno.XComponentContext connect(java.lang.String oooAcceptOption,
java.lang.String oooConnectionString)
throws com.sun.star.comp.helper.BootstrapException
oooAcceptOption - The accept optionoooConnectionString - The connection stringcom.sun.star.comp.helper.BootstrapExceptionpublic void disconnect()
public static final com.sun.star.uno.XComponentContext bootstrap(java.lang.String oooExecFolder,
java.lang.String oooAcceptOption,
java.lang.String oooConnectionString)
throws com.sun.star.comp.helper.BootstrapException
oooExecFolder - The folder of the OOo installation containing the soffice executableoooAcceptOption - The accept optionoooConnectionString - The connection stringcom.sun.star.comp.helper.BootstrapException