Loading

QueryResource

QueryResource

This message specifies which resources are queried.

Syntax

XPath: /JMF/Command[@Type=”QueryResource”]/ResourceQuParams

Description

The current implementation only supports the resource "Media". The media catalogue is returned in the response to QueryResource when "ResourceQuParams" is not specified or when "./ResourceQuParams/@Classes" contains "Consumable" or "Media".

Example

<JMF>

<Query Type="Resource" xsi:type="QueryResource">

<ResourceQuParams Classes="Consumable Handling"/>

</JMF>

Response to "QueryResource"

For each media in the media catalogue, a unique Media node is added to the "ResourceInfo" node.

Syntax

XPath:/Response/ResourceInfo/Media/

Supported range

@Class

@DescriptiveName

@Dimension

@MediaType

@Status

@Thickness

@Weight

@ID

GeneralID[IDUsage="DeviceProductID"]/@IDValue

Example

<JMF>

<Response Type="Resource" ReturnCode="0">

<ResourceInfo>

<Media Class="Consumable"

DescriptiveName="TopColor White"

Dimension="612 792"

MediaType="Paper"

Status="Available"

Thickness="102"

Weight="100"

ID="Media_151117093659.127_0">

<GeneralID IDUsage="DeviceProductID" IDValue=".."/>

</Media>

</ResourceInfo>

</Response>

</JMF>