public abstract class org.springframework.web.util.AbstractUriTemplateHandler implements org.springframework.web.util.UriTemplateHandler
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.springframework.web.util.AbstractUriTemplateHandler
super_class: java.lang.Object
{
private java.lang.String baseUrl;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private final java.util.Map<java.lang.String, java.lang.Object> defaultUriVariables;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.springframework.web.util.AbstractUriTemplateHandler.defaultUriVariables:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/util/AbstractUriTemplateHandler;
public void setBaseUrl(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 6
1: aload 1
invokestatic org.springframework.web.util.UriComponentsBuilder.fromUriString:(Ljava/lang/String;)Lorg/springframework/web/util/UriComponentsBuilder;
invokevirtual org.springframework.web.util.UriComponentsBuilder.build:()Lorg/springframework/web/util/UriComponents;
astore 2
start local 2 2: aload 2
invokevirtual org.springframework.web.util.UriComponents.getScheme:()Ljava/lang/String;
ldc "'baseUrl' must have a scheme"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
3: aload 2
invokevirtual org.springframework.web.util.UriComponents.getHost:()Ljava/lang/String;
ldc "'baseUrl' must have a host"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
4: aload 2
invokevirtual org.springframework.web.util.UriComponents.getQuery:()Ljava/lang/String;
ldc "'baseUrl' cannot have a query"
invokestatic org.springframework.util.Assert.isNull:(Ljava/lang/Object;Ljava/lang/String;)V
5: aload 2
invokevirtual org.springframework.web.util.UriComponents.getFragment:()Ljava/lang/String;
ldc "'baseUrl' cannot have a fragment"
invokestatic org.springframework.util.Assert.isNull:(Ljava/lang/Object;Ljava/lang/String;)V
end local 2 6: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.springframework.web.util.AbstractUriTemplateHandler.baseUrl:Ljava/lang/String;
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/web/util/AbstractUriTemplateHandler;
0 8 1 baseUrl Ljava/lang/String;
2 6 2 uriComponents Lorg/springframework/web/util/UriComponents;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
baseUrl
public java.lang.String getBaseUrl();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.util.AbstractUriTemplateHandler.baseUrl:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/util/AbstractUriTemplateHandler;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void setDefaultUriVariables(java.util.Map<java.lang.String, ?>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.web.util.AbstractUriTemplateHandler.defaultUriVariables:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
1: aload 1
ifnull 3
2: aload 0
getfield org.springframework.web.util.AbstractUriTemplateHandler.defaultUriVariables:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/util/AbstractUriTemplateHandler;
0 4 1 defaultUriVariables Ljava/util/Map<Ljava/lang/String;*>;
Signature: (Ljava/util/Map<Ljava/lang/String;*>;)V
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
defaultUriVariables
public java.util.Map<java.lang.String, ?> getDefaultUriVariables();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.util.AbstractUriTemplateHandler.defaultUriVariables:Ljava/util/Map;
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/util/AbstractUriTemplateHandler;
Signature: ()Ljava/util/Map<Ljava/lang/String;*>;
public java.net.URI expand(java.lang.String, java.util.Map<java.lang.String, ?>);
descriptor: (Ljava/lang/String;Ljava/util/Map;)Ljava/net/URI;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.springframework.web.util.AbstractUriTemplateHandler.getDefaultUriVariables:()Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifne 5
1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 3
start local 3 2: aload 3
aload 0
invokevirtual org.springframework.web.util.AbstractUriTemplateHandler.getDefaultUriVariables:()Ljava/util/Map;
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
3: aload 3
aload 2
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
4: aload 3
astore 2
end local 3 5: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.springframework.web.util.AbstractUriTemplateHandler.expandInternal:(Ljava/lang/String;Ljava/util/Map;)Ljava/net/URI;
astore 3
start local 3 6: aload 0
aload 3
invokevirtual org.springframework.web.util.AbstractUriTemplateHandler.insertBaseUrl:(Ljava/net/URI;)Ljava/net/URI;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/web/util/AbstractUriTemplateHandler;
0 7 1 uriTemplate Ljava/lang/String;
0 7 2 uriVariables Ljava/util/Map<Ljava/lang/String;*>;
2 5 3 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
6 7 3 url Ljava/net/URI;
Signature: (Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;*>;)Ljava/net/URI;
MethodParameters:
Name Flags
uriTemplate
uriVariables
public java.net.URI expand(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/net/URI;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.springframework.web.util.AbstractUriTemplateHandler.expandInternal:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/net/URI;
astore 3
start local 3 1: aload 0
aload 3
invokevirtual org.springframework.web.util.AbstractUriTemplateHandler.insertBaseUrl:(Ljava/net/URI;)Ljava/net/URI;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/util/AbstractUriTemplateHandler;
0 2 1 uriTemplate Ljava/lang/String;
0 2 2 uriVariables [Ljava/lang/Object;
1 2 3 url Ljava/net/URI;
MethodParameters:
Name Flags
uriTemplate
uriVariables
protected abstract java.net.URI expandInternal(java.lang.String, java.util.Map<java.lang.String, ?>);
descriptor: (Ljava/lang/String;Ljava/util/Map;)Ljava/net/URI;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;*>;)Ljava/net/URI;
MethodParameters:
Name Flags
uriTemplate
uriVariables
protected abstract java.net.URI expandInternal(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/net/URI;
flags: (0x0484) ACC_PROTECTED, ACC_VARARGS, ACC_ABSTRACT
MethodParameters:
Name Flags
uriTemplate
uriVariables
private java.net.URI insertBaseUrl(java.net.URI);
descriptor: (Ljava/net/URI;)Ljava/net/URI;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.springframework.web.util.AbstractUriTemplateHandler.getBaseUrl:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnull 3
aload 1
invokevirtual java.net.URI.getHost:()Ljava/lang/String;
ifnonnull 3
2: new java.net.URI
dup
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
aload 1
invokevirtual java.net.URI.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
astore 1
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
4: areturn
end local 2 5: StackMap locals: org.springframework.web.util.AbstractUriTemplateHandler java.net.URI
StackMap stack: java.net.URISyntaxException
astore 2
start local 2 6: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid URL after inserting base URL: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/web/util/AbstractUriTemplateHandler;
0 7 1 url Ljava/net/URI;
1 5 2 baseUrl Ljava/lang/String;
6 7 2 ex Ljava/net/URISyntaxException;
Exception table:
from to target type
0 4 5 Class java.net.URISyntaxException
MethodParameters:
Name Flags
url
}
SourceFile: "AbstractUriTemplateHandler.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()