public class org.eclipse.jetty.server.ResourceContentFactory implements org.eclipse.jetty.http.HttpContent$ContentFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.server.ResourceContentFactory
super_class: java.lang.Object
{
private final org.eclipse.jetty.util.resource.ResourceFactory _factory;
descriptor: Lorg/eclipse/jetty/util/resource/ResourceFactory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.eclipse.jetty.http.MimeTypes _mimeTypes;
descriptor: Lorg/eclipse/jetty/http/MimeTypes;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.eclipse.jetty.http.CompressedContentFormat[] _precompressedFormats;
descriptor: [Lorg/eclipse/jetty/http/CompressedContentFormat;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.eclipse.jetty.util.resource.ResourceFactory, org.eclipse.jetty.http.MimeTypes, org.eclipse.jetty.http.CompressedContentFormat[]);
descriptor: (Lorg/eclipse/jetty/util/resource/ResourceFactory;Lorg/eclipse/jetty/http/MimeTypes;[Lorg/eclipse/jetty/http/CompressedContentFormat;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.eclipse.jetty.server.ResourceContentFactory._factory:Lorg/eclipse/jetty/util/resource/ResourceFactory;
2: aload 0
aload 2
putfield org.eclipse.jetty.server.ResourceContentFactory._mimeTypes:Lorg/eclipse/jetty/http/MimeTypes;
3: aload 0
aload 3
putfield org.eclipse.jetty.server.ResourceContentFactory._precompressedFormats:[Lorg/eclipse/jetty/http/CompressedContentFormat;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/server/ResourceContentFactory;
0 5 1 factory Lorg/eclipse/jetty/util/resource/ResourceFactory;
0 5 2 mimeTypes Lorg/eclipse/jetty/http/MimeTypes;
0 5 3 precompressedFormats [Lorg/eclipse/jetty/http/CompressedContentFormat;
MethodParameters:
Name Flags
factory
mimeTypes
precompressedFormats
public org.eclipse.jetty.http.HttpContent getContent(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Lorg/eclipse/jetty/http/HttpContent;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.eclipse.jetty.server.ResourceContentFactory._factory:Lorg/eclipse/jetty/util/resource/ResourceFactory;
aload 1
invokeinterface org.eclipse.jetty.util.resource.ResourceFactory.getResource:(Ljava/lang/String;)Lorg/eclipse/jetty/util/resource/Resource;
astore 3
start local 3 1: aload 0
aload 1
aload 3
iload 2
invokevirtual org.eclipse.jetty.server.ResourceContentFactory.load:(Ljava/lang/String;Lorg/eclipse/jetty/util/resource/Resource;I)Lorg/eclipse/jetty/http/HttpContent;
astore 4
start local 4 2: aload 4
3: areturn
end local 4 end local 3 4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
start local 3 5: new java.nio.file.InvalidPathException
dup
aload 1
ldc "Invalid PathInContext"
invokespecial java.nio.file.InvalidPathException.<init>:(Ljava/lang/String;Ljava/lang/String;)V
aload 3
invokevirtual java.nio.file.InvalidPathException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
checkcast java.nio.file.InvalidPathException
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jetty/server/ResourceContentFactory;
0 6 1 pathInContext Ljava/lang/String;
0 6 2 maxBufferSize I
1 4 3 resource Lorg/eclipse/jetty/util/resource/Resource;
2 4 4 loaded Lorg/eclipse/jetty/http/HttpContent;
5 6 3 t Ljava/lang/Throwable;
Exception table:
from to target type
0 3 4 Class java.lang.Throwable
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pathInContext
maxBufferSize
private org.eclipse.jetty.http.HttpContent load(java.lang.String, org.eclipse.jetty.util.resource.Resource, int);
descriptor: (Ljava/lang/String;Lorg/eclipse/jetty/util/resource/Resource;I)Lorg/eclipse/jetty/http/HttpContent;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=12, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
ifnull 1
aload 2
invokevirtual org.eclipse.jetty.util.resource.Resource.exists:()Z
ifne 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.eclipse.jetty.util.resource.Resource.isDirectory:()Z
ifeq 4
3: new org.eclipse.jetty.http.ResourceHttpContent
dup
aload 2
aload 0
getfield org.eclipse.jetty.server.ResourceContentFactory._mimeTypes:Lorg/eclipse/jetty/http/MimeTypes;
aload 2
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual org.eclipse.jetty.http.MimeTypes.getMimeByExtension:(Ljava/lang/String;)Ljava/lang/String;
iload 3
invokespecial org.eclipse.jetty.http.ResourceHttpContent.<init>:(Lorg/eclipse/jetty/util/resource/Resource;Ljava/lang/String;I)V
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.server.ResourceContentFactory._mimeTypes:Lorg/eclipse/jetty/http/MimeTypes;
aload 1
invokevirtual org.eclipse.jetty.http.MimeTypes.getMimeByExtension:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 5: aload 0
getfield org.eclipse.jetty.server.ResourceContentFactory._precompressedFormats:[Lorg/eclipse/jetty/http/CompressedContentFormat;
arraylength
ifle 20
6: new java.util.HashMap
dup
aload 0
getfield org.eclipse.jetty.server.ResourceContentFactory._precompressedFormats:[Lorg/eclipse/jetty/http/CompressedContentFormat;
arraylength
invokespecial java.util.HashMap.<init>:(I)V
astore 5
start local 5 7: aload 0
getfield org.eclipse.jetty.server.ResourceContentFactory._precompressedFormats:[Lorg/eclipse/jetty/http/CompressedContentFormat;
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 17
StackMap locals: org.eclipse.jetty.server.ResourceContentFactory java.lang.String org.eclipse.jetty.util.resource.Resource int java.lang.String java.util.Map top int int org.eclipse.jetty.http.CompressedContentFormat[]
StackMap stack:
8: aload 9
iload 7
aaload
astore 6
start local 6 9: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
getfield org.eclipse.jetty.http.CompressedContentFormat._extension:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 10
start local 10 10: aload 0
getfield org.eclipse.jetty.server.ResourceContentFactory._factory:Lorg/eclipse/jetty/util/resource/ResourceFactory;
aload 10
invokeinterface org.eclipse.jetty.util.resource.ResourceFactory.getResource:(Ljava/lang/String;)Lorg/eclipse/jetty/util/resource/Resource;
astore 11
start local 11 11: aload 11
ifnull 16
aload 11
invokevirtual org.eclipse.jetty.util.resource.Resource.exists:()Z
ifeq 16
aload 11
invokevirtual org.eclipse.jetty.util.resource.Resource.lastModified:()J
aload 2
invokevirtual org.eclipse.jetty.util.resource.Resource.lastModified:()J
lcmp
iflt 16
12: aload 11
invokevirtual org.eclipse.jetty.util.resource.Resource.length:()J
aload 2
invokevirtual org.eclipse.jetty.util.resource.Resource.length:()J
lcmp
ifge 16
13: aload 5
aload 6
14: new org.eclipse.jetty.http.ResourceHttpContent
dup
aload 11
aload 0
getfield org.eclipse.jetty.server.ResourceContentFactory._mimeTypes:Lorg/eclipse/jetty/http/MimeTypes;
aload 10
invokevirtual org.eclipse.jetty.http.MimeTypes.getMimeByExtension:(Ljava/lang/String;)Ljava/lang/String;
iload 3
invokespecial org.eclipse.jetty.http.ResourceHttpContent.<init>:(Lorg/eclipse/jetty/util/resource/Resource;Ljava/lang/String;I)V
15: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 11 end local 10 end local 6 16: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
17: iload 7
iload 8
if_icmplt 8
18: aload 5
invokeinterface java.util.Map.isEmpty:()Z
ifne 20
19: new org.eclipse.jetty.http.ResourceHttpContent
dup
aload 2
aload 4
iload 3
aload 5
invokespecial org.eclipse.jetty.http.ResourceHttpContent.<init>:(Lorg/eclipse/jetty/util/resource/Resource;Ljava/lang/String;ILjava/util/Map;)V
areturn
end local 5 20: StackMap locals: org.eclipse.jetty.server.ResourceContentFactory java.lang.String org.eclipse.jetty.util.resource.Resource int java.lang.String
StackMap stack:
new org.eclipse.jetty.http.ResourceHttpContent
dup
aload 2
aload 4
iload 3
invokespecial org.eclipse.jetty.http.ResourceHttpContent.<init>:(Lorg/eclipse/jetty/util/resource/Resource;Ljava/lang/String;I)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/eclipse/jetty/server/ResourceContentFactory;
0 21 1 pathInContext Ljava/lang/String;
0 21 2 resource Lorg/eclipse/jetty/util/resource/Resource;
0 21 3 maxBufferSize I
5 21 4 mt Ljava/lang/String;
7 20 5 compressedContents Ljava/util/Map<Lorg/eclipse/jetty/http/CompressedContentFormat;Lorg/eclipse/jetty/http/HttpContent;>;
9 16 6 format Lorg/eclipse/jetty/http/CompressedContentFormat;
10 16 10 compressedPathInContext Ljava/lang/String;
11 16 11 compressedResource Lorg/eclipse/jetty/util/resource/Resource;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pathInContext
resource
maxBufferSize
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "ResourceContentFactory["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.eclipse.jetty.server.ResourceContentFactory._factory:Lorg/eclipse/jetty/util/resource/ResourceFactory;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]@"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.Object.hashCode:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/server/ResourceContentFactory;
}
SourceFile: "ResourceContentFactory.java"
InnerClasses:
public abstract ContentFactory = org.eclipse.jetty.http.HttpContent$ContentFactory of org.eclipse.jetty.http.HttpContent