public class org.springframework.remoting.support.SimpleHttpServerFactoryBean implements org.springframework.beans.factory.FactoryBean<com.sun.net.httpserver.HttpServer>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.remoting.support.SimpleHttpServerFactoryBean
super_class: java.lang.Object
{
protected final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private int port;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String hostname;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int backlog;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int shutdownDelay;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.Executor executor;
descriptor: Ljava/util/concurrent/Executor;
flags: (0x0002) ACC_PRIVATE
private java.util.Map<java.lang.String, com.sun.net.httpserver.HttpHandler> contexts;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Lcom/sun/net/httpserver/HttpHandler;>;
private java.util.List<com.sun.net.httpserver.Filter> filters;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lcom/sun/net/httpserver/Filter;>;
private com.sun.net.httpserver.Authenticator authenticator;
descriptor: Lcom/sun/net/httpserver/Authenticator;
flags: (0x0002) ACC_PRIVATE
private com.sun.net.httpserver.HttpServer server;
descriptor: Lcom/sun/net/httpserver/HttpServer;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.logger:Lorg/apache/commons/logging/Log;
2: aload 0
sipush 8080
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.port:I
3: aload 0
iconst_m1
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.backlog:I
4: aload 0
iconst_0
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.shutdownDelay:I
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
public void setPort(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.port:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
0 2 1 port I
MethodParameters:
Name Flags
port
public void setHostname(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.hostname:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
0 2 1 hostname Ljava/lang/String;
MethodParameters:
Name Flags
hostname
public void setBacklog(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.backlog:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
0 2 1 backlog I
MethodParameters:
Name Flags
backlog
public void setShutdownDelay(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.shutdownDelay:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
0 2 1 shutdownDelay I
MethodParameters:
Name Flags
shutdownDelay
public void setExecutor(java.util.concurrent.Executor);
descriptor: (Ljava/util/concurrent/Executor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.executor:Ljava/util/concurrent/Executor;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
0 2 1 executor Ljava/util/concurrent/Executor;
MethodParameters:
Name Flags
executor
public void setContexts(java.util.Map<java.lang.String, com.sun.net.httpserver.HttpHandler>);
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
aload 1
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.contexts:Ljava/util/Map;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
0 2 1 contexts Ljava/util/Map<Ljava/lang/String;Lcom/sun/net/httpserver/HttpHandler;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Lcom/sun/net/httpserver/HttpHandler;>;)V
MethodParameters:
Name Flags
contexts
public void setFilters(java.util.List<com.sun.net.httpserver.Filter>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.filters:Ljava/util/List;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
0 2 1 filters Ljava/util/List<Lcom/sun/net/httpserver/Filter;>;
Signature: (Ljava/util/List<Lcom/sun/net/httpserver/Filter;>;)V
MethodParameters:
Name Flags
filters
public void setAuthenticator(com.sun.net.httpserver.Authenticator);
descriptor: (Lcom/sun/net/httpserver/Authenticator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.authenticator:Lcom/sun/net/httpserver/Authenticator;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
0 2 1 authenticator Lcom/sun/net/httpserver/Authenticator;
MethodParameters:
Name Flags
authenticator
public void afterPropertiesSet();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.hostname:Ljava/lang/String;
ifnull 2
1: new java.net.InetSocketAddress
dup
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.hostname:Ljava/lang/String;
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.port:I
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
goto 3
StackMap locals:
StackMap stack:
2: new java.net.InetSocketAddress
dup
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.port:I
invokespecial java.net.InetSocketAddress.<init>:(I)V
3: StackMap locals:
StackMap stack: java.net.InetSocketAddress
astore 1
start local 1 4: aload 0
aload 1
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.backlog:I
invokestatic com.sun.net.httpserver.HttpServer.create:(Ljava/net/InetSocketAddress;I)Lcom/sun/net/httpserver/HttpServer;
putfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.server:Lcom/sun/net/httpserver/HttpServer;
5: aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.executor:Ljava/util/concurrent/Executor;
ifnull 7
6: aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.server:Lcom/sun/net/httpserver/HttpServer;
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.executor:Ljava/util/concurrent/Executor;
invokevirtual com.sun.net.httpserver.HttpServer.setExecutor:(Ljava/util/concurrent/Executor;)V
7: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.contexts:Ljava/util/Map;
ifnull 9
8: aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.contexts:Ljava/util/Map;
aload 0
invokedynamic accept(Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;)Ljava/util/function/BiConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)V
org/springframework/remoting/support/SimpleHttpServerFactoryBean.lambda$0(Ljava/lang/String;Lcom/sun/net/httpserver/HttpHandler;)V (7)
(Ljava/lang/String;Lcom/sun/net/httpserver/HttpHandler;)V
invokeinterface java.util.Map.forEach:(Ljava/util/function/BiConsumer;)V
9: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isInfoEnabled:()Z
ifeq 11
10: aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Starting HttpServer at address "
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;
invokeinterface org.apache.commons.logging.Log.info:(Ljava/lang/Object;)V
11: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.server:Lcom/sun/net/httpserver/HttpServer;
invokevirtual com.sun.net.httpserver.HttpServer.start:()V
12: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
4 13 1 address Ljava/net/InetSocketAddress;
Exceptions:
throws java.io.IOException
public com.sun.net.httpserver.HttpServer getObject();
descriptor: ()Lcom/sun/net/httpserver/HttpServer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.server:Lcom/sun/net/httpserver/HttpServer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
public java.lang.Class<? extends com.sun.net.httpserver.HttpServer> getObjectType();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.server:Lcom/sun/net/httpserver/HttpServer;
ifnull 1
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.server:Lcom/sun/net/httpserver/HttpServer;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
goto 2
StackMap locals:
StackMap stack:
1: ldc Lcom/sun/net/httpserver/HttpServer;
StackMap locals:
StackMap stack: java.lang.Class
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
Signature: ()Ljava/lang/Class<+Lcom/sun/net/httpserver/HttpServer;>;
public boolean isSingleton();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
public void destroy();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.logger:Lorg/apache/commons/logging/Log;
ldc "Stopping HttpServer"
invokeinterface org.apache.commons.logging.Log.info:(Ljava/lang/Object;)V
1: aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.server:Lcom/sun/net/httpserver/HttpServer;
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.shutdownDelay:I
invokevirtual com.sun.net.httpserver.HttpServer.stop:(I)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
public java.lang.Object getObject();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.springframework.remoting.support.SimpleHttpServerFactoryBean.getObject:()Lcom/sun/net/httpserver/HttpServer;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
private void lambda$0(java.lang.String, com.sun.net.httpserver.HttpHandler);
descriptor: (Ljava/lang/String;Lcom/sun/net/httpserver/HttpHandler;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.server:Lcom/sun/net/httpserver/HttpServer;
aload 1
aload 2
invokevirtual com.sun.net.httpserver.HttpServer.createContext:(Ljava/lang/String;Lcom/sun/net/httpserver/HttpHandler;)Lcom/sun/net/httpserver/HttpContext;
astore 3
start local 3 1: aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.filters:Ljava/util/List;
ifnull 3
2: aload 3
invokevirtual com.sun.net.httpserver.HttpContext.getFilters:()Ljava/util/List;
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.filters:Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
3: StackMap locals: com.sun.net.httpserver.HttpContext
StackMap stack:
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.authenticator:Lcom/sun/net/httpserver/Authenticator;
ifnull 5
4: aload 3
aload 0
getfield org.springframework.remoting.support.SimpleHttpServerFactoryBean.authenticator:Lcom/sun/net/httpserver/Authenticator;
invokevirtual com.sun.net.httpserver.HttpContext.setAuthenticator:(Lcom/sun/net/httpserver/Authenticator;)Lcom/sun/net/httpserver/Authenticator;
pop
end local 3 5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/remoting/support/SimpleHttpServerFactoryBean;
0 6 1 key Ljava/lang/String;
0 6 2 context Lcom/sun/net/httpserver/HttpHandler;
1 5 3 httpContext Lcom/sun/net/httpserver/HttpContext;
}
Signature: Ljava/lang/Object;Lorg/springframework/beans/factory/FactoryBean<Lcom/sun/net/httpserver/HttpServer;>;Lorg/springframework/beans/factory/InitializingBean;Lorg/springframework/beans/factory/DisposableBean;
SourceFile: "SimpleHttpServerFactoryBean.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
RuntimeVisibleAnnotations:
java.lang.Deprecated()
RuntimeInvisibleAnnotations:
org.springframework.lang.UsesSunHttpServer()