24
24
package com.owncloud.android.lib.common.http.methods.webdav
25
25
26
26
import at.bitfire.dav4jvm.Dav4jvm.log
27
+ import at.bitfire.dav4jvm.DavOCResource
27
28
import at.bitfire.dav4jvm.exception.HttpException
28
29
import at.bitfire.dav4jvm.exception.RedirectException
29
30
import com.owncloud.android.lib.common.http.HttpConstants
@@ -43,11 +44,11 @@ import java.util.concurrent.TimeUnit
43
44
* @author David González Verdugo
44
45
*/
45
46
abstract class DavMethod protected constructor(url : URL ) : HttpBaseMethod(url) {
46
- protected var mDavResource: OCDavResource
47
+ protected var mDavResource: DavOCResource
47
48
48
49
init {
49
50
val httpUrl = url.toHttpUrlOrNull() ? : throw MalformedURLException ()
50
- mDavResource = OCDavResource (
51
+ mDavResource = DavOCResource (
51
52
okHttpClient,
52
53
httpUrl,
53
54
log
@@ -95,7 +96,7 @@ abstract class DavMethod protected constructor(url: URL) : HttpBaseMethod(url) {
95
96
// Connection parameters
96
97
override fun setReadTimeout (readTimeout : Long , timeUnit : TimeUnit ) {
97
98
super .setReadTimeout(readTimeout, timeUnit)
98
- mDavResource = OCDavResource (
99
+ mDavResource = DavOCResource (
99
100
okHttpClient,
100
101
httpUrl,
101
102
log
@@ -107,7 +108,7 @@ abstract class DavMethod protected constructor(url: URL) : HttpBaseMethod(url) {
107
108
timeUnit : TimeUnit
108
109
) {
109
110
super .setConnectionTimeout(connectionTimeout, timeUnit)
110
- mDavResource = OCDavResource (
111
+ mDavResource = DavOCResource (
111
112
okHttpClient,
112
113
httpUrl,
113
114
log
@@ -116,7 +117,7 @@ abstract class DavMethod protected constructor(url: URL) : HttpBaseMethod(url) {
116
117
117
118
override fun setFollowRedirects (followRedirects : Boolean ) {
118
119
super .setFollowRedirects(followRedirects)
119
- mDavResource = OCDavResource (
120
+ mDavResource = DavOCResource (
120
121
okHttpClient,
121
122
httpUrl,
122
123
log
@@ -125,7 +126,7 @@ abstract class DavMethod protected constructor(url: URL) : HttpBaseMethod(url) {
125
126
126
127
override fun setUrl (url : HttpUrl ) {
127
128
super .setUrl(url)
128
- mDavResource = OCDavResource (
129
+ mDavResource = DavOCResource (
129
130
okHttpClient,
130
131
httpUrl,
131
132
log
@@ -134,7 +135,7 @@ abstract class DavMethod protected constructor(url: URL) : HttpBaseMethod(url) {
134
135
135
136
override fun setRequestHeader (name : String , value : String ) {
136
137
super .setRequestHeader(name, value)
137
- mDavResource = OCDavResource (
138
+ mDavResource = DavOCResource (
138
139
okHttpClient,
139
140
httpUrl,
140
141
log
@@ -150,7 +151,7 @@ abstract class DavMethod protected constructor(url: URL) : HttpBaseMethod(url) {
150
151
// ////////////////////////////
151
152
override fun setRetryOnConnectionFailure (retryOnConnectionFailure : Boolean ) {
152
153
super .setRetryOnConnectionFailure(retryOnConnectionFailure)
153
- mDavResource = OCDavResource (
154
+ mDavResource = DavOCResource (
154
155
okHttpClient,
155
156
httpUrl,
156
157
log
0 commit comments