public class OfficeUrl extends Object
OpenOffice.org supports two connection types: TCP sockets and named pipes. Named pipes are marginally faster and do not take up a TCP port, but they require native libraries, which means setting java.library.path when starting Java. E.g. on Linux
java -Djava.library.path=/opt/openoffice.org/ure/lib ...
See Opening a Connection and UNO Url - Specification in the OpenOffice.org Developer's Guide for more details.
| Constructor and Description |
|---|
OfficeUrl(int port)
Creates an OfficeUrl for the specified port.
|
OfficeUrl(String pipeName)
Creates an OfficeUrl for the specified pipe.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConnection()
Returns the name of the connection of this Uno Url.
|
String |
getConnectionAndParametersAsString()
Returns the raw specification of the connection name and parameters.
|
Map<String,String> |
getConnectionParameters()
Returns the connection parameters as a map with key/value pairs.
|
String |
getConnectionParametersAsString()
Returns the raw specification of the connection parameters.
|
String |
getProtocol()
Returns the name of the protocol of this Uno Url.
|
String |
getProtocolAndParametersAsString()
Returns the raw specification of the protocol name and parameters.
|
Map<String,String> |
getProtocolParameters()
Returns the protocol parameters as a map with key/value pairs.
|
String |
getProtocolParametersAsString()
Returns the raw specification of the protocol parameters.
|
String |
getRootOid()
Return the object name.
|
public OfficeUrl(String pipeName)
pipeName - The pipe name.public OfficeUrl(int port)
port - The port.public String getConnection()
public String getProtocol()
public String getRootOid()
public Map<String,String> getProtocolParameters()
public Map<String,String> getConnectionParameters()
public String getProtocolParametersAsString()
public String getConnectionParametersAsString()
public String getProtocolAndParametersAsString()
public String getConnectionAndParametersAsString()