1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import com.sun.star.bridge.XBridge;
- import com.sun.star.lang.XMultiComponentFactory;
- import com.sun.star.uno.XComponentContext;
- public class DokeosSocketOfficeConnection extends AbstractDokeosOpenOfficeConnection {
-
- public static final String DEFAULT_HOST = "localhost";
- public static final int DEFAULT_PORT = 8100;
- public DokeosSocketOfficeConnection() {
- this(DEFAULT_HOST, DEFAULT_PORT);
- }
- public DokeosSocketOfficeConnection(int port) {
- this(DEFAULT_HOST, port);
- }
- public DokeosSocketOfficeConnection(String host, int port) {
- super("socket,host=" + host + ",port=" + port + ",tcpNoDelay=1");
- }
-
- public XMultiComponentFactory getServiceManager(){
-
- return serviceManager;
-
- }
-
- public XMultiComponentFactory getRemoteServiceManager(){
-
- return serviceManager;
-
- }
-
- public XBridge getBridge(){
-
- return bridge;
-
- }
-
- public XComponentContext getComponentContext(){
-
- return componentContext;
-
- }
-
-
- }
|