-
- All Implemented Interfaces:
public class CupsClient extends IppClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCupsClient.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Map<String, IppPrinter>printerMapprivate final URIcupsUriprivate BooleansaveMessagesprivate FilesaveMessagesDirectoryprivate Function2<IppRequest, IppResponse, Unit>responseInterceptorprivate final Http.ConfighttpConfigprivate final IppConfigconfigprivate final Http.ClienthttpClient
-
Constructor Summary
Constructors Constructor Description CupsClient(String host)CupsClient(URI cupsUri, IppConfig config, Http.Client httpClient)
-
Method Summary
Modifier and Type Method Description final Map<String, IppPrinter>getPrinterMap()final URIgetCupsUri()final Collection<IppPrinter>getPrinters()final IppPrintergetPrinter(String name)final IppPrintergetDefault()final IppResponsesetDefault(URI defaultPrinterUri)-
Methods inherited from class de.gmuth.ipp.client.IppClient
basicAuth, decodeIppResponse, exchange, getConfig, getHttpClient, getHttpConfig, getResponseInterceptor, getSaveMessages, getSaveMessagesDirectory, httpPostRequest, ippRequest, setResponseInterceptor, setSaveMessages, setSaveMessagesDirectory, toHttpUri -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CupsClient
CupsClient(String host)
-
CupsClient
CupsClient(URI cupsUri, IppConfig config, Http.Client httpClient)
-
-
Method Detail
-
getPrinterMap
final Map<String, IppPrinter> getPrinterMap()
-
getCupsUri
final URI getCupsUri()
-
getPrinters
final Collection<IppPrinter> getPrinters()
-
getPrinter
final IppPrinter getPrinter(String name)
-
getDefault
final IppPrinter getDefault()
-
setDefault
final IppResponse setDefault(URI defaultPrinterUri)
-
-
-
-