class org.glassfish.grizzly.http2.EncoderUtils extends org.glassfish.grizzly.http2.EncoderDecoderUtilsBase
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.glassfish.grizzly.http2.EncoderUtils
super_class: org.glassfish.grizzly.http2.EncoderDecoderUtilsBase
{
private static final java.lang.String HTTP;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "http"
private static final java.lang.String HTTPS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "https"
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/http2/EncoderUtils;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.glassfish.grizzly.http2.EncoderUtils.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.glassfish.grizzly.http2.EncoderDecoderUtilsBase.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/http2/EncoderUtils;
static org.glassfish.grizzly.Buffer encodeResponseHeaders(org.glassfish.grizzly.http2.Http2Session, org.glassfish.grizzly.http.HttpResponsePacket, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Lorg/glassfish/grizzly/http2/Http2Session;Lorg/glassfish/grizzly/http/HttpResponsePacket;Ljava/util/Map;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.glassfish.grizzly.http2.EncoderUtils.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.glassfish.grizzly.http2.Http2Session.getDeflaterLock:()Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.isLocked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.glassfish.grizzly.http.HttpResponsePacket.getHeaders:()Lorg/glassfish/grizzly/http/util/MimeHeaders;
astore 3
start local 3 2: aload 3
getstatic org.glassfish.grizzly.http.util.Header.Connection:Lorg/glassfish/grizzly/http/util/Header;
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.removeHeader:(Lorg/glassfish/grizzly/http/util/Header;)V
3: aload 3
getstatic org.glassfish.grizzly.http.util.Header.KeepAlive:Lorg/glassfish/grizzly/http/util/Header;
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.removeHeader:(Lorg/glassfish/grizzly/http/util/Header;)V
4: aload 3
getstatic org.glassfish.grizzly.http.util.Header.ProxyConnection:Lorg/glassfish/grizzly/http/util/Header;
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.removeHeader:(Lorg/glassfish/grizzly/http/util/Header;)V
5: aload 3
getstatic org.glassfish.grizzly.http.util.Header.TransferEncoding:Lorg/glassfish/grizzly/http/util/Header;
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.removeHeader:(Lorg/glassfish/grizzly/http/util/Header;)V
6: aload 3
getstatic org.glassfish.grizzly.http.util.Header.Upgrade:Lorg/glassfish/grizzly/http/util/Header;
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.removeHeader:(Lorg/glassfish/grizzly/http/util/Header;)V
7: aload 0
invokevirtual org.glassfish.grizzly.http2.Http2Session.getHeadersEncoder:()Lorg/glassfish/grizzly/http2/HeadersEncoder;
astore 4
start local 4 8: aload 4
ldc ":status"
aload 1
invokevirtual org.glassfish.grizzly.http.HttpResponsePacket.getHttpStatus:()Lorg/glassfish/grizzly/http/util/HttpStatus;
invokevirtual org.glassfish.grizzly.http.util.HttpStatus.getStatusCode:()I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
aload 2
invokevirtual org.glassfish.grizzly.http2.HeadersEncoder.encodeHeader:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
9: aload 3
aload 4
aload 2
invokestatic org.glassfish.grizzly.http2.EncoderUtils.encodeUserHeaders:(Lorg/glassfish/grizzly/http/util/MimeHeaders;Lorg/glassfish/grizzly/http2/HeadersEncoder;Ljava/util/Map;)V
10: aload 4
invokevirtual org.glassfish.grizzly.http2.HeadersEncoder.flushHeaders:()Lorg/glassfish/grizzly/Buffer;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 http2Session Lorg/glassfish/grizzly/http2/Http2Session;
0 11 1 response Lorg/glassfish/grizzly/http/HttpResponsePacket;
0 11 2 capture Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 11 3 headers Lorg/glassfish/grizzly/http/util/MimeHeaders;
8 11 4 encoder Lorg/glassfish/grizzly/http2/HeadersEncoder;
Exceptions:
throws java.io.IOException
Signature: (Lorg/glassfish/grizzly/http2/Http2Session;Lorg/glassfish/grizzly/http/HttpResponsePacket;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Lorg/glassfish/grizzly/Buffer;
MethodParameters:
Name Flags
http2Session final
response final
capture final
static org.glassfish.grizzly.Buffer encodeRequestHeaders(org.glassfish.grizzly.http2.Http2Session, org.glassfish.grizzly.http.HttpRequestPacket, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Lorg/glassfish/grizzly/http2/Http2Session;Lorg/glassfish/grizzly/http/HttpRequestPacket;Ljava/util/Map;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=15, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.glassfish.grizzly.http2.EncoderUtils.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.glassfish.grizzly.http2.Http2Session.getDeflaterLock:()Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.isLocked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
iconst_m1
istore 3
start local 3 2: iconst_m1
istore 4
start local 4 3: aload 1
invokevirtual org.glassfish.grizzly.http.HttpRequestPacket.getRequestURI:()Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 5
start local 5 4: aload 5
invokevirtual java.lang.String.length:()I
istore 6
start local 6 5: aload 5
bipush 47
invokevirtual java.lang.String.indexOf:(I)I
istore 7
start local 7 6: iload 7
ifle 9
iload 7
iload 6
iconst_1
isub
if_icmpge 9
aload 5
iload 7
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 58
if_icmpne 9
aload 5
iload 7
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpne 9
7: iconst_0
istore 3
8: iload 7
iconst_1
isub
istore 4
9: StackMap locals: org.glassfish.grizzly.http2.Http2Session org.glassfish.grizzly.http.HttpRequestPacket java.util.Map int int java.lang.String int int
StackMap stack:
iload 3
iconst_m1
if_icmpne 10
iload 7
goto 11
StackMap locals:
StackMap stack:
10: aload 5
bipush 47
iload 7
iconst_2
iadd
invokevirtual java.lang.String.indexOf:(II)I
StackMap locals:
StackMap stack: int
11: istore 8
start local 8 12: iload 6
iload 8
isub
istore 9
start local 9 13: iload 8
iconst_m1
if_icmpne 15
14: new java.lang.IllegalStateException
dup
ldc "Request URI path is not set"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals: int int
StackMap stack:
aload 1
invokevirtual org.glassfish.grizzly.http.HttpRequestPacket.getHeaders:()Lorg/glassfish/grizzly/http/util/MimeHeaders;
astore 10
start local 10 16: aload 10
getstatic org.glassfish.grizzly.http.util.Header.Host:Lorg/glassfish/grizzly/http/util/Header;
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.getHeader:(Lorg/glassfish/grizzly/http/util/Header;)Ljava/lang/String;
astore 11
start local 11 17: aload 11
ifnonnull 21
18: iload 3
iconst_m1
if_icmpne 20
19: new java.lang.IllegalStateException
dup
ldc "Missing the Host header"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals: org.glassfish.grizzly.http.util.MimeHeaders java.lang.String
StackMap stack:
aload 5
iload 3
iload 4
iadd
iconst_3
iadd
iload 8
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 11
21: StackMap locals:
StackMap stack:
aload 10
getstatic org.glassfish.grizzly.http.util.Header.Connection:Lorg/glassfish/grizzly/http/util/Header;
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.removeHeader:(Lorg/glassfish/grizzly/http/util/Header;)V
22: aload 10
getstatic org.glassfish.grizzly.http.util.Header.KeepAlive:Lorg/glassfish/grizzly/http/util/Header;
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.removeHeader:(Lorg/glassfish/grizzly/http/util/Header;)V
23: aload 10
getstatic org.glassfish.grizzly.http.util.Header.ProxyConnection:Lorg/glassfish/grizzly/http/util/Header;
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.removeHeader:(Lorg/glassfish/grizzly/http/util/Header;)V
24: aload 10
getstatic org.glassfish.grizzly.http.util.Header.TransferEncoding:Lorg/glassfish/grizzly/http/util/Header;
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.removeHeader:(Lorg/glassfish/grizzly/http/util/Header;)V
25: aload 10
getstatic org.glassfish.grizzly.http.util.Header.Upgrade:Lorg/glassfish/grizzly/http/util/Header;
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.removeHeader:(Lorg/glassfish/grizzly/http/util/Header;)V
26: aload 0
invokevirtual org.glassfish.grizzly.http2.Http2Session.getHeadersEncoder:()Lorg/glassfish/grizzly/http2/HeadersEncoder;
astore 12
start local 12 27: aload 12
ldc ":method"
aload 1
invokevirtual org.glassfish.grizzly.http.HttpRequestPacket.getMethod:()Lorg/glassfish/grizzly/http/Method;
invokevirtual org.glassfish.grizzly.http.Method.toString:()Ljava/lang/String;
aload 2
invokevirtual org.glassfish.grizzly.http2.HeadersEncoder.encodeHeader:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
28: iload 4
ifle 31
29: aload 12
ldc ":scheme"
aload 5
iconst_0
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
aload 2
invokevirtual org.glassfish.grizzly.http2.HeadersEncoder.encodeHeader:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
30: goto 34
31: StackMap locals: org.glassfish.grizzly.http2.HeadersEncoder
StackMap stack:
aload 12
ldc ":scheme"
aload 0
invokevirtual org.glassfish.grizzly.http2.Http2Session.getConnection:()Lorg/glassfish/grizzly/Connection;
invokestatic org.glassfish.grizzly.ssl.SSLUtils.getSSLEngine:(Lorg/glassfish/grizzly/Connection;)Ljavax/net/ssl/SSLEngine;
ifnonnull 32
ldc "http"
goto 33
StackMap locals: org.glassfish.grizzly.http2.Http2Session org.glassfish.grizzly.http.HttpRequestPacket java.util.Map int int java.lang.String int int int int org.glassfish.grizzly.http.util.MimeHeaders java.lang.String org.glassfish.grizzly.http2.HeadersEncoder
StackMap stack: org.glassfish.grizzly.http2.HeadersEncoder java.lang.String
32: ldc "https"
StackMap locals: org.glassfish.grizzly.http2.Http2Session org.glassfish.grizzly.http.HttpRequestPacket java.util.Map int int java.lang.String int int int int org.glassfish.grizzly.http.util.MimeHeaders java.lang.String org.glassfish.grizzly.http2.HeadersEncoder
StackMap stack: org.glassfish.grizzly.http2.HeadersEncoder java.lang.String java.lang.String
33: aload 2
invokevirtual org.glassfish.grizzly.http2.HeadersEncoder.encodeHeader:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
34: StackMap locals:
StackMap stack:
aload 12
ldc ":authority"
aload 11
aload 2
invokevirtual org.glassfish.grizzly.http2.HeadersEncoder.encodeHeader:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
35: iload 9
aload 5
invokevirtual java.lang.String.length:()I
if_icmpne 36
aload 5
goto 37
StackMap locals:
StackMap stack:
36: aload 5
iload 8
iload 8
iload 9
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
37: astore 13
start local 13 38: aload 1
invokevirtual org.glassfish.grizzly.http.HttpRequestPacket.getQueryStringDC:()Lorg/glassfish/grizzly/http/util/DataChunk;
astore 14
start local 14 39: aload 14
invokevirtual org.glassfish.grizzly.http.util.DataChunk.isNull:()Z
ifne 41
40: new java.lang.StringBuilder
dup
aload 13
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 63
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 14
getstatic org.glassfish.grizzly.utils.Charsets.UTF8_CHARSET:Ljava/nio/charset/Charset;
invokevirtual org.glassfish.grizzly.http.util.DataChunk.toString:(Ljava/nio/charset/Charset;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 13
41: StackMap locals: java.lang.String org.glassfish.grizzly.http.util.DataChunk
StackMap stack:
aload 12
ldc ":path"
aload 13
aload 2
invokevirtual org.glassfish.grizzly.http2.HeadersEncoder.encodeHeader:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
42: aload 10
aload 12
aload 2
invokestatic org.glassfish.grizzly.http2.EncoderUtils.encodeUserHeaders:(Lorg/glassfish/grizzly/http/util/MimeHeaders;Lorg/glassfish/grizzly/http2/HeadersEncoder;Ljava/util/Map;)V
43: aload 12
invokevirtual org.glassfish.grizzly.http2.HeadersEncoder.flushHeaders:()Lorg/glassfish/grizzly/Buffer;
areturn
end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 44 0 http2Session Lorg/glassfish/grizzly/http2/Http2Session;
0 44 1 request Lorg/glassfish/grizzly/http/HttpRequestPacket;
0 44 2 capture Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 44 3 schemeStart I
3 44 4 schemeLen I
4 44 5 requestURI Ljava/lang/String;
5 44 6 len I
6 44 7 idx I
12 44 8 pathStart I
13 44 9 pathLen I
16 44 10 headers Lorg/glassfish/grizzly/http/util/MimeHeaders;
17 44 11 hostHeader Ljava/lang/String;
27 44 12 encoder Lorg/glassfish/grizzly/http2/HeadersEncoder;
38 44 13 path Ljava/lang/String;
39 44 14 query Lorg/glassfish/grizzly/http/util/DataChunk;
Exceptions:
throws java.io.IOException
Signature: (Lorg/glassfish/grizzly/http2/Http2Session;Lorg/glassfish/grizzly/http/HttpRequestPacket;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Lorg/glassfish/grizzly/Buffer;
MethodParameters:
Name Flags
http2Session final
request final
capture final
static org.glassfish.grizzly.Buffer encodeTrailerHeaders(org.glassfish.grizzly.http2.Http2Session, org.glassfish.grizzly.http.util.MimeHeaders, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Lorg/glassfish/grizzly/http2/Http2Session;Lorg/glassfish/grizzly/http/util/MimeHeaders;Ljava/util/Map;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.glassfish.grizzly.http2.EncoderUtils.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.glassfish.grizzly.http2.Http2Session.getDeflaterLock:()Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.isLocked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
ifnull 2
aload 1
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.size:()I
ifne 3
2: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.memory.Buffers.EMPTY_BUFFER:Lorg/glassfish/grizzly/Buffer;
areturn
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.http2.Http2Session.getHeadersEncoder:()Lorg/glassfish/grizzly/http2/HeadersEncoder;
astore 3
start local 3 4: aload 1
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.names:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 5
goto 7
StackMap locals: org.glassfish.grizzly.http2.Http2Session org.glassfish.grizzly.http.util.MimeHeaders java.util.Map org.glassfish.grizzly.http2.HeadersEncoder top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 6: aload 3
aload 4
aload 1
aload 4
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.getHeader:(Ljava/lang/String;)Ljava/lang/String;
aload 2
invokevirtual org.glassfish.grizzly.http2.HeadersEncoder.encodeHeader:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
end local 4 7: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: aload 3
invokevirtual org.glassfish.grizzly.http2.HeadersEncoder.flushHeaders:()Lorg/glassfish/grizzly/Buffer;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 http2Session Lorg/glassfish/grizzly/http2/Http2Session;
0 9 1 trailers Lorg/glassfish/grizzly/http/util/MimeHeaders;
0 9 2 capture Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
4 9 3 encoder Lorg/glassfish/grizzly/http2/HeadersEncoder;
6 7 4 name Ljava/lang/String;
Signature: (Lorg/glassfish/grizzly/http2/Http2Session;Lorg/glassfish/grizzly/http/util/MimeHeaders;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Lorg/glassfish/grizzly/Buffer;
MethodParameters:
Name Flags
http2Session final
trailers final
capture final
private static void encodeUserHeaders(org.glassfish.grizzly.http.util.MimeHeaders, org.glassfish.grizzly.http2.HeadersEncoder, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Lorg/glassfish/grizzly/http/util/MimeHeaders;Lorg/glassfish/grizzly/http2/HeadersEncoder;Ljava/util/Map;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.size:()I
istore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 9
3: StackMap locals: int int
StackMap stack:
aload 0
iload 4
iconst_1
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.setSerialized:(IZ)Z
ifne 8
4: aload 0
iload 4
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.getName:(I)Lorg/glassfish/grizzly/http/util/DataChunk;
invokestatic org.glassfish.grizzly.http2.EncoderUtils.nameToLowerCase:(Lorg/glassfish/grizzly/http/util/DataChunk;)Ljava/lang/String;
astore 5
start local 5 5: aload 0
iload 4
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.getValue:(I)Lorg/glassfish/grizzly/http/util/DataChunk;
astore 6
start local 6 6: aload 6
invokevirtual org.glassfish.grizzly.http.util.DataChunk.isNull:()Z
ifne 8
7: aload 1
aload 5
aload 6
invokevirtual org.glassfish.grizzly.http.util.DataChunk.toString:()Ljava/lang/String;
aload 2
invokevirtual org.glassfish.grizzly.http2.HeadersEncoder.encodeHeader:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
end local 6 end local 5 8: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 3
if_icmplt 3
end local 4 10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 headers Lorg/glassfish/grizzly/http/util/MimeHeaders;
0 11 1 encoder Lorg/glassfish/grizzly/http2/HeadersEncoder;
0 11 2 capture Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 11 3 mimeHeadersCount I
2 10 4 i I
5 8 5 nameStr Ljava/lang/String;
6 8 6 value Lorg/glassfish/grizzly/http/util/DataChunk;
Exceptions:
throws java.io.IOException
Signature: (Lorg/glassfish/grizzly/http/util/MimeHeaders;Lorg/glassfish/grizzly/http2/HeadersEncoder;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
headers final
encoder final
capture final
private static byte[] nameToLowerCaseByteArray(org.glassfish.grizzly.http.util.DataChunk);
descriptor: (Lorg/glassfish/grizzly/http/util/DataChunk;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getLength:()I
istore 1
start local 1 1: iload 1
newarray 8
astore 2
start local 2 2: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getType:()Lorg/glassfish/grizzly/http/util/DataChunk$Type;
getstatic org.glassfish.grizzly.http.util.DataChunk$Type.Bytes:Lorg/glassfish/grizzly/http/util/DataChunk$Type;
if_acmpne 12
3: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getByteChunk:()Lorg/glassfish/grizzly/http/util/ByteChunk;
astore 3
start local 3 4: aload 3
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getBuffer:()[B
astore 4
start local 4 5: aload 3
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getStart:()I
istore 5
start local 5 6: iconst_0
istore 6
start local 6 7: goto 10
8: StackMap locals: org.glassfish.grizzly.http.util.DataChunk int byte[] org.glassfish.grizzly.http.util.ByteChunk byte[] int int
StackMap stack:
aload 2
iload 6
aload 4
iload 6
iload 5
iadd
baload
invokestatic org.glassfish.grizzly.http.util.Ascii.toLower:(I)I
i2b
bastore
9: iinc 6 1
StackMap locals:
StackMap stack:
10: iload 6
iload 1
if_icmplt 8
end local 6 end local 5 end local 4 end local 3 11: goto 28
StackMap locals: org.glassfish.grizzly.http.util.DataChunk int byte[]
StackMap stack:
12: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getType:()Lorg/glassfish/grizzly/http/util/DataChunk$Type;
getstatic org.glassfish.grizzly.http.util.DataChunk$Type.Buffer:Lorg/glassfish/grizzly/http/util/DataChunk$Type;
if_acmpne 22
13: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getBufferChunk:()Lorg/glassfish/grizzly/http/util/BufferChunk;
astore 3
start local 3 14: aload 3
invokevirtual org.glassfish.grizzly.http.util.BufferChunk.getBuffer:()Lorg/glassfish/grizzly/Buffer;
astore 4
start local 4 15: aload 3
invokevirtual org.glassfish.grizzly.http.util.BufferChunk.getStart:()I
istore 5
start local 5 16: iconst_0
istore 6
start local 6 17: goto 20
18: StackMap locals: org.glassfish.grizzly.http.util.DataChunk int byte[] org.glassfish.grizzly.http.util.BufferChunk org.glassfish.grizzly.Buffer int int
StackMap stack:
aload 2
iload 6
aload 4
iload 6
iload 5
iadd
invokeinterface org.glassfish.grizzly.Buffer.get:(I)B
invokestatic org.glassfish.grizzly.http.util.Ascii.toLower:(I)I
i2b
bastore
19: iinc 6 1
StackMap locals:
StackMap stack:
20: iload 6
iload 1
if_icmplt 18
end local 6 end local 5 end local 4 end local 3 21: goto 28
22: StackMap locals: org.glassfish.grizzly.http.util.DataChunk int byte[]
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.toString:()Ljava/lang/String;
astore 3
start local 3 23: iconst_0
istore 4
start local 4 24: goto 27
25: StackMap locals: java.lang.String int
StackMap stack:
aload 2
iload 4
aload 3
iload 4
invokevirtual java.lang.String.charAt:(I)C
invokestatic org.glassfish.grizzly.http.util.Ascii.toLower:(I)I
i2b
bastore
26: iinc 4 1
StackMap locals:
StackMap stack:
27: iload 4
iload 1
if_icmplt 25
end local 4 end local 3 28: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 name Lorg/glassfish/grizzly/http/util/DataChunk;
1 29 1 length I
2 29 2 lowercase [B
4 11 3 byteChunk Lorg/glassfish/grizzly/http/util/ByteChunk;
5 11 4 bytes [B
6 11 5 offs I
7 11 6 i I
14 21 3 bufferChunk Lorg/glassfish/grizzly/http/util/BufferChunk;
15 21 4 buffer Lorg/glassfish/grizzly/Buffer;
16 21 5 offs I
17 21 6 i I
23 28 3 s Ljava/lang/String;
24 28 4 i I
MethodParameters:
Name Flags
name final
private static java.lang.String nameToLowerCase(org.glassfish.grizzly.http.util.DataChunk);
descriptor: (Lorg/glassfish/grizzly/http/util/DataChunk;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getLength:()I
istore 1
start local 1 1: new java.lang.StringBuilder
dup
iload 1
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 2
start local 2 2: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getType:()Lorg/glassfish/grizzly/http/util/DataChunk$Type;
getstatic org.glassfish.grizzly.http.util.DataChunk$Type.Bytes:Lorg/glassfish/grizzly/http/util/DataChunk$Type;
if_acmpne 12
3: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getByteChunk:()Lorg/glassfish/grizzly/http/util/ByteChunk;
astore 3
start local 3 4: aload 3
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getBuffer:()[B
astore 4
start local 4 5: aload 3
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getStart:()I
istore 5
start local 5 6: iconst_0
istore 6
start local 6 7: goto 10
8: StackMap locals: org.glassfish.grizzly.http.util.DataChunk int java.lang.StringBuilder org.glassfish.grizzly.http.util.ByteChunk byte[] int int
StackMap stack:
aload 2
aload 4
iload 6
iload 5
iadd
baload
invokestatic org.glassfish.grizzly.http.util.Ascii.toLower:(I)I
i2c
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
9: iinc 6 1
StackMap locals:
StackMap stack:
10: iload 6
iload 1
if_icmplt 8
end local 6 end local 5 end local 4 end local 3 11: goto 28
StackMap locals: org.glassfish.grizzly.http.util.DataChunk int java.lang.StringBuilder
StackMap stack:
12: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getType:()Lorg/glassfish/grizzly/http/util/DataChunk$Type;
getstatic org.glassfish.grizzly.http.util.DataChunk$Type.Buffer:Lorg/glassfish/grizzly/http/util/DataChunk$Type;
if_acmpne 22
13: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getBufferChunk:()Lorg/glassfish/grizzly/http/util/BufferChunk;
astore 3
start local 3 14: aload 3
invokevirtual org.glassfish.grizzly.http.util.BufferChunk.getBuffer:()Lorg/glassfish/grizzly/Buffer;
astore 4
start local 4 15: aload 3
invokevirtual org.glassfish.grizzly.http.util.BufferChunk.getStart:()I
istore 5
start local 5 16: iconst_0
istore 6
start local 6 17: goto 20
18: StackMap locals: org.glassfish.grizzly.http.util.DataChunk int java.lang.StringBuilder org.glassfish.grizzly.http.util.BufferChunk org.glassfish.grizzly.Buffer int int
StackMap stack:
aload 2
aload 4
iload 6
iload 5
iadd
invokeinterface org.glassfish.grizzly.Buffer.get:(I)B
invokestatic org.glassfish.grizzly.http.util.Ascii.toLower:(I)I
i2c
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
19: iinc 6 1
StackMap locals:
StackMap stack:
20: iload 6
iload 1
if_icmplt 18
end local 6 end local 5 end local 4 end local 3 21: goto 28
22: StackMap locals: org.glassfish.grizzly.http.util.DataChunk int java.lang.StringBuilder
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.toString:()Ljava/lang/String;
astore 3
start local 3 23: iconst_0
istore 4
start local 4 24: goto 27
25: StackMap locals: java.lang.String int
StackMap stack:
aload 2
aload 3
iload 4
invokevirtual java.lang.String.charAt:(I)C
invokestatic org.glassfish.grizzly.http.util.Ascii.toLower:(I)I
i2c
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
26: iinc 4 1
StackMap locals:
StackMap stack:
27: iload 4
iload 1
if_icmplt 25
end local 4 end local 3 28: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 name Lorg/glassfish/grizzly/http/util/DataChunk;
1 29 1 length I
2 29 2 sb Ljava/lang/StringBuilder;
4 11 3 byteChunk Lorg/glassfish/grizzly/http/util/ByteChunk;
5 11 4 bytes [B
6 11 5 offs I
7 11 6 i I
14 21 3 bufferChunk Lorg/glassfish/grizzly/http/util/BufferChunk;
15 21 4 buffer Lorg/glassfish/grizzly/Buffer;
16 21 5 offs I
17 21 6 i I
23 28 3 s Ljava/lang/String;
24 28 4 i I
MethodParameters:
Name Flags
name final
private static int valueToByteArray(org.glassfish.grizzly.http.util.DataChunk, byte[], int);
descriptor: (Lorg/glassfish/grizzly/http/util/DataChunk;[BI)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getLength:()I
istore 3
start local 3 1: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getType:()Lorg/glassfish/grizzly/http/util/DataChunk$Type;
getstatic org.glassfish.grizzly.http.util.DataChunk$Type.Bytes:Lorg/glassfish/grizzly/http/util/DataChunk$Type;
if_acmpne 7
2: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getByteChunk:()Lorg/glassfish/grizzly/http/util/ByteChunk;
astore 4
start local 4 3: aload 4
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getBuffer:()[B
astore 5
start local 5 4: aload 4
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getStart:()I
istore 6
start local 6 5: aload 5
iload 6
aload 1
iload 2
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
end local 6 end local 5 end local 4 6: goto 23
StackMap locals: int
StackMap stack:
7: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getType:()Lorg/glassfish/grizzly/http/util/DataChunk$Type;
getstatic org.glassfish.grizzly.http.util.DataChunk$Type.Buffer:Lorg/glassfish/grizzly/http/util/DataChunk$Type;
if_acmpne 17
8: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getBufferChunk:()Lorg/glassfish/grizzly/http/util/BufferChunk;
astore 4
start local 4 9: aload 4
invokevirtual org.glassfish.grizzly.http.util.BufferChunk.getBuffer:()Lorg/glassfish/grizzly/Buffer;
astore 5
start local 5 10: aload 4
invokevirtual org.glassfish.grizzly.http.util.BufferChunk.getStart:()I
istore 6
start local 6 11: aload 5
invokeinterface org.glassfish.grizzly.Buffer.position:()I
istore 7
start local 7 12: aload 5
invokeinterface org.glassfish.grizzly.Buffer.limit:()I
istore 8
start local 8 13: aload 5
iload 6
iload 6
iload 3
iadd
invokestatic org.glassfish.grizzly.memory.Buffers.setPositionLimit:(Lorg/glassfish/grizzly/Buffer;II)V
14: aload 5
aload 1
iload 2
iload 3
invokeinterface org.glassfish.grizzly.Buffer.get:([BII)Lorg/glassfish/grizzly/Buffer;
pop
15: aload 5
iload 7
iload 8
invokestatic org.glassfish.grizzly.memory.Buffers.setPositionLimit:(Lorg/glassfish/grizzly/Buffer;II)V
end local 8 end local 7 end local 6 end local 5 end local 4 16: goto 23
17: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.toString:()Ljava/lang/String;
astore 4
start local 4 18: iconst_0
istore 5
start local 5 19: goto 22
20: StackMap locals: java.lang.String int
StackMap stack:
aload 1
iload 2
iload 5
iadd
aload 4
iload 5
invokevirtual java.lang.String.charAt:(I)C
i2b
bastore
21: iinc 5 1
StackMap locals:
StackMap stack:
22: iload 5
iload 3
if_icmplt 20
end local 5 end local 4 23: StackMap locals:
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 value Lorg/glassfish/grizzly/http/util/DataChunk;
0 24 1 dstArray [B
0 24 2 arrayOffs I
1 24 3 length I
3 6 4 byteChunk Lorg/glassfish/grizzly/http/util/ByteChunk;
4 6 5 bytes [B
5 6 6 offs I
9 16 4 bufferChunk Lorg/glassfish/grizzly/http/util/BufferChunk;
10 16 5 buffer Lorg/glassfish/grizzly/Buffer;
11 16 6 offs I
12 16 7 oldPos I
13 16 8 oldLim I
18 23 4 s Ljava/lang/String;
19 23 5 i I
MethodParameters:
Name Flags
value final
dstArray final
arrayOffs
private static byte[] valueToByteArray(org.glassfish.grizzly.http.util.DataChunk);
descriptor: (Lorg/glassfish/grizzly/http/util/DataChunk;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=8, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getLength:()I
istore 1
start local 1 1: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getType:()Lorg/glassfish/grizzly/http/util/DataChunk$Type;
getstatic org.glassfish.grizzly.http.util.DataChunk$Type.Bytes:Lorg/glassfish/grizzly/http/util/DataChunk$Type;
if_acmpne 10
2: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getByteChunk:()Lorg/glassfish/grizzly/http/util/ByteChunk;
astore 2
start local 2 3: aload 2
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getBuffer:()[B
astore 3
start local 3 4: aload 2
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getStart:()I
istore 4
start local 4 5: aload 3
arraylength
iload 1
if_icmpne 7
6: aload 3
areturn
7: StackMap locals: org.glassfish.grizzly.http.util.DataChunk int org.glassfish.grizzly.http.util.ByteChunk byte[] int
StackMap stack:
iload 1
newarray 8
astore 5
start local 5 8: aload 3
iload 4
aload 5
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 5
areturn
end local 5 end local 4 end local 3 end local 2 10: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getType:()Lorg/glassfish/grizzly/http/util/DataChunk$Type;
getstatic org.glassfish.grizzly.http.util.DataChunk$Type.Buffer:Lorg/glassfish/grizzly/http/util/DataChunk$Type;
if_acmpne 23
11: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.getBufferChunk:()Lorg/glassfish/grizzly/http/util/BufferChunk;
astore 2
start local 2 12: aload 2
invokevirtual org.glassfish.grizzly.http.util.BufferChunk.getBuffer:()Lorg/glassfish/grizzly/Buffer;
astore 3
start local 3 13: aload 3
invokeinterface org.glassfish.grizzly.Buffer.hasArray:()Z
ifeq 15
aload 3
invokeinterface org.glassfish.grizzly.Buffer.array:()[B
arraylength
iload 1
if_icmpne 15
14: aload 3
invokeinterface org.glassfish.grizzly.Buffer.array:()[B
areturn
15: StackMap locals: org.glassfish.grizzly.http.util.BufferChunk org.glassfish.grizzly.Buffer
StackMap stack:
iload 1
newarray 8
astore 4
start local 4 16: aload 2
invokevirtual org.glassfish.grizzly.http.util.BufferChunk.getStart:()I
istore 5
start local 5 17: aload 3
invokeinterface org.glassfish.grizzly.Buffer.position:()I
istore 6
start local 6 18: aload 3
invokeinterface org.glassfish.grizzly.Buffer.limit:()I
istore 7
start local 7 19: aload 3
iload 5
iload 5
iload 1
iadd
invokestatic org.glassfish.grizzly.memory.Buffers.setPositionLimit:(Lorg/glassfish/grizzly/Buffer;II)V
20: aload 3
aload 4
invokeinterface org.glassfish.grizzly.Buffer.get:([B)Lorg/glassfish/grizzly/Buffer;
pop
21: aload 3
iload 6
iload 7
invokestatic org.glassfish.grizzly.memory.Buffers.setPositionLimit:(Lorg/glassfish/grizzly/Buffer;II)V
22: aload 4
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 23: StackMap locals:
StackMap stack:
iload 1
newarray 8
astore 2
start local 2 24: aload 0
invokevirtual org.glassfish.grizzly.http.util.DataChunk.toString:()Ljava/lang/String;
astore 3
start local 3 25: iconst_0
istore 4
start local 4 26: goto 29
27: StackMap locals: byte[] java.lang.String int
StackMap stack:
aload 2
iload 4
aload 3
iload 4
invokevirtual java.lang.String.charAt:(I)C
i2b
bastore
28: iinc 4 1
StackMap locals:
StackMap stack:
29: iload 4
iload 1
if_icmplt 27
end local 4 30: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 value Lorg/glassfish/grizzly/http/util/DataChunk;
1 31 1 length I
3 10 2 byteChunk Lorg/glassfish/grizzly/http/util/ByteChunk;
4 10 3 bytes [B
5 10 4 offs I
8 10 5 dstArray [B
12 23 2 bufferChunk Lorg/glassfish/grizzly/http/util/BufferChunk;
13 23 3 buffer Lorg/glassfish/grizzly/Buffer;
16 23 4 dstArray [B
17 23 5 offs I
18 23 6 oldPos I
19 23 7 oldLim I
24 31 2 dstArray [B
25 31 3 s Ljava/lang/String;
26 30 4 i I
MethodParameters:
Name Flags
value final
}
SourceFile: "EncoderUtils.java"
InnerClasses:
public final Type = org.glassfish.grizzly.http.util.DataChunk$Type of org.glassfish.grizzly.http.util.DataChunk