1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756 |
- .class public final Lokhttp3/Cookie;
- .super Ljava/lang/Object;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/MemberClasses;
- value = {
- Lokhttp3/Cookie$Builder;
- }
- .end annotation
- # static fields
- .field private static final DAY_OF_MONTH_PATTERN:Ljava/util/regex/Pattern;
- .field private static final MONTH_PATTERN:Ljava/util/regex/Pattern;
- .field private static final TIME_PATTERN:Ljava/util/regex/Pattern;
- .field private static final YEAR_PATTERN:Ljava/util/regex/Pattern;
- # instance fields
- .field private final domain:Ljava/lang/String;
- .field private final expiresAt:J
- .field private final hostOnly:Z
- .field private final httpOnly:Z
- .field private final name:Ljava/lang/String;
- .field private final path:Ljava/lang/String;
- .field private final persistent:Z
- .field private final secure:Z
- .field private final value:Ljava/lang/String;
- # direct methods
- .method static constructor <clinit>()V
- .locals 1
- const-string v0, "(\\d{2,4})[^\\d]*"
- invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
- move-result-object v0
- sput-object v0, Lokhttp3/Cookie;->YEAR_PATTERN:Ljava/util/regex/Pattern;
- const-string v0, "(?i)(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec).*"
- invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
- move-result-object v0
- sput-object v0, Lokhttp3/Cookie;->MONTH_PATTERN:Ljava/util/regex/Pattern;
- const-string v0, "(\\d{1,2})[^\\d]*"
- invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
- move-result-object v0
- sput-object v0, Lokhttp3/Cookie;->DAY_OF_MONTH_PATTERN:Ljava/util/regex/Pattern;
- const-string v0, "(\\d{1,2}):(\\d{1,2}):(\\d{1,2})[^\\d]*"
- invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
- move-result-object v0
- sput-object v0, Lokhttp3/Cookie;->TIME_PATTERN:Ljava/util/regex/Pattern;
- return-void
- .end method
- .method private constructor <init>(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;ZZZZ)V
- .locals 0
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- iput-object p1, p0, Lokhttp3/Cookie;->name:Ljava/lang/String;
- iput-object p2, p0, Lokhttp3/Cookie;->value:Ljava/lang/String;
- iput-wide p3, p0, Lokhttp3/Cookie;->expiresAt:J
- iput-object p5, p0, Lokhttp3/Cookie;->domain:Ljava/lang/String;
- iput-object p6, p0, Lokhttp3/Cookie;->path:Ljava/lang/String;
- iput-boolean p7, p0, Lokhttp3/Cookie;->secure:Z
- iput-boolean p8, p0, Lokhttp3/Cookie;->httpOnly:Z
- iput-boolean p9, p0, Lokhttp3/Cookie;->hostOnly:Z
- iput-boolean p10, p0, Lokhttp3/Cookie;->persistent:Z
- return-void
- .end method
- .method constructor <init>(Lokhttp3/Cookie$Builder;)V
- .locals 3
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- iget-object v0, p1, Lokhttp3/Cookie$Builder;->name:Ljava/lang/String;
- if-eqz v0, :cond_2
- iget-object v1, p1, Lokhttp3/Cookie$Builder;->value:Ljava/lang/String;
- if-eqz v1, :cond_1
- iget-object v2, p1, Lokhttp3/Cookie$Builder;->domain:Ljava/lang/String;
- if-eqz v2, :cond_0
- iput-object v0, p0, Lokhttp3/Cookie;->name:Ljava/lang/String;
- iput-object v1, p0, Lokhttp3/Cookie;->value:Ljava/lang/String;
- iget-wide v0, p1, Lokhttp3/Cookie$Builder;->expiresAt:J
- iput-wide v0, p0, Lokhttp3/Cookie;->expiresAt:J
- iput-object v2, p0, Lokhttp3/Cookie;->domain:Ljava/lang/String;
- iget-object v0, p1, Lokhttp3/Cookie$Builder;->path:Ljava/lang/String;
- iput-object v0, p0, Lokhttp3/Cookie;->path:Ljava/lang/String;
- iget-boolean v0, p1, Lokhttp3/Cookie$Builder;->secure:Z
- iput-boolean v0, p0, Lokhttp3/Cookie;->secure:Z
- iget-boolean v0, p1, Lokhttp3/Cookie$Builder;->httpOnly:Z
- iput-boolean v0, p0, Lokhttp3/Cookie;->httpOnly:Z
- iget-boolean v0, p1, Lokhttp3/Cookie$Builder;->persistent:Z
- iput-boolean v0, p0, Lokhttp3/Cookie;->persistent:Z
- iget-boolean p1, p1, Lokhttp3/Cookie$Builder;->hostOnly:Z
- iput-boolean p1, p0, Lokhttp3/Cookie;->hostOnly:Z
- return-void
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "builder.domain == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- :cond_1
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "builder.value == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- :cond_2
- new-instance p1, Ljava/lang/NullPointerException;
- const-string v0, "builder.name == null"
- invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method private static dateCharacterOffset(Ljava/lang/String;IIZ)I
- .locals 3
- :goto_0
- if-ge p1, p2, :cond_7
- invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
- move-result v0
- const/16 v1, 0x20
- const/4 v2, 0x1
- if-ge v0, v1, :cond_0
- const/16 v1, 0x9
- if-ne v0, v1, :cond_5
- :cond_0
- const/16 v1, 0x7f
- if-ge v0, v1, :cond_5
- const/16 v1, 0x30
- if-lt v0, v1, :cond_1
- const/16 v1, 0x39
- if-le v0, v1, :cond_5
- :cond_1
- const/16 v1, 0x61
- if-lt v0, v1, :cond_2
- const/16 v1, 0x7a
- if-le v0, v1, :cond_5
- :cond_2
- const/16 v1, 0x41
- if-lt v0, v1, :cond_3
- const/16 v1, 0x5a
- if-le v0, v1, :cond_5
- :cond_3
- const/16 v1, 0x3a
- if-ne v0, v1, :cond_4
- goto :goto_1
- :cond_4
- const/4 v0, 0x0
- goto :goto_2
- :cond_5
- :goto_1
- const/4 v0, 0x1
- :goto_2
- xor-int/lit8 v1, p3, 0x1
- if-ne v0, v1, :cond_6
- return p1
- :cond_6
- add-int/lit8 p1, p1, 0x1
- goto :goto_0
- :cond_7
- return p2
- .end method
- .method private static domainMatch(Ljava/lang/String;Ljava/lang/String;)Z
- .locals 2
- invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- const/4 v1, 0x1
- if-eqz v0, :cond_0
- return v1
- :cond_0
- invoke-virtual {p0, p1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
- move-result v0
- if-eqz v0, :cond_1
- invoke-virtual {p0}, Ljava/lang/String;->length()I
- move-result v0
- invoke-virtual {p1}, Ljava/lang/String;->length()I
- move-result p1
- sub-int/2addr v0, p1
- sub-int/2addr v0, v1
- invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C
- move-result p1
- const/16 v0, 0x2e
- if-ne p1, v0, :cond_1
- invoke-static {p0}, Lokhttp3/internal/Util;->verifyAsIpAddress(Ljava/lang/String;)Z
- move-result p0
- if-nez p0, :cond_1
- return v1
- :cond_1
- const/4 p0, 0x0
- return p0
- .end method
- .method static parse(JLokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/Cookie;
- .locals 24
- move-object/from16 v0, p3
- invoke-virtual/range {p3 .. p3}, Ljava/lang/String;->length()I
- move-result v1
- const/16 v2, 0x3b
- const/4 v3, 0x0
- invoke-static {v0, v3, v1, v2}, Lokhttp3/internal/Util;->delimiterOffset(Ljava/lang/String;IIC)I
- move-result v4
- const/16 v5, 0x3d
- invoke-static {v0, v3, v4, v5}, Lokhttp3/internal/Util;->delimiterOffset(Ljava/lang/String;IIC)I
- move-result v6
- const/4 v7, 0x0
- if-ne v6, v4, :cond_0
- return-object v7
- :cond_0
- invoke-static {v0, v3, v6}, Lokhttp3/internal/Util;->trimSubstring(Ljava/lang/String;II)Ljava/lang/String;
- move-result-object v9
- invoke-virtual {v9}, Ljava/lang/String;->isEmpty()Z
- move-result v8
- if-nez v8, :cond_16
- invoke-static {v9}, Lokhttp3/internal/Util;->indexOfControlOrNonAscii(Ljava/lang/String;)I
- move-result v8
- const/4 v10, -0x1
- if-eq v8, v10, :cond_1
- goto/16 :goto_9
- :cond_1
- const/4 v8, 0x1
- add-int/2addr v6, v8
- invoke-static {v0, v6, v4}, Lokhttp3/internal/Util;->trimSubstring(Ljava/lang/String;II)Ljava/lang/String;
- move-result-object v6
- invoke-static {v6}, Lokhttp3/internal/Util;->indexOfControlOrNonAscii(Ljava/lang/String;)I
- move-result v11
- if-eq v11, v10, :cond_2
- return-object v7
- :cond_2
- add-int/2addr v4, v8
- const-wide/16 v10, -0x1
- const-wide v12, 0xe677d21fdbffL
- move-object v8, v7
- move-object/from16 v19, v8
- move-wide v14, v10
- move-wide/from16 v21, v12
- const/16 v17, 0x0
- const/16 v18, 0x0
- const/16 v20, 0x1
- const/16 v23, 0x0
- :goto_0
- if-ge v4, v1, :cond_a
- invoke-static {v0, v4, v1, v2}, Lokhttp3/internal/Util;->delimiterOffset(Ljava/lang/String;IIC)I
- move-result v7
- invoke-static {v0, v4, v7, v5}, Lokhttp3/internal/Util;->delimiterOffset(Ljava/lang/String;IIC)I
- move-result v2
- invoke-static {v0, v4, v2}, Lokhttp3/internal/Util;->trimSubstring(Ljava/lang/String;II)Ljava/lang/String;
- move-result-object v4
- if-ge v2, v7, :cond_3
- add-int/lit8 v2, v2, 0x1
- invoke-static {v0, v2, v7}, Lokhttp3/internal/Util;->trimSubstring(Ljava/lang/String;II)Ljava/lang/String;
- move-result-object v2
- goto :goto_1
- :cond_3
- const-string v2, ""
- :goto_1
- const-string v5, "expires"
- invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
- move-result v5
- if-eqz v5, :cond_4
- :try_start_0
- invoke-virtual {v2}, Ljava/lang/String;->length()I
- move-result v4
- invoke-static {v2, v3, v4}, Lokhttp3/Cookie;->parseExpires(Ljava/lang/String;II)J
- move-result-wide v4
- :try_end_0
- .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
- move-wide/from16 v21, v4
- goto :goto_2
- :cond_4
- const-string v5, "max-age"
- invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
- move-result v5
- if-eqz v5, :cond_5
- :try_start_1
- invoke-static {v2}, Lokhttp3/Cookie;->parseMaxAge(Ljava/lang/String;)J
- move-result-wide v4
- :try_end_1
- .catch Ljava/lang/NumberFormatException; {:try_start_1 .. :try_end_1} :catch_0
- move-wide v14, v4
- :goto_2
- const/16 v23, 0x1
- goto :goto_3
- :cond_5
- const-string v5, "domain"
- invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
- move-result v5
- if-eqz v5, :cond_6
- :try_start_2
- invoke-static {v2}, Lokhttp3/Cookie;->parseDomain(Ljava/lang/String;)Ljava/lang/String;
- move-result-object v2
- :try_end_2
- .catch Ljava/lang/IllegalArgumentException; {:try_start_2 .. :try_end_2} :catch_0
- move-object v8, v2
- const/16 v20, 0x0
- goto :goto_3
- :cond_6
- const-string v5, "path"
- invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
- move-result v5
- if-eqz v5, :cond_7
- move-object/from16 v19, v2
- goto :goto_3
- :cond_7
- const-string v2, "secure"
- invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
- move-result v2
- if-eqz v2, :cond_8
- const/16 v17, 0x1
- goto :goto_3
- :cond_8
- const-string v2, "httponly"
- invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
- move-result v2
- if-eqz v2, :cond_9
- const/16 v18, 0x1
- :catch_0
- :cond_9
- :goto_3
- add-int/lit8 v4, v7, 0x1
- const/16 v2, 0x3b
- const/16 v5, 0x3d
- const/4 v7, 0x0
- goto :goto_0
- :cond_a
- const-wide/high16 v0, -0x8000000000000000L
- cmp-long v2, v14, v0
- if-nez v2, :cond_c
- :cond_b
- move-wide v11, v0
- goto :goto_5
- :cond_c
- cmp-long v0, v14, v10
- if-eqz v0, :cond_f
- const-wide v0, 0x20c49ba5e353f7L
- cmp-long v2, v14, v0
- if-gtz v2, :cond_d
- const-wide/16 v0, 0x3e8
- mul-long v14, v14, v0
- goto :goto_4
- :cond_d
- const-wide v14, 0x7fffffffffffffffL
- :goto_4
- add-long v0, p0, v14
- cmp-long v2, v0, p0
- if-ltz v2, :cond_e
- cmp-long v2, v0, v12
- if-lez v2, :cond_b
- :cond_e
- move-wide v11, v12
- goto :goto_5
- :cond_f
- move-wide/from16 v11, v21
- :goto_5
- invoke-virtual/range {p2 .. p2}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
- move-result-object v0
- if-nez v8, :cond_10
- move-object v13, v0
- const/4 v1, 0x0
- goto :goto_6
- :cond_10
- invoke-static {v0, v8}, Lokhttp3/Cookie;->domainMatch(Ljava/lang/String;Ljava/lang/String;)Z
- move-result v1
- if-nez v1, :cond_11
- const/4 v1, 0x0
- return-object v1
- :cond_11
- const/4 v1, 0x0
- move-object v13, v8
- :goto_6
- invoke-virtual {v0}, Ljava/lang/String;->length()I
- move-result v0
- invoke-virtual {v13}, Ljava/lang/String;->length()I
- move-result v2
- if-eq v0, v2, :cond_12
- invoke-static {}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->get()Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
- move-result-object v0
- invoke-virtual {v0, v13}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->getEffectiveTldPlusOne(Ljava/lang/String;)Ljava/lang/String;
- move-result-object v0
- if-nez v0, :cond_12
- return-object v1
- :cond_12
- const-string v0, "/"
- move-object/from16 v7, v19
- if-eqz v7, :cond_14
- invoke-virtual {v7, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
- move-result v1
- if-nez v1, :cond_13
- goto :goto_7
- :cond_13
- move-object v14, v7
- goto :goto_8
- :cond_14
- :goto_7
- invoke-virtual/range {p2 .. p2}, Lokhttp3/HttpUrl;->encodedPath()Ljava/lang/String;
- move-result-object v1
- const/16 v2, 0x2f
- invoke-virtual {v1, v2}, Ljava/lang/String;->lastIndexOf(I)I
- move-result v2
- if-eqz v2, :cond_15
- invoke-virtual {v1, v3, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
- move-result-object v0
- :cond_15
- move-object v14, v0
- :goto_8
- new-instance v0, Lokhttp3/Cookie;
- move-object v8, v0
- move-object v10, v6
- move/from16 v15, v17
- move/from16 v16, v18
- move/from16 v17, v20
- move/from16 v18, v23
- invoke-direct/range {v8 .. v18}, Lokhttp3/Cookie;-><init>(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;ZZZZ)V
- return-object v0
- :cond_16
- :goto_9
- move-object v0, v7
- return-object v0
- .end method
- .method public static parse(Lokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/Cookie;
- .locals 2
- invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
- move-result-wide v0
- invoke-static {v0, v1, p0, p1}, Lokhttp3/Cookie;->parse(JLokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/Cookie;
- move-result-object p0
- return-object p0
- .end method
- .method public static parseAll(Lokhttp3/HttpUrl;Lokhttp3/Headers;)Ljava/util/List;
- .locals 4
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Lokhttp3/HttpUrl;",
- "Lokhttp3/Headers;",
- ")",
- "Ljava/util/List<",
- "Lokhttp3/Cookie;",
- ">;"
- }
- .end annotation
- const-string v0, "Set-Cookie"
- invoke-virtual {p1, v0}, Lokhttp3/Headers;->values(Ljava/lang/String;)Ljava/util/List;
- move-result-object p1
- invoke-interface {p1}, Ljava/util/List;->size()I
- move-result v0
- const/4 v1, 0x0
- const/4 v2, 0x0
- :goto_0
- if-ge v2, v0, :cond_2
- invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
- move-result-object v3
- check-cast v3, Ljava/lang/String;
- invoke-static {p0, v3}, Lokhttp3/Cookie;->parse(Lokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/Cookie;
- move-result-object v3
- if-nez v3, :cond_0
- goto :goto_1
- :cond_0
- if-nez v1, :cond_1
- new-instance v1, Ljava/util/ArrayList;
- invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
- :cond_1
- invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- :goto_1
- add-int/lit8 v2, v2, 0x1
- goto :goto_0
- :cond_2
- if-eqz v1, :cond_3
- invoke-static {v1}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
- move-result-object p0
- goto :goto_2
- :cond_3
- invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
- move-result-object p0
- :goto_2
- return-object p0
- .end method
- .method private static parseDomain(Ljava/lang/String;)Ljava/lang/String;
- .locals 2
- const-string v0, "."
- invoke-virtual {p0, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
- move-result v1
- if-nez v1, :cond_2
- invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
- move-result v0
- if-eqz v0, :cond_0
- const/4 v0, 0x1
- invoke-virtual {p0, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;
- move-result-object p0
- :cond_0
- invoke-static {p0}, Lokhttp3/internal/Util;->canonicalizeHost(Ljava/lang/String;)Ljava/lang/String;
- move-result-object p0
- if-eqz p0, :cond_1
- return-object p0
- :cond_1
- new-instance p0, Ljava/lang/IllegalArgumentException;
- invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
- throw p0
- :cond_2
- new-instance p0, Ljava/lang/IllegalArgumentException;
- invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
- throw p0
- .end method
- .method private static parseExpires(Ljava/lang/String;II)J
- .locals 12
- const/4 v0, 0x0
- invoke-static {p0, p1, p2, v0}, Lokhttp3/Cookie;->dateCharacterOffset(Ljava/lang/String;IIZ)I
- move-result p1
- sget-object v1, Lokhttp3/Cookie;->TIME_PATTERN:Ljava/util/regex/Pattern;
- invoke-virtual {v1, p0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
- move-result-object v1
- const/4 v2, -0x1
- const/4 v3, -0x1
- const/4 v4, -0x1
- const/4 v5, -0x1
- const/4 v6, -0x1
- const/4 v7, -0x1
- const/4 v8, -0x1
- :goto_0
- const/4 v9, 0x2
- const/4 v10, 0x1
- if-ge p1, p2, :cond_4
- add-int/lit8 v11, p1, 0x1
- invoke-static {p0, v11, p2, v10}, Lokhttp3/Cookie;->dateCharacterOffset(Ljava/lang/String;IIZ)I
- move-result v11
- invoke-virtual {v1, p1, v11}, Ljava/util/regex/Matcher;->region(II)Ljava/util/regex/Matcher;
- if-ne v4, v2, :cond_0
- sget-object p1, Lokhttp3/Cookie;->TIME_PATTERN:Ljava/util/regex/Pattern;
- invoke-virtual {v1, p1}, Ljava/util/regex/Matcher;->usePattern(Ljava/util/regex/Pattern;)Ljava/util/regex/Matcher;
- move-result-object p1
- invoke-virtual {p1}, Ljava/util/regex/Matcher;->matches()Z
- move-result p1
- if-eqz p1, :cond_0
- invoke-virtual {v1, v10}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
- move-result-object p1
- invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
- move-result p1
- invoke-virtual {v1, v9}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
- move-result-object v4
- invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
- move-result v4
- const/4 v7, 0x3
- invoke-virtual {v1, v7}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
- move-result-object v7
- invoke-static {v7}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
- move-result v7
- move v8, v7
- move v7, v4
- move v4, p1
- goto :goto_1
- :cond_0
- if-ne v5, v2, :cond_1
- sget-object p1, Lokhttp3/Cookie;->DAY_OF_MONTH_PATTERN:Ljava/util/regex/Pattern;
- invoke-virtual {v1, p1}, Ljava/util/regex/Matcher;->usePattern(Ljava/util/regex/Pattern;)Ljava/util/regex/Matcher;
- move-result-object p1
- invoke-virtual {p1}, Ljava/util/regex/Matcher;->matches()Z
- move-result p1
- if-eqz p1, :cond_1
- invoke-virtual {v1, v10}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
- move-result-object p1
- invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
- move-result p1
- move v5, p1
- goto :goto_1
- :cond_1
- if-ne v6, v2, :cond_2
- sget-object p1, Lokhttp3/Cookie;->MONTH_PATTERN:Ljava/util/regex/Pattern;
- invoke-virtual {v1, p1}, Ljava/util/regex/Matcher;->usePattern(Ljava/util/regex/Pattern;)Ljava/util/regex/Matcher;
- move-result-object p1
- invoke-virtual {p1}, Ljava/util/regex/Matcher;->matches()Z
- move-result p1
- if-eqz p1, :cond_2
- invoke-virtual {v1, v10}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
- move-result-object p1
- sget-object v6, Ljava/util/Locale;->US:Ljava/util/Locale;
- invoke-virtual {p1, v6}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
- move-result-object p1
- sget-object v6, Lokhttp3/Cookie;->MONTH_PATTERN:Ljava/util/regex/Pattern;
- invoke-virtual {v6}, Ljava/util/regex/Pattern;->pattern()Ljava/lang/String;
- move-result-object v6
- invoke-virtual {v6, p1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
- move-result p1
- div-int/lit8 p1, p1, 0x4
- move v6, p1
- goto :goto_1
- :cond_2
- if-ne v3, v2, :cond_3
- sget-object p1, Lokhttp3/Cookie;->YEAR_PATTERN:Ljava/util/regex/Pattern;
- invoke-virtual {v1, p1}, Ljava/util/regex/Matcher;->usePattern(Ljava/util/regex/Pattern;)Ljava/util/regex/Matcher;
- move-result-object p1
- invoke-virtual {p1}, Ljava/util/regex/Matcher;->matches()Z
- move-result p1
- if-eqz p1, :cond_3
- invoke-virtual {v1, v10}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
- move-result-object p1
- invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
- move-result p1
- move v3, p1
- :cond_3
- :goto_1
- add-int/lit8 v11, v11, 0x1
- invoke-static {p0, v11, p2, v0}, Lokhttp3/Cookie;->dateCharacterOffset(Ljava/lang/String;IIZ)I
- move-result p1
- goto/16 :goto_0
- :cond_4
- const/16 p0, 0x46
- if-lt v3, p0, :cond_5
- const/16 p0, 0x63
- if-gt v3, p0, :cond_5
- add-int/lit16 v3, v3, 0x76c
- :cond_5
- if-ltz v3, :cond_6
- const/16 p0, 0x45
- if-gt v3, p0, :cond_6
- add-int/lit16 v3, v3, 0x7d0
- :cond_6
- const/16 p0, 0x641
- if-lt v3, p0, :cond_c
- if-eq v6, v2, :cond_b
- if-lt v5, v10, :cond_a
- const/16 p0, 0x1f
- if-gt v5, p0, :cond_a
- if-ltz v4, :cond_9
- const/16 p0, 0x17
- if-gt v4, p0, :cond_9
- if-ltz v7, :cond_8
- const/16 p0, 0x3b
- if-gt v7, p0, :cond_8
- if-ltz v8, :cond_7
- if-gt v8, p0, :cond_7
- new-instance p0, Ljava/util/GregorianCalendar;
- sget-object p1, Lokhttp3/internal/Util;->UTC:Ljava/util/TimeZone;
- invoke-direct {p0, p1}, Ljava/util/GregorianCalendar;-><init>(Ljava/util/TimeZone;)V
- invoke-virtual {p0, v0}, Ljava/util/Calendar;->setLenient(Z)V
- invoke-virtual {p0, v10, v3}, Ljava/util/Calendar;->set(II)V
- sub-int/2addr v6, v10
- invoke-virtual {p0, v9, v6}, Ljava/util/Calendar;->set(II)V
- const/4 p1, 0x5
- invoke-virtual {p0, p1, v5}, Ljava/util/Calendar;->set(II)V
- const/16 p1, 0xb
- invoke-virtual {p0, p1, v4}, Ljava/util/Calendar;->set(II)V
- const/16 p1, 0xc
- invoke-virtual {p0, p1, v7}, Ljava/util/Calendar;->set(II)V
- const/16 p1, 0xd
- invoke-virtual {p0, p1, v8}, Ljava/util/Calendar;->set(II)V
- const/16 p1, 0xe
- invoke-virtual {p0, p1, v0}, Ljava/util/Calendar;->set(II)V
- invoke-virtual {p0}, Ljava/util/Calendar;->getTimeInMillis()J
- move-result-wide p0
- return-wide p0
- :cond_7
- new-instance p0, Ljava/lang/IllegalArgumentException;
- invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
- throw p0
- :cond_8
- new-instance p0, Ljava/lang/IllegalArgumentException;
- invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
- throw p0
- :cond_9
- new-instance p0, Ljava/lang/IllegalArgumentException;
- invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
- throw p0
- :cond_a
- new-instance p0, Ljava/lang/IllegalArgumentException;
- invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
- throw p0
- :cond_b
- new-instance p0, Ljava/lang/IllegalArgumentException;
- invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
- throw p0
- :cond_c
- new-instance p0, Ljava/lang/IllegalArgumentException;
- invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
- goto :goto_3
- :goto_2
- throw p0
- :goto_3
- goto :goto_2
- .end method
- .method private static parseMaxAge(Ljava/lang/String;)J
- .locals 6
- const-wide/high16 v0, -0x8000000000000000L
- :try_start_0
- invoke-static {p0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
- move-result-wide v2
- :try_end_0
- .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
- const-wide/16 v4, 0x0
- cmp-long p0, v2, v4
- if-gtz p0, :cond_0
- goto :goto_0
- :cond_0
- move-wide v0, v2
- :goto_0
- return-wide v0
- :catch_0
- move-exception v2
- const-string v3, "-?\\d+"
- invoke-virtual {p0, v3}, Ljava/lang/String;->matches(Ljava/lang/String;)Z
- move-result v3
- if-eqz v3, :cond_2
- const-string v2, "-"
- invoke-virtual {p0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
- move-result p0
- if-eqz p0, :cond_1
- goto :goto_1
- :cond_1
- const-wide v0, 0x7fffffffffffffffL
- :goto_1
- return-wide v0
- :cond_2
- throw v2
- .end method
- .method private static pathMatch(Lokhttp3/HttpUrl;Ljava/lang/String;)Z
- .locals 2
- invoke-virtual {p0}, Lokhttp3/HttpUrl;->encodedPath()Ljava/lang/String;
- move-result-object p0
- invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- const/4 v1, 0x1
- if-eqz v0, :cond_0
- return v1
- :cond_0
- invoke-virtual {p0, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
- move-result v0
- if-eqz v0, :cond_2
- const-string v0, "/"
- invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
- move-result v0
- if-eqz v0, :cond_1
- return v1
- :cond_1
- invoke-virtual {p1}, Ljava/lang/String;->length()I
- move-result p1
- invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
- move-result p0
- const/16 p1, 0x2f
- if-ne p0, p1, :cond_2
- return v1
- :cond_2
- const/4 p0, 0x0
- return p0
- .end method
- # virtual methods
- .method public domain()Ljava/lang/String;
- .locals 1
- iget-object v0, p0, Lokhttp3/Cookie;->domain:Ljava/lang/String;
- return-object v0
- .end method
- .method public equals(Ljava/lang/Object;)Z
- .locals 6
- instance-of v0, p1, Lokhttp3/Cookie;
- const/4 v1, 0x0
- if-nez v0, :cond_0
- return v1
- :cond_0
- check-cast p1, Lokhttp3/Cookie;
- iget-object v0, p1, Lokhttp3/Cookie;->name:Ljava/lang/String;
- iget-object v2, p0, Lokhttp3/Cookie;->name:Ljava/lang/String;
- invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_1
- iget-object v0, p1, Lokhttp3/Cookie;->value:Ljava/lang/String;
- iget-object v2, p0, Lokhttp3/Cookie;->value:Ljava/lang/String;
- invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_1
- iget-object v0, p1, Lokhttp3/Cookie;->domain:Ljava/lang/String;
- iget-object v2, p0, Lokhttp3/Cookie;->domain:Ljava/lang/String;
- invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_1
- iget-object v0, p1, Lokhttp3/Cookie;->path:Ljava/lang/String;
- iget-object v2, p0, Lokhttp3/Cookie;->path:Ljava/lang/String;
- invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_1
- iget-wide v2, p1, Lokhttp3/Cookie;->expiresAt:J
- iget-wide v4, p0, Lokhttp3/Cookie;->expiresAt:J
- cmp-long v0, v2, v4
- if-nez v0, :cond_1
- iget-boolean v0, p1, Lokhttp3/Cookie;->secure:Z
- iget-boolean v2, p0, Lokhttp3/Cookie;->secure:Z
- if-ne v0, v2, :cond_1
- iget-boolean v0, p1, Lokhttp3/Cookie;->httpOnly:Z
- iget-boolean v2, p0, Lokhttp3/Cookie;->httpOnly:Z
- if-ne v0, v2, :cond_1
- iget-boolean v0, p1, Lokhttp3/Cookie;->persistent:Z
- iget-boolean v2, p0, Lokhttp3/Cookie;->persistent:Z
- if-ne v0, v2, :cond_1
- iget-boolean p1, p1, Lokhttp3/Cookie;->hostOnly:Z
- iget-boolean v0, p0, Lokhttp3/Cookie;->hostOnly:Z
- if-ne p1, v0, :cond_1
- const/4 v1, 0x1
- :cond_1
- return v1
- .end method
- .method public expiresAt()J
- .locals 2
- iget-wide v0, p0, Lokhttp3/Cookie;->expiresAt:J
- return-wide v0
- .end method
- .method public hashCode()I
- .locals 6
- iget-object v0, p0, Lokhttp3/Cookie;->name:Ljava/lang/String;
- invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
- move-result v0
- const/16 v1, 0x20f
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Cookie;->value:Ljava/lang/String;
- invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
- move-result v0
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Cookie;->domain:Ljava/lang/String;
- invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
- move-result v0
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Cookie;->path:Ljava/lang/String;
- invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
- move-result v0
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-wide v2, p0, Lokhttp3/Cookie;->expiresAt:J
- const/16 v0, 0x20
- ushr-long v4, v2, v0
- xor-long/2addr v2, v4
- long-to-int v0, v2
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-boolean v0, p0, Lokhttp3/Cookie;->secure:Z
- xor-int/lit8 v0, v0, 0x1
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-boolean v0, p0, Lokhttp3/Cookie;->httpOnly:Z
- xor-int/lit8 v0, v0, 0x1
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-boolean v0, p0, Lokhttp3/Cookie;->persistent:Z
- xor-int/lit8 v0, v0, 0x1
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-boolean v0, p0, Lokhttp3/Cookie;->hostOnly:Z
- xor-int/lit8 v0, v0, 0x1
- add-int/2addr v1, v0
- return v1
- .end method
- .method public hostOnly()Z
- .locals 1
- iget-boolean v0, p0, Lokhttp3/Cookie;->hostOnly:Z
- return v0
- .end method
- .method public httpOnly()Z
- .locals 1
- iget-boolean v0, p0, Lokhttp3/Cookie;->httpOnly:Z
- return v0
- .end method
- .method public matches(Lokhttp3/HttpUrl;)Z
- .locals 2
- iget-boolean v0, p0, Lokhttp3/Cookie;->hostOnly:Z
- if-eqz v0, :cond_0
- invoke-virtual {p1}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
- move-result-object v0
- iget-object v1, p0, Lokhttp3/Cookie;->domain:Ljava/lang/String;
- invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- goto :goto_0
- :cond_0
- invoke-virtual {p1}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
- move-result-object v0
- iget-object v1, p0, Lokhttp3/Cookie;->domain:Ljava/lang/String;
- invoke-static {v0, v1}, Lokhttp3/Cookie;->domainMatch(Ljava/lang/String;Ljava/lang/String;)Z
- move-result v0
- :goto_0
- const/4 v1, 0x0
- if-nez v0, :cond_1
- return v1
- :cond_1
- iget-object v0, p0, Lokhttp3/Cookie;->path:Ljava/lang/String;
- invoke-static {p1, v0}, Lokhttp3/Cookie;->pathMatch(Lokhttp3/HttpUrl;Ljava/lang/String;)Z
- move-result v0
- if-nez v0, :cond_2
- return v1
- :cond_2
- iget-boolean v0, p0, Lokhttp3/Cookie;->secure:Z
- if-eqz v0, :cond_3
- invoke-virtual {p1}, Lokhttp3/HttpUrl;->isHttps()Z
- move-result p1
- if-nez p1, :cond_3
- return v1
- :cond_3
- const/4 p1, 0x1
- return p1
- .end method
- .method public name()Ljava/lang/String;
- .locals 1
- iget-object v0, p0, Lokhttp3/Cookie;->name:Ljava/lang/String;
- return-object v0
- .end method
- .method public path()Ljava/lang/String;
- .locals 1
- iget-object v0, p0, Lokhttp3/Cookie;->path:Ljava/lang/String;
- return-object v0
- .end method
- .method public persistent()Z
- .locals 1
- iget-boolean v0, p0, Lokhttp3/Cookie;->persistent:Z
- return v0
- .end method
- .method public secure()Z
- .locals 1
- iget-boolean v0, p0, Lokhttp3/Cookie;->secure:Z
- return v0
- .end method
- .method public toString()Ljava/lang/String;
- .locals 1
- const/4 v0, 0x0
- invoke-virtual {p0, v0}, Lokhttp3/Cookie;->toString(Z)Ljava/lang/String;
- move-result-object v0
- return-object v0
- .end method
- .method toString(Z)Ljava/lang/String;
- .locals 6
- new-instance v0, Ljava/lang/StringBuilder;
- invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
- iget-object v1, p0, Lokhttp3/Cookie;->name:Ljava/lang/String;
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- const/16 v1, 0x3d
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
- iget-object v1, p0, Lokhttp3/Cookie;->value:Ljava/lang/String;
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- iget-boolean v1, p0, Lokhttp3/Cookie;->persistent:Z
- if-eqz v1, :cond_1
- iget-wide v1, p0, Lokhttp3/Cookie;->expiresAt:J
- const-wide/high16 v3, -0x8000000000000000L
- cmp-long v5, v1, v3
- if-nez v5, :cond_0
- const-string v1, "; max-age=0"
- goto :goto_0
- :cond_0
- const-string v1, "; expires="
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- new-instance v1, Ljava/util/Date;
- iget-wide v2, p0, Lokhttp3/Cookie;->expiresAt:J
- invoke-direct {v1, v2, v3}, Ljava/util/Date;-><init>(J)V
- invoke-static {v1}, Lokhttp3/internal/http/HttpDate;->format(Ljava/util/Date;)Ljava/lang/String;
- move-result-object v1
- :goto_0
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- :cond_1
- iget-boolean v1, p0, Lokhttp3/Cookie;->hostOnly:Z
- if-nez v1, :cond_3
- const-string v1, "; domain="
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- if-eqz p1, :cond_2
- const-string p1, "."
- invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- :cond_2
- iget-object p1, p0, Lokhttp3/Cookie;->domain:Ljava/lang/String;
- invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- :cond_3
- const-string p1, "; path="
- invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- iget-object p1, p0, Lokhttp3/Cookie;->path:Ljava/lang/String;
- invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- iget-boolean p1, p0, Lokhttp3/Cookie;->secure:Z
- if-eqz p1, :cond_4
- const-string p1, "; secure"
- invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- :cond_4
- iget-boolean p1, p0, Lokhttp3/Cookie;->httpOnly:Z
- if-eqz p1, :cond_5
- const-string p1, "; httponly"
- invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- :cond_5
- invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
- move-result-object p1
- return-object p1
- .end method
- .method public value()Ljava/lang/String;
- .locals 1
- iget-object v0, p0, Lokhttp3/Cookie;->value:Ljava/lang/String;
- return-object v0
- .end method
|