HPInc / jipp

A Java-compatible implementation of IPP
MIT License
153 stars 42 forks source link

Return job-constraint-supported and job-resolvers-supported attributes #112

Closed HPRoss closed 3 years ago

HPRoss commented 3 years ago

I have an interest in having the attributes returned for two ipp responses if they are available from a printer.

job-resolvers-supported and job-constraints-supported per PWG 5100.7-2019 https://ftp.pwg.org/pub/pwg/candidates/cs-ippjobext20-20190816-5100.7.pdf

Acceptance Criteria

GladeDiviney commented 3 years ago

For a workaround, see https://github.com/HPInc/jipp/tree/issue112 particularly the following files:

AttributeCollectionConverterBase.kt

https://github.com/HPInc/jipp/blob/d093b21816b3ff7fbc61392c09893820160d539c/jipp-core/src/test/java/com/hp/jipp/encoding/CollectionTest.java#L59

jipp-core/src/test/java/com/hp/jipp/encoding/CustomJobResolversSupported.java

Notes:

Overall: this is a hack, and needs to be better supported in the type itself. So this issue should remain open until a real fix is in place.