class implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>, org.springframework.core.Ordered
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.boot.devtools.RemoteUrlPropertyExtractor
super_class: java.lang.Object
{
private static final java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "nonOptionArgs"
void ();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/devtools/RemoteUrlPropertyExtractor;
public void (org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent);
descriptor: (Lorg/springframework/boot/context/event/ApplicationEnvironmentPreparedEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent.getEnvironment:()Lorg/springframework/core/env/ConfigurableEnvironment;
astore 2
start local 2 1: aload 0
aload 2
ldc "nonOptionArgs"
invokeinterface org.springframework.core.env.ConfigurableEnvironment.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.springframework.boot.devtools.RemoteUrlPropertyExtractor.cleanRemoteUrl:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 2: aload 3
invokestatic org.springframework.util.StringUtils.hasLength:(Ljava/lang/String;)Z
ldc "No remote URL specified"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
3: aload 3
bipush 44
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpne 4
iconst_1
goto 5
StackMap locals: org.springframework.core.env.ConfigurableEnvironment java.lang.String
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: ldc "Multiple URLs specified"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
6: new java.net.URI
aload 3
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
7: goto 10
8: StackMap locals:
StackMap stack: java.net.URISyntaxException
pop
9: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Malformed URL '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
ldc "remoteUrl"
aload 3
invokestatic java.util.Collections.singletonMap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
astore 4
start local 4 11: new org.springframework.core.env.MapPropertySource
dup
ldc "remoteUrl"
aload 4
invokespecial org.springframework.core.env.MapPropertySource.<init>:(Ljava/lang/String;Ljava/util/Map;)V
astore 5
start local 5 12: aload 2
invokeinterface org.springframework.core.env.ConfigurableEnvironment.getPropertySources:()Lorg/springframework/core/env/MutablePropertySources;
aload 5
invokevirtual org.springframework.core.env.MutablePropertySources.addLast:(Lorg/springframework/core/env/PropertySource;)V
13: 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 14 0 this Lorg/springframework/boot/devtools/RemoteUrlPropertyExtractor;
0 14 1 event Lorg/springframework/boot/context/event/ApplicationEnvironmentPreparedEvent;
1 14 2 environment Lorg/springframework/core/env/ConfigurableEnvironment;
2 14 3 url Ljava/lang/String;
11 14 4 source Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
12 14 5 propertySource Lorg/springframework/core/env/PropertySource<*>;
Exception table:
from to target type
6 7 8 Class java.net.URISyntaxException
MethodParameters:
Name Flags
event
private java.lang.String (java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 2
aload 1
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 1
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/devtools/RemoteUrlPropertyExtractor;
0 3 1 url Ljava/lang/String;
MethodParameters:
Name Flags
url
public int ();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc -2147483648
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/devtools/RemoteUrlPropertyExtractor;
public void (org.springframework.context.ApplicationEvent);
descriptor: (Lorg/springframework/context/ApplicationEvent;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent
invokevirtual org.springframework.boot.devtools.RemoteUrlPropertyExtractor.onApplicationEvent:(Lorg/springframework/boot/context/event/ApplicationEnvironmentPreparedEvent;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/springframework/context/ApplicationListener<Lorg/springframework/boot/context/event/ApplicationEnvironmentPreparedEvent;>;Lorg/springframework/core/Ordered;
SourceFile: "RemoteUrlPropertyExtractor.java"