Package com.sun.star.lib.uno.helper
Class UnoUrl
java.lang.Object
com.sun.star.lib.uno.helper.UnoUrl
Object representation and parsing of Uno Urls,
 which allow to locate a named Uno object in a
 different process. A Uno Url consists of the
 specification of a connection, protocol and
 rootOid delimited with a ';'.
 The syntax of a 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("uno:socket,host=localhost,port=2002;urp;StarOffice.ServiceManager");
 - 
Method SummaryModifier and TypeMethodDescriptionReturns the name of the connection of this Uno Url.Returns the raw specification of the connection name and parameters.Returns the connection parameters as a Hashmap with key/value pairs.Returns the raw specification of the connection parameters.Returns the name of the protocol of this Uno Url.Returns the raw specification of the protocol name and parameters.Returns the protocol parameters as a Hashmap with key/value pairs.Returns the raw specification of the protocol parameters.Return the object name.static UnoUrlparseUnoUrl(String unoUrl) Parses the given Uno Url and returns an in memory object representation.
- 
Method Details- 
getConnectionReturns the name of the connection of this Uno Url. Encoded characters are not allowed.- Returns:
- The connection name as string.
 
- 
getProtocolReturns the name of the protocol of this Uno Url. Encoded characters are not allowed.- Returns:
- The protocol name as string.
 
- 
getRootOidReturn the object name. Encoded character are not allowed.- Returns:
- The object name as String.
 
- 
getProtocolParametersReturns the protocol parameters as a Hashmap with key/value pairs. Encoded characters like '%41' are decoded.- Returns:
- a HashMap with key/value pairs for protocol parameters.
 
- 
getConnectionParametersReturns the connection parameters as a Hashmap with key/value pairs. Encoded characters like '%41' are decoded.- Returns:
- a HashMap with key/value pairs for connection parameters.
 
- 
getProtocolParametersAsStringReturns the raw specification of the protocol parameters. Encoded characters like '%41' are not decoded.- Returns:
- The uninterpreted protocol parameters as string.
 
- 
getConnectionParametersAsStringReturns the raw specification of the connection parameters. Encoded characters like '%41' are not decoded.- Returns:
- The uninterpreted connection parameters as string.
 
- 
getProtocolAndParametersAsStringReturns the raw specification of the protocol name and parameters. Encoded characters like '%41' are not decoded.- Returns:
- The uninterpreted protocol name and parameters as string.
 
- 
getConnectionAndParametersAsStringReturns the raw specification of the connection name and parameters. Encoded characters like '%41' are not decoded.- Returns:
- The uninterpreted connection name and parameters as string.
 
- 
parseUnoUrlParses the given Uno Url and returns an in memory object representation.- Parameters:
- unoUrl- The given uno URl as string.
- Returns:
- Object representation of class UnoUrl.
- Throws:
- IllegalArgumentException- if Url cannot be parsed.
- IllegalArgumentException
 
 
-