.class public final Lokhttp3/internal/ws/WebSocketExtensions; .super Ljava/lang/Object; .source "WebSocketExtensions.kt" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lokhttp3/internal/ws/WebSocketExtensions$Companion; } .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0015\n\u0002\u0010\u000e\n\u0002\u0008\u0002\u0008\u0086\u0008\u0018\u0000 \u001c2\u00020\u0001:\u0001\u001cBE\u0012\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0003\u0012\n\u0008\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u0012\u0008\u0008\u0002\u0010\u0006\u001a\u00020\u0003\u0012\n\u0008\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u0005\u0012\u0008\u0008\u0002\u0010\u0008\u001a\u00020\u0003\u0012\u0008\u0008\u0002\u0010\t\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\nJ\t\u0010\u000c\u001a\u00020\u0003H\u00c6\u0003J\u0010\u0010\r\u001a\u0004\u0018\u00010\u0005H\u00c6\u0003\u00a2\u0006\u0002\u0010\u000eJ\t\u0010\u000f\u001a\u00020\u0003H\u00c6\u0003J\u0010\u0010\u0010\u001a\u0004\u0018\u00010\u0005H\u00c6\u0003\u00a2\u0006\u0002\u0010\u000eJ\t\u0010\u0011\u001a\u00020\u0003H\u00c6\u0003J\t\u0010\u0012\u001a\u00020\u0003H\u00c6\u0003JN\u0010\u0013\u001a\u00020\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00032\n\u0008\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00052\u0008\u0008\u0002\u0010\u0006\u001a\u00020\u00032\n\u0008\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00052\u0008\u0008\u0002\u0010\u0008\u001a\u00020\u00032\u0008\u0008\u0002\u0010\t\u001a\u00020\u0003H\u00c6\u0001\u00a2\u0006\u0002\u0010\u0014J\u0013\u0010\u0015\u001a\u00020\u00032\u0008\u0010\u0016\u001a\u0004\u0018\u00010\u0001H\u00d6\u0003J\t\u0010\u0017\u001a\u00020\u0005H\u00d6\u0001J\u000e\u0010\u0018\u001a\u00020\u00032\u0006\u0010\u0019\u001a\u00020\u0003J\t\u0010\u001a\u001a\u00020\u001bH\u00d6\u0001R\u0014\u0010\u0004\u001a\u0004\u0018\u00010\u00058\u0006X\u0087\u0004\u00a2\u0006\u0004\n\u0002\u0010\u000bR\u0010\u0010\u0006\u001a\u00020\u00038\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0002\u001a\u00020\u00038\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0007\u001a\u0004\u0018\u00010\u00058\u0006X\u0087\u0004\u00a2\u0006\u0004\n\u0002\u0010\u000bR\u0010\u0010\u0008\u001a\u00020\u00038\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\t\u001a\u00020\u00038\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u001d" } d2 = { "Lokhttp3/internal/ws/WebSocketExtensions;", "", "perMessageDeflate", "", "clientMaxWindowBits", "", "clientNoContextTakeover", "serverMaxWindowBits", "serverNoContextTakeover", "unknownValues", "(ZLjava/lang/Integer;ZLjava/lang/Integer;ZZ)V", "Ljava/lang/Integer;", "component1", "component2", "()Ljava/lang/Integer;", "component3", "component4", "component5", "component6", "copy", "(ZLjava/lang/Integer;ZLjava/lang/Integer;ZZ)Lokhttp3/internal/ws/WebSocketExtensions;", "equals", "other", "hashCode", "noContextTakeover", "clientOriginated", "toString", "", "Companion", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # static fields .field public static final Companion:Lokhttp3/internal/ws/WebSocketExtensions$Companion; .field private static final HEADER_WEB_SOCKET_EXTENSION:Ljava/lang/String; = "Sec-WebSocket-Extensions" # instance fields .field public final clientMaxWindowBits:Ljava/lang/Integer; .field public final clientNoContextTakeover:Z .field public final perMessageDeflate:Z .field public final serverMaxWindowBits:Ljava/lang/Integer; .field public final serverNoContextTakeover:Z .field public final unknownValues:Z # direct methods .method static constructor ()V .locals 2 new-instance v0, Lokhttp3/internal/ws/WebSocketExtensions$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lokhttp3/internal/ws/WebSocketExtensions$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lokhttp3/internal/ws/WebSocketExtensions;->Companion:Lokhttp3/internal/ws/WebSocketExtensions$Companion; return-void .end method .method public constructor ()V .locals 9 const/4 v1, 0x0 const/4 v2, 0x0 const/4 v3, 0x0 const/4 v4, 0x0 const/4 v5, 0x0 const/4 v6, 0x0 const/16 v7, 0x3f const/4 v8, 0x0 move-object v0, p0 invoke-direct/range {v0 .. v8}, Lokhttp3/internal/ws/WebSocketExtensions;->(ZLjava/lang/Integer;ZLjava/lang/Integer;ZZILkotlin/jvm/internal/DefaultConstructorMarker;)V return-void .end method .method public constructor (ZLjava/lang/Integer;ZLjava/lang/Integer;ZZ)V .locals 0 .line 59 invoke-direct {p0}, Ljava/lang/Object;->()V iput-boolean p1, p0, Lokhttp3/internal/ws/WebSocketExtensions;->perMessageDeflate:Z iput-object p2, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientMaxWindowBits:Ljava/lang/Integer; iput-boolean p3, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientNoContextTakeover:Z iput-object p4, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverMaxWindowBits:Ljava/lang/Integer; iput-boolean p5, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverNoContextTakeover:Z iput-boolean p6, p0, Lokhttp3/internal/ws/WebSocketExtensions;->unknownValues:Z return-void .end method .method public synthetic constructor (ZLjava/lang/Integer;ZLjava/lang/Integer;ZZILkotlin/jvm/internal/DefaultConstructorMarker;)V .locals 2 and-int/lit8 p8, p7, 0x1 const/4 v0, 0x0 if-eqz p8, :cond_0 move p1, v0 :cond_0 and-int/lit8 p8, p7, 0x2 const/4 v1, 0x0 if-eqz p8, :cond_1 .line 64 move-object p2, v1 check-cast p2, Ljava/lang/Integer; move-object p2, v1 :cond_1 and-int/lit8 p8, p7, 0x4 if-eqz p8, :cond_2 move p3, v0 :cond_2 and-int/lit8 p8, p7, 0x8 if-eqz p8, :cond_3 .line 70 move-object p4, v1 check-cast p4, Ljava/lang/Integer; move-object p4, v1 :cond_3 and-int/lit8 p8, p7, 0x10 if-eqz p8, :cond_4 move p5, v0 :cond_4 and-int/lit8 p7, p7, 0x20 if-eqz p7, :cond_5 move p6, v0 .line 79 :cond_5 invoke-direct/range {p0 .. p6}, Lokhttp3/internal/ws/WebSocketExtensions;->(ZLjava/lang/Integer;ZLjava/lang/Integer;ZZ)V return-void .end method .method public static synthetic copy$default(Lokhttp3/internal/ws/WebSocketExtensions;ZLjava/lang/Integer;ZLjava/lang/Integer;ZZILjava/lang/Object;)Lokhttp3/internal/ws/WebSocketExtensions; .locals 4 and-int/lit8 p8, p7, 0x1 if-eqz p8, :cond_0 iget-boolean p1, p0, Lokhttp3/internal/ws/WebSocketExtensions;->perMessageDeflate:Z :cond_0 and-int/lit8 p8, p7, 0x2 if-eqz p8, :cond_1 iget-object p2, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientMaxWindowBits:Ljava/lang/Integer; :cond_1 move-object p8, p2 and-int/lit8 p2, p7, 0x4 if-eqz p2, :cond_2 iget-boolean p3, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientNoContextTakeover:Z :cond_2 move v0, p3 and-int/lit8 p2, p7, 0x8 if-eqz p2, :cond_3 iget-object p4, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverMaxWindowBits:Ljava/lang/Integer; :cond_3 move-object v1, p4 and-int/lit8 p2, p7, 0x10 if-eqz p2, :cond_4 iget-boolean p5, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverNoContextTakeover:Z :cond_4 move v2, p5 and-int/lit8 p2, p7, 0x20 if-eqz p2, :cond_5 iget-boolean p6, p0, Lokhttp3/internal/ws/WebSocketExtensions;->unknownValues:Z :cond_5 move v3, p6 move-object p2, p0 move p3, p1 move-object p4, p8 move p5, v0 move-object p6, v1 move p7, v2 move p8, v3 invoke-virtual/range {p2 .. p8}, Lokhttp3/internal/ws/WebSocketExtensions;->copy(ZLjava/lang/Integer;ZLjava/lang/Integer;ZZ)Lokhttp3/internal/ws/WebSocketExtensions; move-result-object p0 return-object p0 .end method # virtual methods .method public final component1()Z .locals 0 iget-boolean p0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->perMessageDeflate:Z return p0 .end method .method public final component2()Ljava/lang/Integer; .locals 0 iget-object p0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientMaxWindowBits:Ljava/lang/Integer; return-object p0 .end method .method public final component3()Z .locals 0 iget-boolean p0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientNoContextTakeover:Z return p0 .end method .method public final component4()Ljava/lang/Integer; .locals 0 iget-object p0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverMaxWindowBits:Ljava/lang/Integer; return-object p0 .end method .method public final component5()Z .locals 0 iget-boolean p0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverNoContextTakeover:Z return p0 .end method .method public final component6()Z .locals 0 iget-boolean p0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->unknownValues:Z return p0 .end method .method public final copy(ZLjava/lang/Integer;ZLjava/lang/Integer;ZZ)Lokhttp3/internal/ws/WebSocketExtensions; .locals 7 new-instance p0, Lokhttp3/internal/ws/WebSocketExtensions; move-object v0, p0 move v1, p1 move-object v2, p2 move v3, p3 move-object v4, p4 move v5, p5 move v6, p6 invoke-direct/range {v0 .. v6}, Lokhttp3/internal/ws/WebSocketExtensions;->(ZLjava/lang/Integer;ZLjava/lang/Integer;ZZ)V return-object p0 .end method .method public equals(Ljava/lang/Object;)Z .locals 2 if-eq p0, p1, :cond_1 instance-of v0, p1, Lokhttp3/internal/ws/WebSocketExtensions; if-eqz v0, :cond_0 check-cast p1, Lokhttp3/internal/ws/WebSocketExtensions; iget-boolean v0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->perMessageDeflate:Z iget-boolean v1, p1, Lokhttp3/internal/ws/WebSocketExtensions;->perMessageDeflate:Z if-ne v0, v1, :cond_0 iget-object v0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientMaxWindowBits:Ljava/lang/Integer; iget-object v1, p1, Lokhttp3/internal/ws/WebSocketExtensions;->clientMaxWindowBits:Ljava/lang/Integer; invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 iget-boolean v0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientNoContextTakeover:Z iget-boolean v1, p1, Lokhttp3/internal/ws/WebSocketExtensions;->clientNoContextTakeover:Z if-ne v0, v1, :cond_0 iget-object v0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverMaxWindowBits:Ljava/lang/Integer; iget-object v1, p1, Lokhttp3/internal/ws/WebSocketExtensions;->serverMaxWindowBits:Ljava/lang/Integer; invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 iget-boolean v0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverNoContextTakeover:Z iget-boolean v1, p1, Lokhttp3/internal/ws/WebSocketExtensions;->serverNoContextTakeover:Z if-ne v0, v1, :cond_0 iget-boolean p0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->unknownValues:Z iget-boolean p1, p1, Lokhttp3/internal/ws/WebSocketExtensions;->unknownValues:Z if-ne p0, p1, :cond_0 goto :goto_0 :cond_0 const/4 p0, 0x0 return p0 :cond_1 :goto_0 const/4 p0, 0x1 return p0 .end method .method public hashCode()I .locals 4 iget-boolean v0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->perMessageDeflate:Z const/4 v1, 0x1 if-eqz v0, :cond_0 move v0, v1 :cond_0 mul-int/lit8 v0, v0, 0x1f iget-object v2, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientMaxWindowBits:Ljava/lang/Integer; const/4 v3, 0x0 if-eqz v2, :cond_1 invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I move-result v2 goto :goto_0 :cond_1 move v2, v3 :goto_0 add-int/2addr v0, v2 mul-int/lit8 v0, v0, 0x1f iget-boolean v2, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientNoContextTakeover:Z if-eqz v2, :cond_2 move v2, v1 :cond_2 add-int/2addr v0, v2 mul-int/lit8 v0, v0, 0x1f iget-object v2, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverMaxWindowBits:Ljava/lang/Integer; if-eqz v2, :cond_3 invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I move-result v3 :cond_3 add-int/2addr v0, v3 mul-int/lit8 v0, v0, 0x1f iget-boolean v2, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverNoContextTakeover:Z if-eqz v2, :cond_4 move v2, v1 :cond_4 add-int/2addr v0, v2 mul-int/lit8 v0, v0, 0x1f iget-boolean p0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->unknownValues:Z if-eqz p0, :cond_5 goto :goto_1 :cond_5 move v1, p0 :goto_1 add-int/2addr v0, v1 return v0 .end method .method public final noContextTakeover(Z)Z .locals 0 if-eqz p1, :cond_0 iget-boolean p0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientNoContextTakeover:Z goto :goto_0 :cond_0 iget-boolean p0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverNoContextTakeover:Z :goto_0 return p0 .end method .method public toString()Ljava/lang/String; .locals 2 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "WebSocketExtensions(perMessageDeflate=" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-boolean v1, p0, Lokhttp3/internal/ws/WebSocketExtensions;->perMessageDeflate:Z invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", clientMaxWindowBits=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object v1, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientMaxWindowBits:Ljava/lang/Integer; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", clientNoContextTakeover=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-boolean v1, p0, Lokhttp3/internal/ws/WebSocketExtensions;->clientNoContextTakeover:Z invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", serverMaxWindowBits=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object v1, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverMaxWindowBits:Ljava/lang/Integer; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", serverNoContextTakeover=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-boolean v1, p0, Lokhttp3/internal/ws/WebSocketExtensions;->serverNoContextTakeover:Z invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", unknownValues=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-boolean p0, p0, Lokhttp3/internal/ws/WebSocketExtensions;->unknownValues:Z invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; move-result-object p0 const-string v0, ")" invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 return-object p0 .end method