---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Processor API components

# Processor API components {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Processors have access to dedicated API classes, objects, and methods.
{#r_ProcessorAPIComponents__table_ProcessorAPIComponents__entry__2}

| Class, object, or method | Description |
|-|-|
| `g_response` | An object of type HttpServletResponse. See [GlideServletResponse](https://servicenow-prod.fluidtopics.net/xG7BAuhoGbuikZlLyI6gmg#c_GlideServletResponseScopedAPI "The GlideServletResponse API provides methods to use in processor scripts."). |
| `setContentType('text/html;charset=UTF-8')` | A [GlideServletResponse](https://servicenow-prod.fluidtopics.net/xG7BAuhoGbuikZlLyI6gmg#c_GlideServletResponseScopedAPI "The GlideServletResponse API provides methods to use in processor scripts.") method to set the content type of the response being sent to the client. |
| `g_request` | An object of type HttpServletRequest. See [HttpServletRequest](https://servicenow-prod.fluidtopics.net/eX4Cc7ou5PREnJ7YbvewQA#c_GlideServletRequestScopedAPI "The GlideServletRequest API provides methods to use in processor scripts."). |
| `getParameter()` | A glide method to get the value of a URL parameter. |
| `canRead()` | A GlideRecord method to determine if the user can read data from a table. See [GlideRecord](https://servicenow-prod.fluidtopics.net/Z64TK~kWnpWTEG5bCPvZuQ#c_GlideRecordScopedAPI "The scoped GlideRecord API is used for database operations."). |
| `g_processor` | A simplified servlet for processors. See [GlideScriptedProcessor](https://servicenow-prod.fluidtopics.net/FM8S4JPhgGwvmk7~rJy5AQ#c_GlideScriptedProcessorScopedAPI "The GlideScriptedProcessor API provides a customizable URL endpoint that can execute arbitrary server-side JavaScript code and produce output such as TEXT, JSON, or HTML. ServiceNow processors are equivalent to Java servlets."). |
| `writeOutput()` | A [GlideScriptedProcessor](https://servicenow-prod.fluidtopics.net/FM8S4JPhgGwvmk7~rJy5AQ#c_GlideScriptedProcessorScopedAPI "The GlideScriptedProcessor API provides a customizable URL endpoint that can execute arbitrary server-side JavaScript code and produce output such as TEXT, JSON, or HTML. ServiceNow processors are equivalent to Java servlets.") method to display information on the client. |
| `g_target` | An object containing the target table name of a processor URL. For example, a processor containing the URI incident.do applies to the Incident table. |
[Table 1. Processor API components]

{#r_ProcessorAPIComponents__table_ProcessorAPIComponents}

