public class OfficeUrl
extends java.lang.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(java.lang.String pipeName)
Creates an OfficeUrl for the specified pipe.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConnection()
Returns the name of the connection of this Uno Url.
|
java.lang.String |
getConnectionAndParametersAsString()
Returns the raw specification of the connection name and parameters.
|
java.util.Map<java.lang.String,java.lang.String> |
getConnectionParameters()
Returns the connection parameters as a map with key/value pairs.
|
java.lang.String |
getConnectionParametersAsString()
Returns the raw specification of the connection parameters.
|
java.lang.String |
getProtocol()
Returns the name of the protocol of this Uno Url.
|
java.lang.String |
getProtocolAndParametersAsString()
Returns the raw specification of the protocol name and parameters.
|
java.util.Map<java.lang.String,java.lang.String> |
getProtocolParameters()
Returns the protocol parameters as a map with key/value pairs.
|
java.lang.String |
getProtocolParametersAsString()
Returns the raw specification of the protocol parameters.
|
java.lang.String |
getRootOid()
Return the object name.
|
public OfficeUrl(java.lang.String pipeName)
pipeName
- The pipe name.public OfficeUrl(int port)
port
- The port.public java.lang.String getConnection()
public java.lang.String getProtocol()
public java.lang.String getRootOid()
public java.util.Map<java.lang.String,java.lang.String> getProtocolParameters()
public java.util.Map<java.lang.String,java.lang.String> getConnectionParameters()
public java.lang.String getProtocolParametersAsString()
public java.lang.String getConnectionParametersAsString()
public java.lang.String getProtocolAndParametersAsString()
public java.lang.String getConnectionAndParametersAsString()