src/solaris/classes/sun/print/CUPSPrinter.java

Print this page

        

*** 250,259 **** --- 250,260 ---- doPrivileged(new java.security.PrivilegedAction() { public Object run() { try { return urlConnection.getOutputStream(); } catch (Exception e) { + IPPPrintService.debug_println(debugPrefix+e); } return null; } });
*** 280,289 **** --- 281,293 ---- is); is.close(); if (responseMap != null && responseMap.length > 0) { defaultMap = responseMap[0]; + } else { + IPPPrintService.debug_println(debugPrefix+ + " empty response map for GET_DEFAULT."); } if (defaultMap == null) { os.close(); urlConnection.disconnect();
*** 308,318 **** AttributeClass attribClass = (AttributeClass) defaultMap.get("printer-name"); if (attribClass != null) { printerInfo[0] = attribClass.getStringValue(); ! attribClass = (AttributeClass)defaultMap.get("device-uri"); if (attribClass != null) { printerInfo[1] = attribClass.getStringValue(); } else { printerInfo[1] = null; } --- 312,325 ---- AttributeClass attribClass = (AttributeClass) defaultMap.get("printer-name"); if (attribClass != null) { printerInfo[0] = attribClass.getStringValue(); ! attribClass = (AttributeClass) ! defaultMap.get("printer-uri-supported"); ! IPPPrintService.debug_println(debugPrefix+ ! "printer-uri-supported="+attribClass); if (attribClass != null) { printerInfo[1] = attribClass.getStringValue(); } else { printerInfo[1] = null; }