The sections below describe the lookup scheme used to find Jini Print Service instances in the JLUS. The lookup scheme consists of service interfaces and service attributes.
Some service interfaces are mandatorily implemented by all Jini Print Service instances. Other service interfaces are optional and implemented only if the Jini Print Service instance supports that capability.
The service attributes fall into four categories: general attributes, supported print data formats, supported printing attributes, and supported locales.
The PrinterName and PDLOverrideSupported fields are mandatory and must always be set to non-null values. The remaining fields are optional and may be set to null to indicate "not specified." However, if the PagesPerMinuteColor field is set to a non-null value, the ColorSupported field must be set to a value of SUPPORTED.
Each Jini Print Service instance may optionally register the following standard Jini service attributes, filling in all fields with the proper values for the printer. If present, the standard Jini service attributes should include the same information as the PrinterDescriptionEntry.
The PrinterDescriptionEntry is included so printing client applications can use the printing attribute classes to search for Jini Print Service instances. The service attributes from package net.jini.lookup.entry are included so generic Jini service browsing applications (which may know about the standard Jini service attributes but may not know about the PrinterDescriptionEntry) can search for Jini Print Service instances.
To indicate which standard or vendor-supplied printing attributes and printing attribute values it supports, a Jini Print Service instance must register a separate service attribute of class AttributeEntry for each supported printing attribute value. The Media attribute, however, is handled differently. A Jini Print Service instance must register a separate service attribute of class MediaEntry for each supported media attribute value.
For each printing attribute a client can request for a print job, the table below indicates the printing attribute class; whether supporting the printing attribute is mandatory or optional; and the requirements for registering an AttributeEntry or MediaEntry instance or instances for the printing attribute values. See the printing attribute class's documentation for further information on whether the attribute is mandatory or optional and which attribute values are mandatory or optional.
| Printing Attribute Class | Mandatory or Optional Support | Entry Requirements |
|---|---|---|
| Chromaticity | Optional | If supported, one AttributeEntry registered for each supported chromaticity value |
| Compression | Mandatory | One AttributeEntry registered for each supported compression value |
| Copies | Optional | If supported, a single AttributeEntry registered containing a CopiesSupported attribute with the supported copies values |
| DocumentName | Mandatory | Not registered in the JLUS; all values supported |
| FinishingsBinding | Optional | If supported, one AttributeEntry registered for each supported finishings binding value |
| FinishingsCover | Optional | If supported, one AttributeEntry registered for each supported finishings cover value |
| JobHoldUntil | Optional | If supported, a single AttributeEntry registered containing the JobHoldUntil category and a wildcarded value to indicate all values supported |
| JobImpressions | Optional | If supported, a single AttributeEntry registered containing a JobImpressionsSupported attribute with the supported job impressions values |
| JobKOctets | Optional | If supported, a single AttributeEntry registered containing a JobKOctetsSupported attribute with the supported job K octets values |
| JobMediaSheets | Optional | If supported, a single AttributeEntry registered containing a JobMediaSheetsSupported attribute with the supported job media sheets values |
| JobName | Mandatory | Not registered in the JLUS; all values supported |
| JobPriority | Optional | If supported, a single AttributeEntry registered containing a JobPrioritySupported attribute with the number of supported priority levels |
| JobSheets | Optional | If supported, one AttributeEntry registered for each supported job sheets value |
| Media | Optional | If supported, one MediaEntry registered for each supported media value |
| MinimumPrinterResolution | Optional [1] | Not registered in the JLUS; see PrinterResolution |
| MultipleDocumentHandling | Optional [2] | If supported, one AttributeEntry registered for each supported multiple document handling value |
| NumberUp | Optional | If supported, a single AttributeEntry registered containing a NumberUpSupported attribute with the supported number up values |
| OrientationRequested | Optional | If supported, one AttributeEntry registered for each supported orientation requested value |
| PageRanges | Optional | If supported, a single AttributeEntry registered containing the PageRanges category and a wildcarded value to indicate all values supported |
| PrinterResolution | Optional | If supported, one AttributeEntry registered for each supported printer resolution value |
| PrintQuality | Optional | If supported, one AttributeEntry registered for each supported print quality value |
| ReferenceUriScheme | Optional | If doc flavors with a print data representation class
of "java.net.URL" are supported,
one AttributeEntry registered for each acceptable URI scheme |
| RequestingUserName | Mandatory | Not registered in the JLUS; all values supported |
| SheetCollate | Optional | If supported, one AttributeEntry registered for each supported sheet collation value |
| Sides | Optional | If supported, one AttributeEntry registered for each supported sides value |
Notes:
If a Jini Print Service instance supports the optional capability of generating localized strings, then the Jini Print Service instance must register a separate service attribute of class LocaleEntry for each supported locale. This lets a client search for a printer that can generate localized strings for a specific locale.
If a Jini Print Service instance does not support the optional capability of generating localized strings, then the Jini Print Service instance must not register any service attributes of class LocaleEntry.
DRAFT STANDARD VERSION 1.0 (23-MAY-2000)