Class AbstractOpenOfficeConnection
- java.lang.Object
-
- com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection
-
- All Implemented Interfaces:
OpenOfficeConnection,com.sun.star.lang.XEventListener,com.sun.star.uno.XInterface,java.util.EventListener
- Direct Known Subclasses:
PipeOpenOfficeConnection,SocketOpenOfficeConnection
public abstract class AbstractOpenOfficeConnection extends java.lang.Object implements OpenOfficeConnection, com.sun.star.lang.XEventListener
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOpenOfficeConnection(java.lang.String connectionString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()voiddisconnect()voiddisposing(com.sun.star.lang.EventObject event)com.sun.star.bridge.XBridgegetBridge()com.sun.star.uno.XComponentContextgetComponentContext()com.sun.star.frame.XComponentLoadergetDesktop()com.sun.star.ucb.XFileIdentifierConvertergetFileContentProvider()com.sun.star.lang.XMultiComponentFactorygetRemoteServiceManager()booleanisConnected()
-
-
-
Method Detail
-
connect
public void connect() throws java.net.ConnectException- Specified by:
connectin interfaceOpenOfficeConnection- Throws:
java.net.ConnectException
-
disconnect
public void disconnect()
- Specified by:
disconnectin interfaceOpenOfficeConnection
-
isConnected
public boolean isConnected()
- Specified by:
isConnectedin interfaceOpenOfficeConnection
-
disposing
public void disposing(com.sun.star.lang.EventObject event)
- Specified by:
disposingin interfacecom.sun.star.lang.XEventListener
-
getDesktop
public com.sun.star.frame.XComponentLoader getDesktop()
- Specified by:
getDesktopin interfaceOpenOfficeConnection- Returns:
- the com.sun.star.frame.Desktop service
-
getFileContentProvider
public com.sun.star.ucb.XFileIdentifierConverter getFileContentProvider()
- Specified by:
getFileContentProviderin interfaceOpenOfficeConnection- Returns:
- the com.sun.star.ucb.FileContentProvider service
-
getBridge
public com.sun.star.bridge.XBridge getBridge()
- Specified by:
getBridgein interfaceOpenOfficeConnection
-
getRemoteServiceManager
public com.sun.star.lang.XMultiComponentFactory getRemoteServiceManager()
- Specified by:
getRemoteServiceManagerin interfaceOpenOfficeConnection
-
getComponentContext
public com.sun.star.uno.XComponentContext getComponentContext()
- Specified by:
getComponentContextin interfaceOpenOfficeConnection
-
-