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.Logger
logger
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractOpenOfficeConnection(java.lang.String connectionString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect()
void
disconnect()
void
disposing(com.sun.star.lang.EventObject event)
com.sun.star.bridge.XBridge
getBridge()
com.sun.star.uno.XComponentContext
getComponentContext()
com.sun.star.frame.XComponentLoader
getDesktop()
com.sun.star.ucb.XFileIdentifierConverter
getFileContentProvider()
com.sun.star.lang.XMultiComponentFactory
getRemoteServiceManager()
boolean
isConnected()
-
-
-
Method Detail
-
connect
public void connect() throws java.net.ConnectException
- Specified by:
connect
in interfaceOpenOfficeConnection
- Throws:
java.net.ConnectException
-
disconnect
public void disconnect()
- Specified by:
disconnect
in interfaceOpenOfficeConnection
-
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interfaceOpenOfficeConnection
-
disposing
public void disposing(com.sun.star.lang.EventObject event)
- Specified by:
disposing
in interfacecom.sun.star.lang.XEventListener
-
getDesktop
public com.sun.star.frame.XComponentLoader getDesktop()
- Specified by:
getDesktop
in interfaceOpenOfficeConnection
- Returns:
- the com.sun.star.frame.Desktop service
-
getFileContentProvider
public com.sun.star.ucb.XFileIdentifierConverter getFileContentProvider()
- Specified by:
getFileContentProvider
in interfaceOpenOfficeConnection
- Returns:
- the com.sun.star.ucb.FileContentProvider service
-
getBridge
public com.sun.star.bridge.XBridge getBridge()
- Specified by:
getBridge
in interfaceOpenOfficeConnection
-
getRemoteServiceManager
public com.sun.star.lang.XMultiComponentFactory getRemoteServiceManager()
- Specified by:
getRemoteServiceManager
in interfaceOpenOfficeConnection
-
getComponentContext
public com.sun.star.uno.XComponentContext getComponentContext()
- Specified by:
getComponentContext
in interfaceOpenOfficeConnection
-
-