|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jurismarches.vradi.services.ooo.BootstrapConnector
public class BootstrapConnector
A bootstrap connector which establishes a connection to an OOo server. Most of the source code in this class has been taken from the Java class "Bootstrap.java" (Revision: 1.15) from the UDK projekt (Uno Software Develop- ment Kit) from OpenOffice.org (http://udk.openoffice.org/). The source code is available for example through a browser based online version control access at http://udk.openoffice.org/source/browse/udk/. The Java class "Bootstrap.java" is there available at http://udk.openoffice.org/source/browse/udk/javaunohelper/com/sun/star/comp/helper/Bootstrap.java?view=markup The idea to develop this BootstrapConnector comes from the blog "Getting started with the OpenOffice.org API part III : starting OpenOffice.org with jars not in the OOo install dir by Wouter van Reeven" (http://technology.amis.nl/blog/?p=1284) and from various posts in the "(Unofficial) OpenOffice.org Forum" at http://www.oooforum.org/ and the "OpenOffice.org Community Forum" at http://user.services.openoffice.org/ complaining about "no ooo executable found!".
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BootstrapConnector(java.lang.String oooExecFolder)
oooExecFolder - The folder of the OOo installation containing the soffice executablepublic BootstrapConnector(OOoServer oooServer)
oooServer - The OOo server| Method Detail |
|---|
public 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 string
com.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 string
com.sun.star.comp.helper.BootstrapException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||