Skip to content

Commit

Permalink
make attributes publicly accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuth committed Nov 1, 2023
1 parent 37de758 commit c797b96
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/kotlin/de/gmuth/ipp/client/IppClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ import java.net.HttpURLConnection
import java.net.URI
import java.util.concurrent.atomic.AtomicInteger
import java.util.logging.Level.SEVERE
import java.util.logging.Logger
import java.util.logging.Logger.getLogger
import javax.net.ssl.HostnameVerifier
import javax.net.ssl.HttpsURLConnection

typealias IppResponseInterceptor = (request: IppRequest, response: IppResponse) -> Unit

open class IppClient(val config: IppConfig = IppConfig()) : IppExchange {
protected val log = getLogger(javaClass.name)
protected val log: Logger = getLogger(javaClass.name)

var responseInterceptor: IppResponseInterceptor? = null
var saveMessages: Boolean = false
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/de/gmuth/ipp/client/IppDocument.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import kotlin.io.path.createTempDirectory

class IppDocument(
val job: IppJob,
private val attributes: IppAttributesGroup,
val attributes: IppAttributesGroup,
private val inputStream: InputStream
) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import java.util.logging.Logger

class IppEventNotification(
val subscription: IppSubscription,
private val attributes: IppAttributesGroup
val attributes: IppAttributesGroup
) {

val sequenceNumber: Int
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/de/gmuth/ipp/client/IppPrinter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import kotlin.io.path.createTempDirectory
@SuppressWarnings("kotlin:S1192")
class IppPrinter(
val printerUri: URI,
internal val attributes: IppAttributesGroup = IppAttributesGroup(Printer),
val attributes: IppAttributesGroup = IppAttributesGroup(Printer),
ippConfig: IppConfig = IppConfig(),
internal val ippClient: IppClient = IppClient(ippConfig),
getPrinterAttributesOnInit: Boolean = true,
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/de/gmuth/ipp/client/IppSubscription.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import java.util.logging.Logger.getLogger

class IppSubscription(
val printer: IppPrinter,
private val attributes: IppAttributesGroup
val attributes: IppAttributesGroup
) : IppExchange by printer {

private val log = getLogger(javaClass.name)
Expand Down

0 comments on commit c797b96

Please sign in to comment.