---
title: MediaType object reference
description: Access the MediaType object.
component: pingaccess
version: 9.0
page_id: pingaccess:reference_guides:pa_mediatype_object_ref
canonical_url: https://docs.pingidentity.com/pingaccess/9.0/reference_guides/pa_mediatype_object_ref.html
revdate: February 6, 2023
section_ids:
  method-summary: Method summary
---

# MediaType object reference

Access the MediaType object.

## Method summary

| Method                        | Description                                                     |
| ----------------------------- | --------------------------------------------------------------- |
| `Map getParameters()`         | Returns a list of parameters.                                   |
| `String getBaseType()`        | Returns the media base type.                                    |
| `String getSubType()`         | Returns the media sub type.                                     |
| `String getParameter(String)` | Returns a string containing the value of the request parameter. |
| `String getPrimaryType()`     | Returns the primary media type.                                 |
