|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectag.ion.bion.officelayer.application.connection.SimpleConnection
public class SimpleConnection
This class handles connections to remote and local OpenOffice installations
| Field Summary | |
|---|---|
static int |
TYPE_LOCAL
Indicates a Local OO Installation. |
static int |
TYPE_REMOTE
Indicates a remote OO installation. |
| Constructor Summary | |
|---|---|
SimpleConnection(java.lang.String connectionString,
int port)
New NoaConnection instance, connects to OO using the given parameters. |
|
| Method Summary | |
|---|---|
static SimpleConnection |
getConnection()
Creates a connection, depending on the current local config. |
IDesktopService |
getDesktopService()
|
IDocumentService |
getDocumentService()
|
int |
getType()
-1 indicates no connection. |
static void |
startOOServerIfNotRunning(java.lang.String path,
int port)
Tries to start OO in headless server mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_LOCAL
public static final int TYPE_REMOTE
| Constructor Detail |
|---|
public SimpleConnection(java.lang.String connectionString,
int port)
throws java.lang.Exception
connectionString - The connection String. Can be a Path or an IPport - The port to connect to. A port value of zero (0) indicates a local connection
java.lang.Exception - If any Exception is thrown during the connection attempt| Method Detail |
|---|
public static SimpleConnection getConnection()
public int getType()
public IDocumentService getDocumentService()
public IDesktopService getDesktopService()
public static void startOOServerIfNotRunning(java.lang.String path,
int port)
Give it at least 3-4 seconds before attempting to use the server.
path - The path where the OO installation residesport - The port the server shall listen to
java.io.IOException
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||