public class org.apache.dubbo.remoting.http.servlet.DispatcherServlet extends javax.servlet.http.HttpServlet
{
private static final long serialVersionUID;
private static final java.util.Map HANDLERS;
private static org.apache.dubbo.remoting.http.servlet.DispatcherServlet INSTANCE;
public void <init>()
{
org.apache.dubbo.remoting.http.servlet.DispatcherServlet v;
v := @this: org.apache.dubbo.remoting.http.servlet.DispatcherServlet;
specialinvoke v.<javax.servlet.http.HttpServlet: void <init>()>();
<org.apache.dubbo.remoting.http.servlet.DispatcherServlet: org.apache.dubbo.remoting.http.servlet.DispatcherServlet INSTANCE> = v;
return;
}
public static void addHttpHandler(int, org.apache.dubbo.remoting.http.HttpHandler)
{
java.util.Map v;
int v;
org.apache.dubbo.remoting.http.HttpHandler v;
java.lang.Integer v;
v := @parameter: int;
v := @parameter: org.apache.dubbo.remoting.http.HttpHandler;
v = <org.apache.dubbo.remoting.http.servlet.DispatcherServlet: java.util.Map HANDLERS>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
return;
}
public static void removeHttpHandler(int)
{
int v;
java.lang.Integer v;
java.util.Map v;
v := @parameter: int;
v = <org.apache.dubbo.remoting.http.servlet.DispatcherServlet: java.util.Map HANDLERS>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
interfaceinvoke v.<java.util.Map: java.lang.Object remove(java.lang.Object)>(v);
return;
}
public static org.apache.dubbo.remoting.http.servlet.DispatcherServlet getInstance()
{
org.apache.dubbo.remoting.http.servlet.DispatcherServlet v;
v = <org.apache.dubbo.remoting.http.servlet.DispatcherServlet: org.apache.dubbo.remoting.http.servlet.DispatcherServlet INSTANCE>;
return v;
}
protected void service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) throws javax.servlet.ServletException, java.io.IOException
{
javax.servlet.http.HttpServletRequest v;
org.apache.dubbo.remoting.http.servlet.DispatcherServlet v;
java.util.Map v;
int v;
javax.servlet.http.HttpServletResponse v;
java.lang.Object v;
java.lang.Integer v;
v := @this: org.apache.dubbo.remoting.http.servlet.DispatcherServlet;
v := @parameter: javax.servlet.http.HttpServletRequest;
v := @parameter: javax.servlet.http.HttpServletResponse;
v = <org.apache.dubbo.remoting.http.servlet.DispatcherServlet: java.util.Map HANDLERS>;
v = interfaceinvoke v.<javax.servlet.http.HttpServletRequest: int getLocalPort()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
if v != null goto label;
interfaceinvoke v.<javax.servlet.http.HttpServletResponse: void sendError(int,java.lang.String)>(404, "Service not found.");
goto label;
label:
interfaceinvoke v.<org.apache.dubbo.remoting.http.HttpHandler: void handle(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)>(v, v);
label:
return;
}
static void <clinit>()
{
java.util.concurrent.ConcurrentHashMap v;
v = new java.util.concurrent.ConcurrentHashMap;
specialinvoke v.<java.util.concurrent.ConcurrentHashMap: void <init>()>();
<org.apache.dubbo.remoting.http.servlet.DispatcherServlet: java.util.Map HANDLERS> = v;
return;
}
}