概要 | パッケージ | クラス | 使用 | 階層ツリー | 非推奨 API | 索引 | ヘルプ
| UDK 3.1.0 Java API Reference
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド

## com.sun.star.lib.uno.helper
クラス UnoUrl

    java.lang.Object
      |
      +--com.sun.star.lib.uno.helper.UnoUrl

public class UnoUrl
extends Object

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");`

メソッドの概要
`String` | `getConnection()` Returns the name of the connection of this Uno Url.
`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.
`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.

クラス java.lang.Object から継承したメソッド
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

メソッドの詳細

### getConnection

    public String getConnection()

  Returns the name of the connection of this Uno Url. Encoded characters are not allowed.

  戻り値:
    The connection name as string.

### getProtocol

    public String getProtocol()

  Returns the name of the protocol of this Uno Url. Encoded characters are not allowed.

  戻り値:
    The protocol name as string.

### getRootOid

    public String getRootOid()

  Return the object name. Encoded character are not allowed.

  戻り値:
    The object name as String.

### getProtocolParameters

    public HashMap getProtocolParameters()

  Returns the protocol parameters as a Hashmap with key/value pairs. Encoded characters like '%41' are decoded.

  戻り値:
    a HashMap with key/value pairs for protocol parameters.

### getConnectionParameters

    public HashMap getConnectionParameters()

  Returns the connection parameters as a Hashmap with key/value pairs. Encoded characters like '%41' are decoded.

  戻り値:
    a HashMap with key/value pairs for connection parameters.

### getProtocolParametersAsString

    public String getProtocolParametersAsString()

  Returns the raw specification of the protocol parameters. Encoded characters like '%41' are not decoded.

  戻り値:
    The uninterpreted protocol parameters as string.

### getConnectionParametersAsString

    public String getConnectionParametersAsString()

  Returns the raw specification of the connection parameters. Encoded characters like '%41' are not decoded.

  戻り値:
    The uninterpreted connection parameters as string.

### parseUnoUrl

    public static UnoUrl parseUnoUrl(String unoUrl)
                              throws IllegalArgumentException

  Parses the given Uno Url and returns an in memory object representation.

  パラメータ:
    `unoUrl` - The given uno URl as string.
  戻り値:
    Object representation of class UnoUrl.
  例外:
    `IllegalArgumentException` - if Url cannot be parsed.
    `IllegalArgumentException`

概要 | パッケージ | クラス | 使用 | 階層ツリー | 非推奨 API | 索引 | ヘルプ
| UDK 3.1.0 Java API Reference
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド