CacheControl.smali 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. .class public final Lokhttp3/CacheControl;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/MemberClasses;
  6. value = {
  7. Lokhttp3/CacheControl$Builder;
  8. }
  9. .end annotation
  10. # static fields
  11. .field public static final FORCE_CACHE:Lokhttp3/CacheControl;
  12. .field public static final FORCE_NETWORK:Lokhttp3/CacheControl;
  13. # instance fields
  14. .field headerValue:Ljava/lang/String;
  15. .field private final immutable:Z
  16. .field private final isPrivate:Z
  17. .field private final isPublic:Z
  18. .field private final maxAgeSeconds:I
  19. .field private final maxStaleSeconds:I
  20. .field private final minFreshSeconds:I
  21. .field private final mustRevalidate:Z
  22. .field private final noCache:Z
  23. .field private final noStore:Z
  24. .field private final noTransform:Z
  25. .field private final onlyIfCached:Z
  26. .field private final sMaxAgeSeconds:I
  27. # direct methods
  28. .method static constructor <clinit>()V
  29. .locals 3
  30. new-instance v0, Lokhttp3/CacheControl$Builder;
  31. invoke-direct {v0}, Lokhttp3/CacheControl$Builder;-><init>()V
  32. invoke-virtual {v0}, Lokhttp3/CacheControl$Builder;->noCache()Lokhttp3/CacheControl$Builder;
  33. move-result-object v0
  34. invoke-virtual {v0}, Lokhttp3/CacheControl$Builder;->build()Lokhttp3/CacheControl;
  35. move-result-object v0
  36. sput-object v0, Lokhttp3/CacheControl;->FORCE_NETWORK:Lokhttp3/CacheControl;
  37. new-instance v0, Lokhttp3/CacheControl$Builder;
  38. invoke-direct {v0}, Lokhttp3/CacheControl$Builder;-><init>()V
  39. invoke-virtual {v0}, Lokhttp3/CacheControl$Builder;->onlyIfCached()Lokhttp3/CacheControl$Builder;
  40. move-result-object v0
  41. sget-object v1, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
  42. const v2, 0x7fffffff
  43. invoke-virtual {v0, v2, v1}, Lokhttp3/CacheControl$Builder;->maxStale(ILjava/util/concurrent/TimeUnit;)Lokhttp3/CacheControl$Builder;
  44. move-result-object v0
  45. invoke-virtual {v0}, Lokhttp3/CacheControl$Builder;->build()Lokhttp3/CacheControl;
  46. move-result-object v0
  47. sput-object v0, Lokhttp3/CacheControl;->FORCE_CACHE:Lokhttp3/CacheControl;
  48. return-void
  49. .end method
  50. .method constructor <init>(Lokhttp3/CacheControl$Builder;)V
  51. .locals 1
  52. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  53. iget-boolean v0, p1, Lokhttp3/CacheControl$Builder;->noCache:Z
  54. iput-boolean v0, p0, Lokhttp3/CacheControl;->noCache:Z
  55. iget-boolean v0, p1, Lokhttp3/CacheControl$Builder;->noStore:Z
  56. iput-boolean v0, p0, Lokhttp3/CacheControl;->noStore:Z
  57. iget v0, p1, Lokhttp3/CacheControl$Builder;->maxAgeSeconds:I
  58. iput v0, p0, Lokhttp3/CacheControl;->maxAgeSeconds:I
  59. const/4 v0, -0x1
  60. iput v0, p0, Lokhttp3/CacheControl;->sMaxAgeSeconds:I
  61. const/4 v0, 0x0
  62. iput-boolean v0, p0, Lokhttp3/CacheControl;->isPrivate:Z
  63. iput-boolean v0, p0, Lokhttp3/CacheControl;->isPublic:Z
  64. iput-boolean v0, p0, Lokhttp3/CacheControl;->mustRevalidate:Z
  65. iget v0, p1, Lokhttp3/CacheControl$Builder;->maxStaleSeconds:I
  66. iput v0, p0, Lokhttp3/CacheControl;->maxStaleSeconds:I
  67. iget v0, p1, Lokhttp3/CacheControl$Builder;->minFreshSeconds:I
  68. iput v0, p0, Lokhttp3/CacheControl;->minFreshSeconds:I
  69. iget-boolean v0, p1, Lokhttp3/CacheControl$Builder;->onlyIfCached:Z
  70. iput-boolean v0, p0, Lokhttp3/CacheControl;->onlyIfCached:Z
  71. iget-boolean v0, p1, Lokhttp3/CacheControl$Builder;->noTransform:Z
  72. iput-boolean v0, p0, Lokhttp3/CacheControl;->noTransform:Z
  73. iget-boolean p1, p1, Lokhttp3/CacheControl$Builder;->immutable:Z
  74. iput-boolean p1, p0, Lokhttp3/CacheControl;->immutable:Z
  75. return-void
  76. .end method
  77. .method private constructor <init>(ZZIIZZZIIZZZLjava/lang/String;)V
  78. .locals 0
  79. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  80. iput-boolean p1, p0, Lokhttp3/CacheControl;->noCache:Z
  81. iput-boolean p2, p0, Lokhttp3/CacheControl;->noStore:Z
  82. iput p3, p0, Lokhttp3/CacheControl;->maxAgeSeconds:I
  83. iput p4, p0, Lokhttp3/CacheControl;->sMaxAgeSeconds:I
  84. iput-boolean p5, p0, Lokhttp3/CacheControl;->isPrivate:Z
  85. iput-boolean p6, p0, Lokhttp3/CacheControl;->isPublic:Z
  86. iput-boolean p7, p0, Lokhttp3/CacheControl;->mustRevalidate:Z
  87. iput p8, p0, Lokhttp3/CacheControl;->maxStaleSeconds:I
  88. iput p9, p0, Lokhttp3/CacheControl;->minFreshSeconds:I
  89. iput-boolean p10, p0, Lokhttp3/CacheControl;->onlyIfCached:Z
  90. iput-boolean p11, p0, Lokhttp3/CacheControl;->noTransform:Z
  91. iput-boolean p12, p0, Lokhttp3/CacheControl;->immutable:Z
  92. iput-object p13, p0, Lokhttp3/CacheControl;->headerValue:Ljava/lang/String;
  93. return-void
  94. .end method
  95. .method private headerValue()Ljava/lang/String;
  96. .locals 4
  97. new-instance v0, Ljava/lang/StringBuilder;
  98. invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
  99. iget-boolean v1, p0, Lokhttp3/CacheControl;->noCache:Z
  100. if-eqz v1, :cond_0
  101. const-string v1, "no-cache, "
  102. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  103. :cond_0
  104. iget-boolean v1, p0, Lokhttp3/CacheControl;->noStore:Z
  105. if-eqz v1, :cond_1
  106. const-string v1, "no-store, "
  107. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  108. :cond_1
  109. iget v1, p0, Lokhttp3/CacheControl;->maxAgeSeconds:I
  110. const-string v2, ", "
  111. const/4 v3, -0x1
  112. if-eq v1, v3, :cond_2
  113. const-string v1, "max-age="
  114. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  115. iget v1, p0, Lokhttp3/CacheControl;->maxAgeSeconds:I
  116. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
  117. invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  118. :cond_2
  119. iget v1, p0, Lokhttp3/CacheControl;->sMaxAgeSeconds:I
  120. if-eq v1, v3, :cond_3
  121. const-string v1, "s-maxage="
  122. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  123. iget v1, p0, Lokhttp3/CacheControl;->sMaxAgeSeconds:I
  124. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
  125. invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  126. :cond_3
  127. iget-boolean v1, p0, Lokhttp3/CacheControl;->isPrivate:Z
  128. if-eqz v1, :cond_4
  129. const-string v1, "private, "
  130. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  131. :cond_4
  132. iget-boolean v1, p0, Lokhttp3/CacheControl;->isPublic:Z
  133. if-eqz v1, :cond_5
  134. const-string v1, "public, "
  135. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  136. :cond_5
  137. iget-boolean v1, p0, Lokhttp3/CacheControl;->mustRevalidate:Z
  138. if-eqz v1, :cond_6
  139. const-string v1, "must-revalidate, "
  140. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  141. :cond_6
  142. iget v1, p0, Lokhttp3/CacheControl;->maxStaleSeconds:I
  143. if-eq v1, v3, :cond_7
  144. const-string v1, "max-stale="
  145. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  146. iget v1, p0, Lokhttp3/CacheControl;->maxStaleSeconds:I
  147. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
  148. invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  149. :cond_7
  150. iget v1, p0, Lokhttp3/CacheControl;->minFreshSeconds:I
  151. if-eq v1, v3, :cond_8
  152. const-string v1, "min-fresh="
  153. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  154. iget v1, p0, Lokhttp3/CacheControl;->minFreshSeconds:I
  155. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
  156. invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  157. :cond_8
  158. iget-boolean v1, p0, Lokhttp3/CacheControl;->onlyIfCached:Z
  159. if-eqz v1, :cond_9
  160. const-string v1, "only-if-cached, "
  161. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  162. :cond_9
  163. iget-boolean v1, p0, Lokhttp3/CacheControl;->noTransform:Z
  164. if-eqz v1, :cond_a
  165. const-string v1, "no-transform, "
  166. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  167. :cond_a
  168. iget-boolean v1, p0, Lokhttp3/CacheControl;->immutable:Z
  169. if-eqz v1, :cond_b
  170. const-string v1, "immutable, "
  171. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  172. :cond_b
  173. invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
  174. move-result v1
  175. if-nez v1, :cond_c
  176. const-string v0, ""
  177. return-object v0
  178. :cond_c
  179. invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
  180. move-result v1
  181. add-int/lit8 v1, v1, -0x2
  182. invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
  183. move-result v2
  184. invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder;
  185. invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  186. move-result-object v0
  187. return-object v0
  188. .end method
  189. .method public static parse(Lokhttp3/Headers;)Lokhttp3/CacheControl;
  190. .locals 22
  191. move-object/from16 v0, p0
  192. invoke-virtual/range {p0 .. p0}, Lokhttp3/Headers;->size()I
  193. move-result v1
  194. const/4 v6, 0x0
  195. const/4 v7, 0x1
  196. const/4 v8, 0x0
  197. const/4 v9, 0x0
  198. const/4 v10, 0x0
  199. const/4 v11, -0x1
  200. const/4 v12, -0x1
  201. const/4 v13, 0x0
  202. const/4 v14, 0x0
  203. const/4 v15, 0x0
  204. const/16 v16, -0x1
  205. const/16 v17, -0x1
  206. const/16 v18, 0x0
  207. const/16 v19, 0x0
  208. const/16 v20, 0x0
  209. :goto_0
  210. if-ge v6, v1, :cond_12
  211. invoke-virtual {v0, v6}, Lokhttp3/Headers;->name(I)Ljava/lang/String;
  212. move-result-object v2
  213. invoke-virtual {v0, v6}, Lokhttp3/Headers;->value(I)Ljava/lang/String;
  214. move-result-object v4
  215. const-string v3, "Cache-Control"
  216. invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  217. move-result v3
  218. if-eqz v3, :cond_1
  219. if-eqz v8, :cond_0
  220. goto :goto_1
  221. :cond_0
  222. move-object v8, v4
  223. goto :goto_2
  224. :cond_1
  225. const-string v3, "Pragma"
  226. invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  227. move-result v2
  228. if-eqz v2, :cond_11
  229. :goto_1
  230. const/4 v7, 0x0
  231. :goto_2
  232. const/4 v2, 0x0
  233. :goto_3
  234. invoke-virtual {v4}, Ljava/lang/String;->length()I
  235. move-result v3
  236. if-ge v2, v3, :cond_11
  237. const-string v3, "=,;"
  238. invoke-static {v4, v2, v3}, Lokhttp3/internal/http/HttpHeaders;->skipUntil(Ljava/lang/String;ILjava/lang/String;)I
  239. move-result v3
  240. invoke-virtual {v4, v2, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
  241. move-result-object v2
  242. invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;
  243. move-result-object v2
  244. invoke-virtual {v4}, Ljava/lang/String;->length()I
  245. move-result v5
  246. if-eq v3, v5, :cond_4
  247. invoke-virtual {v4, v3}, Ljava/lang/String;->charAt(I)C
  248. move-result v5
  249. const/16 v0, 0x2c
  250. if-eq v5, v0, :cond_4
  251. invoke-virtual {v4, v3}, Ljava/lang/String;->charAt(I)C
  252. move-result v0
  253. const/16 v5, 0x3b
  254. if-ne v0, v5, :cond_2
  255. goto :goto_4
  256. :cond_2
  257. add-int/lit8 v3, v3, 0x1
  258. invoke-static {v4, v3}, Lokhttp3/internal/http/HttpHeaders;->skipWhitespace(Ljava/lang/String;I)I
  259. move-result v0
  260. invoke-virtual {v4}, Ljava/lang/String;->length()I
  261. move-result v3
  262. if-ge v0, v3, :cond_3
  263. invoke-virtual {v4, v0}, Ljava/lang/String;->charAt(I)C
  264. move-result v3
  265. const/16 v5, 0x22
  266. if-ne v3, v5, :cond_3
  267. add-int/lit8 v0, v0, 0x1
  268. const-string v3, "\""
  269. invoke-static {v4, v0, v3}, Lokhttp3/internal/http/HttpHeaders;->skipUntil(Ljava/lang/String;ILjava/lang/String;)I
  270. move-result v3
  271. invoke-virtual {v4, v0, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
  272. move-result-object v0
  273. const/4 v5, 0x1
  274. add-int/2addr v3, v5
  275. goto :goto_5
  276. :cond_3
  277. const/4 v5, 0x1
  278. const-string v3, ",;"
  279. invoke-static {v4, v0, v3}, Lokhttp3/internal/http/HttpHeaders;->skipUntil(Ljava/lang/String;ILjava/lang/String;)I
  280. move-result v3
  281. invoke-virtual {v4, v0, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
  282. move-result-object v0
  283. invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
  284. move-result-object v0
  285. goto :goto_5
  286. :cond_4
  287. :goto_4
  288. const/4 v5, 0x1
  289. add-int/lit8 v3, v3, 0x1
  290. const/4 v0, 0x0
  291. :goto_5
  292. const-string v5, "no-cache"
  293. invoke-virtual {v5, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  294. move-result v5
  295. if-eqz v5, :cond_5
  296. const/4 v5, -0x1
  297. const/4 v9, 0x1
  298. goto/16 :goto_6
  299. :cond_5
  300. const-string v5, "no-store"
  301. invoke-virtual {v5, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  302. move-result v5
  303. if-eqz v5, :cond_6
  304. const/4 v5, -0x1
  305. const/4 v10, 0x1
  306. goto/16 :goto_6
  307. :cond_6
  308. const-string v5, "max-age"
  309. invoke-virtual {v5, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  310. move-result v5
  311. if-eqz v5, :cond_7
  312. const/4 v5, -0x1
  313. invoke-static {v0, v5}, Lokhttp3/internal/http/HttpHeaders;->parseSeconds(Ljava/lang/String;I)I
  314. move-result v0
  315. move v11, v0
  316. goto/16 :goto_6
  317. :cond_7
  318. const-string v5, "s-maxage"
  319. invoke-virtual {v5, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  320. move-result v5
  321. if-eqz v5, :cond_8
  322. const/4 v5, -0x1
  323. invoke-static {v0, v5}, Lokhttp3/internal/http/HttpHeaders;->parseSeconds(Ljava/lang/String;I)I
  324. move-result v0
  325. move v12, v0
  326. goto/16 :goto_6
  327. :cond_8
  328. const-string v5, "private"
  329. invoke-virtual {v5, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  330. move-result v5
  331. if-eqz v5, :cond_9
  332. const/4 v5, -0x1
  333. const/4 v13, 0x1
  334. goto :goto_6
  335. :cond_9
  336. const-string v5, "public"
  337. invoke-virtual {v5, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  338. move-result v5
  339. if-eqz v5, :cond_a
  340. const/4 v5, -0x1
  341. const/4 v14, 0x1
  342. goto :goto_6
  343. :cond_a
  344. const-string v5, "must-revalidate"
  345. invoke-virtual {v5, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  346. move-result v5
  347. if-eqz v5, :cond_b
  348. const/4 v5, -0x1
  349. const/4 v15, 0x1
  350. goto :goto_6
  351. :cond_b
  352. const-string v5, "max-stale"
  353. invoke-virtual {v5, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  354. move-result v5
  355. if-eqz v5, :cond_c
  356. const v2, 0x7fffffff
  357. invoke-static {v0, v2}, Lokhttp3/internal/http/HttpHeaders;->parseSeconds(Ljava/lang/String;I)I
  358. move-result v0
  359. move/from16 v16, v0
  360. const/4 v5, -0x1
  361. goto :goto_6
  362. :cond_c
  363. const-string v5, "min-fresh"
  364. invoke-virtual {v5, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  365. move-result v5
  366. if-eqz v5, :cond_d
  367. const/4 v5, -0x1
  368. invoke-static {v0, v5}, Lokhttp3/internal/http/HttpHeaders;->parseSeconds(Ljava/lang/String;I)I
  369. move-result v0
  370. move/from16 v17, v0
  371. goto :goto_6
  372. :cond_d
  373. const/4 v5, -0x1
  374. const-string v0, "only-if-cached"
  375. invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  376. move-result v0
  377. if-eqz v0, :cond_e
  378. const/16 v18, 0x1
  379. goto :goto_6
  380. :cond_e
  381. const-string v0, "no-transform"
  382. invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  383. move-result v0
  384. if-eqz v0, :cond_f
  385. const/16 v19, 0x1
  386. goto :goto_6
  387. :cond_f
  388. const-string v0, "immutable"
  389. invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
  390. move-result v0
  391. if-eqz v0, :cond_10
  392. const/16 v20, 0x1
  393. :cond_10
  394. :goto_6
  395. move-object/from16 v0, p0
  396. move v2, v3
  397. goto/16 :goto_3
  398. :cond_11
  399. const/4 v5, -0x1
  400. add-int/lit8 v6, v6, 0x1
  401. move-object/from16 v0, p0
  402. goto/16 :goto_0
  403. :cond_12
  404. if-nez v7, :cond_13
  405. const/16 v21, 0x0
  406. goto :goto_7
  407. :cond_13
  408. move-object/from16 v21, v8
  409. :goto_7
  410. new-instance v0, Lokhttp3/CacheControl;
  411. move-object v8, v0
  412. invoke-direct/range {v8 .. v21}, Lokhttp3/CacheControl;-><init>(ZZIIZZZIIZZZLjava/lang/String;)V
  413. return-object v0
  414. .end method
  415. # virtual methods
  416. .method public immutable()Z
  417. .locals 1
  418. iget-boolean v0, p0, Lokhttp3/CacheControl;->immutable:Z
  419. return v0
  420. .end method
  421. .method public isPrivate()Z
  422. .locals 1
  423. iget-boolean v0, p0, Lokhttp3/CacheControl;->isPrivate:Z
  424. return v0
  425. .end method
  426. .method public isPublic()Z
  427. .locals 1
  428. iget-boolean v0, p0, Lokhttp3/CacheControl;->isPublic:Z
  429. return v0
  430. .end method
  431. .method public maxAgeSeconds()I
  432. .locals 1
  433. iget v0, p0, Lokhttp3/CacheControl;->maxAgeSeconds:I
  434. return v0
  435. .end method
  436. .method public maxStaleSeconds()I
  437. .locals 1
  438. iget v0, p0, Lokhttp3/CacheControl;->maxStaleSeconds:I
  439. return v0
  440. .end method
  441. .method public minFreshSeconds()I
  442. .locals 1
  443. iget v0, p0, Lokhttp3/CacheControl;->minFreshSeconds:I
  444. return v0
  445. .end method
  446. .method public mustRevalidate()Z
  447. .locals 1
  448. iget-boolean v0, p0, Lokhttp3/CacheControl;->mustRevalidate:Z
  449. return v0
  450. .end method
  451. .method public noCache()Z
  452. .locals 1
  453. iget-boolean v0, p0, Lokhttp3/CacheControl;->noCache:Z
  454. return v0
  455. .end method
  456. .method public noStore()Z
  457. .locals 1
  458. iget-boolean v0, p0, Lokhttp3/CacheControl;->noStore:Z
  459. return v0
  460. .end method
  461. .method public noTransform()Z
  462. .locals 1
  463. iget-boolean v0, p0, Lokhttp3/CacheControl;->noTransform:Z
  464. return v0
  465. .end method
  466. .method public onlyIfCached()Z
  467. .locals 1
  468. iget-boolean v0, p0, Lokhttp3/CacheControl;->onlyIfCached:Z
  469. return v0
  470. .end method
  471. .method public sMaxAgeSeconds()I
  472. .locals 1
  473. iget v0, p0, Lokhttp3/CacheControl;->sMaxAgeSeconds:I
  474. return v0
  475. .end method
  476. .method public toString()Ljava/lang/String;
  477. .locals 1
  478. iget-object v0, p0, Lokhttp3/CacheControl;->headerValue:Ljava/lang/String;
  479. if-eqz v0, :cond_0
  480. goto :goto_0
  481. :cond_0
  482. invoke-direct {p0}, Lokhttp3/CacheControl;->headerValue()Ljava/lang/String;
  483. move-result-object v0
  484. iput-object v0, p0, Lokhttp3/CacheControl;->headerValue:Ljava/lang/String;
  485. :goto_0
  486. return-object v0
  487. .end method