# URIAction Class

> A text string, typically a hyperlink.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/URIAction
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class URIAction : Action
```

**Namespace:** `com::datalogics::PDFL`

**Inherits from:** [`Action`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Action.md)

## Description

A text string, typically a hyperlink. A Uniform Resource Identifier (URI) is a text string that identifies a resource on the Internet, typically a hyperlink to a web page.

A URI Action within a PDF file allows a reader to click on a hyperlink and open a separate web page or another PDF or other kind of file accessed through a web link.

**Uses types:** [`Action`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Action.md), [`PDFDict`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PDFDict.md)

## Constructors

### URIAction

```java
com.datalogics.PDFL.URIAction.URIAction(String URIstring, boolean useMap)
```

*constructor*

**Parameters**

- `URIstring` (`String`): String for the URI
- `useMap` (`boolean`): Send mouse position with the URI

General constructor

## Methods

### delete

```java
synchronized void com.datalogics.PDFL.URIAction.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.URIAction.delete()
```

**Returns:** `synchronized void`

### equals

```java
boolean com.datalogics.PDFL.Action.equals(Object rhs)
```

**Parameters**

- `rhs` (`Object`)

**Returns:** `boolean`

### finalize

```java
void com.datalogics.PDFL.URIAction.finalize()
```

*protected*

**Returns:** `void`

### getIsMap

```java
boolean com.datalogics.PDFL.URIAction.getIsMap()
```

**Returns:** `boolean`

true if mouse coordinates will be sent with the URI, false otherwise.

Whether to include mouse coordinates with the URI. When true, the position of the mouse click that triggered the action is appended to the URI as a query parameter.

### getPDFDict

```java
PDFDict com.datalogics.PDFL.Action.getPDFDict()
```

**Returns:** [`PDFDict`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PDFDict.md)

The underlying PDF dictionary for this Action.

Retrieve the PDFObject representation of this object.

### getSubtype

```java
String com.datalogics.PDFL.Action.getSubtype()
```

**Returns:** `String`

The subtype string for this action, such as "GoTo", "URI", "Launch", or "GoToR".

The action's subtype.

### getURI

```java
String com.datalogics.PDFL.URIAction.getURI()
```

**Returns:** `String`

The Uniform Resource Identifier string for this action.

The URI string for this action.

### setIsMap

```java
void com.datalogics.PDFL.URIAction.setIsMap(boolean arg0)
```

**Parameters**

- `arg0` (`boolean`)

**Returns:** `void`

Set whether to include mouse coordinates with the URI.

### setURI

```java
void com.datalogics.PDFL.URIAction.setURI(String arg0)
```

**Parameters**

- `arg0` (`String`)

**Returns:** `void`

Set the URI string for this action.

### toString

```java
String com.datalogics.PDFL.Action.toString()
```

**Returns:** `String`

A string describing this Action.

Returns a string representation of this Action. The string includes the action's subtype.
