---
title: MediaType object reference
description: Access the MediaType object.
component: pingaccess
version: 8.2
page_id: pingaccess:reference_guides:pa_mediatype_object_ref
canonical_url: https://docs.pingidentity.com/pingaccess/9.1/reference_guides/pa_mediatype_object_ref.html
llms_txt: https://docs.pingidentity.com/pingaccess/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: February 6, 2023
superseded_by: https://docs.pingidentity.com/pingaccess/9.1/reference_guides/pa_mediatype_object_ref.html
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.                                 |
