public class io.dropwizard.assets.AssetsBundle implements io.dropwizard.ConfiguredBundle<io.dropwizard.Configuration>
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 static final java.lang.String DEFAULT_MEDIA_TYPE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "text/html"
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
private final java.lang.String defaultMediaType;
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=6, locals=1, args_size=1
start local 0 0: aload 0
ldc "/assets"
ldc "/assets"
ldc "index.htm"
ldc "assets"
ldc "text/html"
invokespecial io.dropwizard.assets.AssetsBundle.<init>:(Ljava/lang/String;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=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
ldc "index.htm"
ldc "assets"
ldc "text/html"
invokespecial io.dropwizard.assets.AssetsBundle.<init>:(Ljava/lang/String;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=6, 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"
ldc "text/html"
invokespecial io.dropwizard.assets.AssetsBundle.<init>:(Ljava/lang/String;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=6, 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"
ldc "text/html"
invokespecial io.dropwizard.assets.AssetsBundle.<init>:(Ljava/lang/String;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=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
aload 4
ldc "text/html"
invokespecial io.dropwizard.assets.AssetsBundle.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 4 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;
0 2 4 assetsName Ljava/lang/String;
MethodParameters:
Name Flags
resourcePath
uriPath
indexFile
assetsName
public void <init>(java.lang.String, 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;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 3
2: new java.lang.IllegalArgumentException
dup
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
ldc " is not an absolute path"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: io.dropwizard.assets.AssetsBundle java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack:
ldc "/"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: new java.lang.IllegalArgumentException
dup
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
ldc " is the classpath root"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
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 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 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: aload 0
aload 5
putfield io.dropwizard.assets.AssetsBundle.defaultMediaType:Ljava/lang/String;
14: return
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 15 0 this Lio/dropwizard/assets/AssetsBundle;
0 15 1 resourcePath Ljava/lang/String;
0 15 2 uriPath Ljava/lang/String;
0 15 3 indexFile Ljava/lang/String;
0 15 4 assetsName Ljava/lang/String;
0 15 5 defaultMediaType Ljava/lang/String;
MethodParameters:
Name Flags
resourcePath
uriPath
indexFile
assetsName
defaultMediaType
public void run(io.dropwizard.Configuration, io.dropwizard.setup.Environment);
descriptor: (Lio/dropwizard/Configuration;Lio/dropwizard/setup/Environment;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 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 2
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 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/assets/AssetsBundle;
0 3 1 configuration Lio/dropwizard/Configuration;
0 3 2 environment Lio/dropwizard/setup/Environment;
MethodParameters:
Name Flags
configuration
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;
public java.lang.String getDefaultMediaType();
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.defaultMediaType: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=7, 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;
aload 0
getfield io.dropwizard.assets.AssetsBundle.defaultMediaType: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/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;
public void run(java.lang.Object, io.dropwizard.setup.Environment);
descriptor: (Ljava/lang/Object;Lio/dropwizard/setup/Environment;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast io.dropwizard.Configuration
aload 2
invokevirtual io.dropwizard.assets.AssetsBundle.run:(Lio/dropwizard/Configuration;Lio/dropwizard/setup/Environment;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Ljava/lang/Object;Lio/dropwizard/ConfiguredBundle<Lio/dropwizard/Configuration;>;
SourceFile: "AssetsBundle.java"
InnerClasses:
public abstract Dynamic = javax.servlet.ServletRegistration$Dynamic of javax.servlet.ServletRegistration