Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import java.util.logging.Logger
*
* Usage: Set as authenticator *and* as network interceptor.
*/
@Deprecated("Use Ktor's built-in authentication mechanisms instead. See at.bitfire.dav4jvm.ktor package.")
class BasicDigestAuthHandler(
/** Authenticate only against hosts ending with this domain (may be null, which means no restriction) */
val domain: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ package at.bitfire.dav4jvm.okhttp

import okhttp3.Response

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.CallbackInterfaces"))
/**
* Callback for the OPTIONS request.
*/
fun interface CapabilitiesCallback {
fun onCapabilities(davCapabilities: Set<String>, response: Response)
}

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.CallbackInterfaces"))
/**
* Callback for 207 Multi-Status responses.
*/
Expand All @@ -36,6 +38,7 @@ fun interface MultiResponseCallback {
fun onResponse(response: at.bitfire.dav4jvm.okhttp.Response, relation: at.bitfire.dav4jvm.okhttp.Response.HrefRelation)
}

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.CallbackInterfaces"))
/**
* Callback for HTTP responses.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import okhttp3.RequestBody.Companion.toRequestBody
import java.io.StringWriter
import java.util.logging.Logger

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.DavAddressBook"))
@Suppress("unused")
class DavAddressBook @JvmOverloads constructor(
httpClient: OkHttpClient,
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/at/bitfire/dav4jvm/okhttp/DavCalendar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import java.time.format.DateTimeFormatter
import java.util.Locale
import java.util.logging.Logger

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.DavCalendar"))
@Suppress("unused")
class DavCalendar @JvmOverloads constructor(
httpClient: OkHttpClient,
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/at/bitfire/dav4jvm/okhttp/DavCollection.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import java.util.logging.Logger
/**
* Represents a WebDAV collection.
*/
@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.DavCollection"))
open class DavCollection @JvmOverloads constructor(
httpClient: OkHttpClient,
location: HttpUrl,
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/at/bitfire/dav4jvm/okhttp/DavResource.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ import at.bitfire.dav4jvm.okhttp.Response as DavResponse
* @param location location of the WebDAV resource
* @param logger will be used for logging
*/
@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.DavResource"))
open class DavResource @JvmOverloads constructor(
val httpClient: OkHttpClient,
location: HttpUrl,
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/at/bitfire/dav4jvm/okhttp/OkHttpUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ package at.bitfire.dav4jvm.okhttp
import okhttp3.HttpUrl
import okhttp3.Response

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.KtorHttpUtils"))
object OkHttpUtils {

/**
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/at/bitfire/dav4jvm/okhttp/PropStat.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import java.util.LinkedList
*
* <!ELEMENT propstat (prop, status, error?, responsedescription?) >
*/
@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.PropStat"))
data class PropStat(
val properties: List<Property>,
val status: StatusLine,
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/at/bitfire/dav4jvm/okhttp/Response.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import java.util.logging.Logger
* <!ELEMENT response (href, ((href*, status)|(propstat+)),
* error?, responsedescription? , location?) >
*/
@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.Response"))
@Suppress("unused")
data class Response(
/**
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/at/bitfire/dav4jvm/okhttp/UrlUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import at.bitfire.dav4jvm.okhttp.UrlUtils.omitTrailingSlash
import at.bitfire.dav4jvm.okhttp.UrlUtils.withTrailingSlash
import okhttp3.HttpUrl

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.UrlUtils"))
object UrlUtils {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package at.bitfire.dav4jvm.okhttp.exception

import okhttp3.Response

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.exception.ConflictException"))
class ConflictException: HttpException {

constructor(response: Response) : super(response) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import javax.annotation.WillNotClose
* @param responseExcerpt cached excerpt of associated HTTP response body
* @param errors precondition/postcondition XML elements which have been found in the XML response
*/
@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.exception.DavException"))
open class DavException(
message: String? = null,
cause: Throwable? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package at.bitfire.dav4jvm.okhttp.exception

import okhttp3.Response

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.exception.ForbiddenException"))
class ForbiddenException: HttpException {

constructor(response: Response) : super(response) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package at.bitfire.dav4jvm.okhttp.exception

import okhttp3.Response

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.exception.GoneException"))
class GoneException: HttpException {

constructor(response: Response) : super(response) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import javax.annotation.WillNotClose
/**
* Signals that a HTTP error was sent by the server in the context of a WebDAV operation.
*/
@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.exception.HttpException"))
open class HttpException(
message: String? = null,
cause: Throwable? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import java.io.StringReader
import javax.annotation.WillNotClose
import kotlin.math.min

@Deprecated("Internal helper class. Use Ktor equivalents instead.")
internal class HttpResponseInfo private constructor(
val statusCode: Int,
val requestExcerpt: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package at.bitfire.dav4jvm.okhttp.exception

import okhttp3.Response

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.exception.NotFoundException"))
class NotFoundException : HttpException {

constructor(response: Response) : super(response) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package at.bitfire.dav4jvm.okhttp.exception

import okhttp3.Response

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.exception.PreconditionFailedException"))
class PreconditionFailedException: HttpException {

constructor(response: Response) : super(response) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import java.time.Instant
import java.util.logging.Level
import java.util.logging.Logger

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.exception.ServiceUnavailableException"))
class ServiceUnavailableException(response: Response) : HttpException(response) {

private val logger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package at.bitfire.dav4jvm.okhttp.exception

import okhttp3.Response

@Deprecated("Migrate to Ktor", ReplaceWith("at.bitfire.dav4jvm.ktor.exception.UnauthorizedException"))
class UnauthorizedException: HttpException {

constructor(response: Response) : super(response) {
Expand Down
Loading