com.jurismarches.vradi.services.ooo
Class BootstrapSocketConnector

java.lang.Object
  extended by com.jurismarches.vradi.services.ooo.BootstrapConnector
      extended by com.jurismarches.vradi.services.ooo.BootstrapSocketConnector

public class BootstrapSocketConnector
extends BootstrapConnector

A Bootstrap Connector which uses a socket to connect to an OOo server.


Constructor Summary
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.
 
Method Summary
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.
 
Methods inherited from class com.jurismarches.vradi.services.ooo.BootstrapConnector
bootstrap, connect, disconnect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootstrapSocketConnector

public BootstrapSocketConnector(java.lang.String oooExecFolder)
Constructs a bootstrap socket connector which uses the folder of the OOo installation containing the soffice executable.

Parameters:
oooExecFolder - The folder of the OOo installation containing the soffice executable

BootstrapSocketConnector

public BootstrapSocketConnector(OOoServer oooServer)
Constructs a bootstrap socket connector which connects to the specified OOo server.

Parameters:
oooServer - The OOo server
Method Detail

connect

public com.sun.star.uno.XComponentContext connect()
                                           throws com.sun.star.comp.helper.BootstrapException
Connects to an OOo server using a default socket and returns a component context for using the connection to the OOo server.

Returns:
The component context
Throws:
com.sun.star.comp.helper.BootstrapException

connect

public com.sun.star.uno.XComponentContext connect(java.lang.String host,
                                                  int port)
                                           throws com.sun.star.comp.helper.BootstrapException
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.

Parameters:
host - The host
port - The port
Returns:
The component context
Throws:
com.sun.star.comp.helper.BootstrapException

bootstrap

public static final com.sun.star.uno.XComponentContext bootstrap(java.lang.String oooExecFolder)
                                                          throws com.sun.star.comp.helper.BootstrapException
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.

Parameters:
oooExecFolder - The folder of the OOo installation containing the soffice executable
Returns:
The component context
Throws:
com.sun.star.comp.helper.BootstrapException

bootstrap

public 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
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.

Parameters:
oooExecFolder - The folder of the OOo installation containing the soffice executable
host - The host
port - The port
Returns:
The component context
Throws:
com.sun.star.comp.helper.BootstrapException


Copyright © 2009-2010 JurisMarches. All Rights Reserved.