|
UDK 3.2.7 Java API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.star.lib.uno.helper.UnoUrl
public class UnoUrl
Object representation and parsing of Uno Urls,
which allow to locate a named Uno object in a
different process. An Uno Url consists of the
specification of a connection, protocol and
rootOid delimited with a ';'.
The syntax of an Uno Url is
[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");
Method Summary | |
---|---|
String |
getConnection()
Returns the name of the connection of this Uno Url. |
String |
getConnectionAndParametersAsString()
Returns the raw specification of the connection name and parameters. |
HashMap |
getConnectionParameters()
Returns the connection parameters as a Hashmap 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. |
HashMap |
getProtocolParameters()
Returns the protocol parameters as a Hashmap with key/value pairs. |
String |
getProtocolParametersAsString()
Returns the raw specification of the protocol parameters. |
String |
getRootOid()
Return the object name. |
static UnoUrl |
parseUnoUrl(String unoUrl)
Parses the given Uno Url and returns an in memory object representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getConnection()
public String getProtocol()
public String getRootOid()
public HashMap getProtocolParameters()
public HashMap getConnectionParameters()
public String getProtocolParametersAsString()
public String getConnectionParametersAsString()
public String getProtocolAndParametersAsString()
public String getConnectionAndParametersAsString()
public static UnoUrl parseUnoUrl(String unoUrl) throws IllegalArgumentException
unoUrl
- The given uno URl as string.
IllegalArgumentException
- if Url cannot be parsed.
IllegalArgumentException
|
UDK 3.2.7 Java API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |