> For the complete documentation index, see [llms.txt](https://documentation.connexica.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.connexica.com/system-administration/extension-management.md).

# 18. Extension Management

## 06i. Extension Management

\[CXAIR]\(doc:Technical Documentation.CXAIR.WebHome) is pre-configured with adapters for the most common extension and MIME types. Administrators can further extend Indexing compatibility as new extension and MIME types are created.

An Indexing adapter is a custom Java class that enables \[CXAIR]\(doc:Technical Documentation.CXAIR.WebHome) to Index files in file systems or databases that have a particular extension type, such as .pdf or .html, or files on websites that have particular MIME types, such as "text/html" or "application/acrobat".

Creating either an **Extension Type** or **MIME Type** adapter is a three-stage process. First, the custom Java class must be created in the appropriate third-party application before being associated with an adapter type in CXAIR. The adapter can then be mapped to an extension or MIME type.

## Adapters

There are two adapter types that can be created: **Extension Type** and **MIME Type** adapters.

### Creating Adapters

{% stepper %}
{% step %}

#### Navigate to Adapter Management

Click **Setup**, **Extensions**, then **Adapters**.
{% endstep %}

{% step %}

#### Enter adapter details

Enter a **Name** and **Display Name** for the new adapter in the relevant textboxes, and enter the path of the custom Java class in the **Java Class Name** textbox.
{% endstep %}

{% step %}

#### Save or discard changes

Click **Create Adapter** to save the entries, or **Cancel** to discard changes.
{% endstep %}
{% endstepper %}

### Mapping Created Adapters

Once the relevant adapter has been created, it needs to be mapped in the relevant screen.

{% stepper %}
{% step %}

#### Navigate to the mapping screen

For **MIME Type** adapters, navigate to the MIME Mappings screen by clicking **Setup**, **Extensions**, then **MIME Mappings**.

For **Extension Type** adapters, navigate to the Extension Mappings screen by clicking **Setup**, **Extensions**, then **Extension Mappings**.
{% endstep %}

{% step %}

#### Map the adapter

Enter a name for the **MIME** or **Extension** type and select the entry created previously from the **Mapped Adaptor** drop-down list.
{% endstep %}

{% step %}

#### Save or discard changes

Click **Create** to save the entries, or click **Cancel** to discard the changes.
{% endstep %}
{% endstepper %}

## Jar Files

Custom .jar files can also be loaded into the system to extend Indexing compatibility.

{% stepper %}
{% step %}

#### Navigate to Jar Management

Click **Setup**, **Extensions**, then **Jars**.
{% endstep %}

{% step %}

#### Upload the .jar file

Click **Choose File**, select the required file from the file explorer, and click **Upload Jar** to upload the file and complete the process.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
While .jar files can also be added directly to the \[CXAIR]\(doc:Technical Documentation.CXAIR.WebHome) directory, they will be removed if the system is upgraded. To ensure imported .jar files do not get removed, always import the files using the Jar Management screen.
{% endhint %}
