public class io.dropwizard.assets.AssetsBundle implements io.dropwizard.Bundle
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.assets.AssetsBundle
super_class: java.lang.Object
{
private static final org.slf4j.Logger LOGGER;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String DEFAULT_ASSETS_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "assets"
private static final java.lang.String DEFAULT_INDEX_FILE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "index.htm"
private static final java.lang.String DEFAULT_PATH;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "/assets"
private final java.lang.String resourcePath;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String uriPath;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String indexFile;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String assetsName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/dropwizard/assets/AssetsBundle;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic io.dropwizard.assets.AssetsBundle.LOGGER:Lorg/slf4j/Logger;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ldc "/assets"
ldc "/assets"
ldc "index.htm"
ldc "assets"
invokespecial io.dropwizard.assets.AssetsBundle.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/assets/AssetsBundle;
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
ldc "index.htm"
ldc "assets"
invokespecial io.dropwizard.assets.AssetsBundle.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/assets/AssetsBundle;
0 2 1 path Ljava/lang/String;
MethodParameters:
Name Flags
path
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
ldc "index.htm"
ldc "assets"
invokespecial io.dropwizard.assets.AssetsBundle.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/assets/AssetsBundle;
0 2 1 resourcePath Ljava/lang/String;
0 2 2 uriPath Ljava/lang/String;
MethodParameters:
Name Flags
resourcePath
uriPath
public void <init>(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
ldc "assets"
invokespecial io.dropwizard.assets.AssetsBundle.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/assets/AssetsBundle;
0 2 1 resourcePath Ljava/lang/String;
0 2 2 uriPath Ljava/lang/String;
0 2 3 indexFile Ljava/lang/String;
MethodParameters:
Name Flags
resourcePath
uriPath
indexFile
public void <init>(java.lang.String, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ldc "%s is not an absolute path"
aload 1
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;Ljava/lang/Object;)V
2: ldc "/"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
iconst_0
goto 4
StackMap locals: io.dropwizard.assets.AssetsBundle java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: ldc "%s is the classpath root"
aload 1
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;Ljava/lang/Object;)V
5: aload 0
aload 1
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
aload 1
goto 7
StackMap locals:
StackMap stack: io.dropwizard.assets.AssetsBundle
6: 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
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: io.dropwizard.assets.AssetsBundle java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack: io.dropwizard.assets.AssetsBundle java.lang.String
7: putfield io.dropwizard.assets.AssetsBundle.resourcePath:Ljava/lang/String;
8: aload 0
aload 2
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 9
aload 2
goto 10
StackMap locals:
StackMap stack: io.dropwizard.assets.AssetsBundle
9: new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: io.dropwizard.assets.AssetsBundle java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack: io.dropwizard.assets.AssetsBundle java.lang.String
10: putfield io.dropwizard.assets.AssetsBundle.uriPath:Ljava/lang/String;
11: aload 0
aload 3
putfield io.dropwizard.assets.AssetsBundle.indexFile:Ljava/lang/String;
12: aload 0
aload 4
putfield io.dropwizard.assets.AssetsBundle.assetsName:Ljava/lang/String;
13: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lio/dropwizard/assets/AssetsBundle;
0 14 1 resourcePath Ljava/lang/String;
0 14 2 uriPath Ljava/lang/String;
0 14 3 indexFile Ljava/lang/String;
0 14 4 assetsName Ljava/lang/String;
MethodParameters:
Name Flags
resourcePath
uriPath
indexFile
assetsName
public void initialize(io.dropwizard.setup.Bootstrap<?>);
descriptor: (Lio/dropwizard/setup/Bootstrap;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/assets/AssetsBundle;
0 1 1 bootstrap Lio/dropwizard/setup/Bootstrap<*>;
Signature: (Lio/dropwizard/setup/Bootstrap<*>;)V
MethodParameters:
Name Flags
bootstrap
public void run(io.dropwizard.setup.Environment);
descriptor: (Lio/dropwizard/setup/Environment;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: getstatic io.dropwizard.assets.AssetsBundle.LOGGER:Lorg/slf4j/Logger;
ldc "Registering AssetBundle with name: {} for path {}"
aload 0
getfield io.dropwizard.assets.AssetsBundle.assetsName:Ljava/lang/String;
new java.lang.StringBuilder
dup
aload 0
getfield io.dropwizard.assets.AssetsBundle.uriPath:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 42
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 1
invokevirtual io.dropwizard.setup.Environment.servlets:()Lio/dropwizard/jetty/setup/ServletEnvironment;
aload 0
getfield io.dropwizard.assets.AssetsBundle.assetsName:Ljava/lang/String;
aload 0
invokevirtual io.dropwizard.assets.AssetsBundle.createServlet:()Lio/dropwizard/servlets/assets/AssetServlet;
invokevirtual io.dropwizard.jetty.setup.ServletEnvironment.addServlet:(Ljava/lang/String;Ljavax/servlet/Servlet;)Ljavax/servlet/ServletRegistration$Dynamic;
iconst_1
anewarray java.lang.String
dup
iconst_0
new java.lang.StringBuilder
dup
aload 0
getfield io.dropwizard.assets.AssetsBundle.uriPath:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 42
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
invokeinterface javax.servlet.ServletRegistration$Dynamic.addMapping:([Ljava/lang/String;)Ljava/util/Set;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/assets/AssetsBundle;
0 3 1 environment Lio/dropwizard/setup/Environment;
MethodParameters:
Name Flags
environment
public java.lang.String getResourcePath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.assets.AssetsBundle.resourcePath:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/assets/AssetsBundle;
public java.lang.String getUriPath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.assets.AssetsBundle.uriPath:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/assets/AssetsBundle;
public java.lang.String getIndexFile();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.assets.AssetsBundle.indexFile:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/assets/AssetsBundle;
protected io.dropwizard.servlets.assets.AssetServlet createServlet();
descriptor: ()Lio/dropwizard/servlets/assets/AssetServlet;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=1, args_size=1
start local 0 0: new io.dropwizard.servlets.assets.AssetServlet
dup
aload 0
getfield io.dropwizard.assets.AssetsBundle.resourcePath:Ljava/lang/String;
aload 0
getfield io.dropwizard.assets.AssetsBundle.uriPath:Ljava/lang/String;
aload 0
getfield io.dropwizard.assets.AssetsBundle.indexFile:Ljava/lang/String;
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial io.dropwizard.servlets.assets.AssetServlet.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/nio/charset/Charset;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/assets/AssetsBundle;
}
SourceFile: "AssetsBundle.java"
InnerClasses:
public abstract Dynamic = javax.servlet.ServletRegistration$Dynamic of javax.servlet.ServletRegistration