public class BootstrapSocketConnector extends BootstrapConnector
| Constructor and Description |
|---|
BootstrapSocketConnector(OOoServer oooServer)
Constructs a bootstrap socket connector which connects to the specified
OOo server.
|
BootstrapSocketConnector(java.lang.String oooExecFolder)
Constructs a bootstrap socket 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)
Bootstraps a connection to an OOo server in the specified soffice
executable folder of the OOo installation using a default socket and
returns a component context for using the connection to the OOo server.
|
static com.sun.star.uno.XComponentContext |
bootstrap(java.lang.String oooExecFolder,
java.lang.String host,
int port)
Bootstraps a connection to an OOo server in the specified soffice
executable folder of the OOo installation using the specified host and
port for the socket and returns a component context for using the
connection to the OOo server.
|
com.sun.star.uno.XComponentContext |
connect()
Connects to an OOo server using a default socket and returns a
component context for using the connection to the OOo server.
|
com.sun.star.uno.XComponentContext |
connect(java.lang.String host,
int port)
Connects to an OOo server using the specified host and port for the
socket and returns a component context for using the connection to the
OOo server.
|
bootstrap, connect, disconnectpublic BootstrapSocketConnector(java.lang.String oooExecFolder)
oooExecFolder - The folder of the OOo installation containing the soffice executablepublic BootstrapSocketConnector(OOoServer oooServer)
oooServer - The OOo serverpublic com.sun.star.uno.XComponentContext connect()
throws com.sun.star.comp.helper.BootstrapException
com.sun.star.comp.helper.BootstrapExceptionpublic com.sun.star.uno.XComponentContext connect(java.lang.String host,
int port)
throws com.sun.star.comp.helper.BootstrapException
host - The hostport - The portcom.sun.star.comp.helper.BootstrapExceptionpublic static final com.sun.star.uno.XComponentContext bootstrap(java.lang.String oooExecFolder)
throws com.sun.star.comp.helper.BootstrapException
oooExecFolder - The folder of the OOo installation containing the soffice executablecom.sun.star.comp.helper.BootstrapExceptionpublic static final com.sun.star.uno.XComponentContext bootstrap(java.lang.String oooExecFolder,
java.lang.String host,
int port)
throws com.sun.star.comp.helper.BootstrapException
oooExecFolder - The folder of the OOo installation containing the soffice executablehost - The hostport - The portcom.sun.star.comp.helper.BootstrapException