public class UnoUrl
extends java.lang.Object
[uno:]connection-type,parameters;protocol-name,parameters;objectname";
An example Uno Url will look like this:
socket,host=localhost,port=2002;urp;StarOffice.ServiceManager
For more information about Uno Url please consult
http://udk.openoffice.org/common/man/spec/uno-url.html
Usage:
UnoUrl url = UnoUrl.parseUnoUrl("socket,host=localhost,port=2002;urp;StarOffice.ServiceManager");
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.HashMap |
getConnectionParameters()
Returns the connection parameters as
a Hashmap 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.HashMap |
getProtocolParameters()
Returns the protocol parameters as
a Hashmap with key/value pairs.
|
java.lang.String |
getProtocolParametersAsString()
Returns the raw specification of the protocol
parameters.
|
java.lang.String |
getRootOid()
Return the object name.
|
static UnoUrl |
parseUnoUrl(java.lang.String unoUrl)
Parses the given Uno Url and returns
an in memory object representation.
|
public java.lang.String getConnection()
public java.lang.String getProtocol()
public java.lang.String getRootOid()
public java.util.HashMap getProtocolParameters()
public java.util.HashMap getConnectionParameters()
public java.lang.String getProtocolParametersAsString()
public java.lang.String getConnectionParametersAsString()
public java.lang.String getProtocolAndParametersAsString()
public java.lang.String getConnectionAndParametersAsString()
public static UnoUrl parseUnoUrl(java.lang.String unoUrl) throws com.sun.star.lang.IllegalArgumentException
unoUrl
- The given uno URl as string.java.lang.IllegalArgumentException
- if Url cannot be parsed.com.sun.star.lang.IllegalArgumentException