You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
841 B
36 lines
841 B
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 XComponentContext getComponentContext(){
|
|
|
|
return componentContext;
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|