public class org.apache.activemq.web.DestinationFacade extends java.lang.Object
{
private java.lang.String jmsDestination;
private java.lang.String jmsDestinationType;
private org.apache.activemq.web.BrokerFacade brokerFacade;
public void <init>(org.apache.activemq.web.BrokerFacade)
{
org.apache.activemq.web.BrokerFacade v;
org.apache.activemq.web.DestinationFacade v;
v := @this: org.apache.activemq.web.DestinationFacade;
v := @parameter: org.apache.activemq.web.BrokerFacade;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.apache.activemq.web.DestinationFacade: org.apache.activemq.web.BrokerFacade brokerFacade> = v;
return;
}
public java.lang.String toString()
{
org.apache.activemq.web.DestinationFacade v;
java.lang.String v, v, v, v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = specialinvoke v.<java.lang.Object: java.lang.String toString()>();
v = v.<org.apache.activemq.web.DestinationFacade: java.lang.String jmsDestination>;
v = v.<org.apache.activemq.web.DestinationFacade: java.lang.String jmsDestinationType>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String,java.lang.String)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u[destination:\u; type=\u]");
return v;
}
public void removeDestination() throws java.lang.Exception
{
org.apache.activemq.broker.jmx.BrokerViewMBean v, v;
org.apache.activemq.web.DestinationFacade v;
java.lang.String v, v;
boolean v;
v := @this: org.apache.activemq.web.DestinationFacade;
virtualinvoke v.<org.apache.activemq.web.DestinationFacade: java.lang.String getValidDestination()>();
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: boolean isQueue()>();
if v == 0 goto label;
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: org.apache.activemq.broker.jmx.BrokerViewMBean getBrokerAdmin()>();
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: java.lang.String getJMSDestination()>();
interfaceinvoke v.<org.apache.activemq.broker.jmx.BrokerViewMBean: void removeQueue(java.lang.String)>(v);
goto label;
label:
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: org.apache.activemq.broker.jmx.BrokerViewMBean getBrokerAdmin()>();
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: java.lang.String getJMSDestination()>();
interfaceinvoke v.<org.apache.activemq.broker.jmx.BrokerViewMBean: void removeTopic(java.lang.String)>(v);
label:
return;
}
public void addDestination() throws java.lang.Exception
{
org.apache.activemq.broker.jmx.BrokerViewMBean v, v;
org.apache.activemq.web.DestinationFacade v;
java.lang.String v, v;
boolean v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: boolean isQueue()>();
if v == 0 goto label;
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: org.apache.activemq.broker.jmx.BrokerViewMBean getBrokerAdmin()>();
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: java.lang.String getValidDestination()>();
interfaceinvoke v.<org.apache.activemq.broker.jmx.BrokerViewMBean: void addQueue(java.lang.String)>(v);
goto label;
label:
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: org.apache.activemq.broker.jmx.BrokerViewMBean getBrokerAdmin()>();
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: java.lang.String getValidDestination()>();
interfaceinvoke v.<org.apache.activemq.broker.jmx.BrokerViewMBean: void addTopic(java.lang.String)>(v);
label:
return;
}
public org.apache.activemq.broker.jmx.BrokerViewMBean getBrokerAdmin() throws java.lang.Exception
{
org.apache.activemq.web.DestinationFacade v;
java.lang.IllegalArgumentException v, v;
org.apache.activemq.broker.jmx.BrokerViewMBean v;
org.apache.activemq.web.BrokerFacade v, v, v;
java.lang.String v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = v.<org.apache.activemq.web.DestinationFacade: org.apache.activemq.web.BrokerFacade brokerFacade>;
if v != null goto label;
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("No brokerFacade injected!");
throw v;
label:
v = v.<org.apache.activemq.web.DestinationFacade: org.apache.activemq.web.BrokerFacade brokerFacade>;
v = interfaceinvoke v.<org.apache.activemq.web.BrokerFacade: org.apache.activemq.broker.jmx.BrokerViewMBean getBrokerAdmin()>();
if v != null goto label;
v = new java.lang.IllegalArgumentException;
v = v.<org.apache.activemq.web.DestinationFacade: org.apache.activemq.web.BrokerFacade brokerFacade>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (org.apache.activemq.web.BrokerFacade)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("No brokerAdmin on the injected brokerFacade: \u0001");
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>(v);
throw v;
label:
return v;
}
public org.apache.activemq.web.BrokerFacade getBrokerFacade()
{
org.apache.activemq.web.BrokerFacade v;
org.apache.activemq.web.DestinationFacade v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = v.<org.apache.activemq.web.DestinationFacade: org.apache.activemq.web.BrokerFacade brokerFacade>;
return v;
}
public boolean isQueue()
{
org.apache.activemq.web.DestinationFacade v;
java.lang.String v, v;
boolean v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = v.<org.apache.activemq.web.DestinationFacade: java.lang.String jmsDestinationType>;
if v == null goto label;
v = v.<org.apache.activemq.web.DestinationFacade: java.lang.String jmsDestinationType>;
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>("topic");
if v == 0 goto label;
return 0;
label:
return 1;
}
public java.lang.String getJMSDestination()
{
java.lang.String v;
org.apache.activemq.web.DestinationFacade v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = v.<org.apache.activemq.web.DestinationFacade: java.lang.String jmsDestination>;
return v;
}
public void setJMSDestination(java.lang.String)
{
java.lang.String v;
org.apache.activemq.web.DestinationFacade v;
v := @this: org.apache.activemq.web.DestinationFacade;
v := @parameter: java.lang.String;
if v == null goto label;
v = virtualinvoke v.<java.lang.String: java.lang.String trim()>();
label:
v.<org.apache.activemq.web.DestinationFacade: java.lang.String jmsDestination> = v;
return;
}
public java.lang.String getJMSDestinationType()
{
java.lang.String v;
org.apache.activemq.web.DestinationFacade v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = v.<org.apache.activemq.web.DestinationFacade: java.lang.String jmsDestinationType>;
return v;
}
public void setJMSDestinationType(java.lang.String)
{
java.lang.String v;
org.apache.activemq.web.DestinationFacade v;
v := @this: org.apache.activemq.web.DestinationFacade;
v := @parameter: java.lang.String;
v.<org.apache.activemq.web.DestinationFacade: java.lang.String jmsDestinationType> = v;
return;
}
protected org.apache.activemq.command.ActiveMQDestination createDestination()
{
org.apache.activemq.web.DestinationFacade v;
byte v;
java.lang.String v;
boolean v;
org.apache.activemq.command.ActiveMQDestination v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: boolean isQueue()>();
if v == 0 goto label;
v = 1;
goto label;
label:
v = 2;
label:
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: java.lang.String getValidDestination()>();
v = staticinvoke <org.apache.activemq.command.ActiveMQDestination: org.apache.activemq.command.ActiveMQDestination createDestination(java.lang.String,byte)>(v, v);
return v;
}
protected java.lang.String getValidDestination()
{
org.apache.activemq.web.DestinationFacade v;
java.lang.String v, v, v;
java.lang.IllegalArgumentException v;
boolean v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = v.<org.apache.activemq.web.DestinationFacade: java.lang.String jmsDestination>;
if v == null goto label;
v = v.<org.apache.activemq.web.DestinationFacade: java.lang.String jmsDestination>;
v = virtualinvoke v.<java.lang.String: boolean isEmpty()>();
if v == 0 goto label;
label:
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("No JMSDestination parameter specified");
throw v;
label:
v = v.<org.apache.activemq.web.DestinationFacade: java.lang.String jmsDestination>;
return v;
}
protected org.apache.activemq.broker.jmx.QueueViewMBean getQueueView() throws java.lang.Exception
{
org.apache.activemq.web.BrokerFacade v;
org.apache.activemq.web.DestinationFacade v;
org.apache.activemq.broker.jmx.QueueViewMBean v;
java.lang.String v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: java.lang.String getPhysicalDestinationName()>();
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: org.apache.activemq.web.BrokerFacade getBrokerFacade()>();
v = interfaceinvoke v.<org.apache.activemq.web.BrokerFacade: org.apache.activemq.broker.jmx.QueueViewMBean getQueue(java.lang.String)>(v);
return v;
}
protected org.springframework.web.servlet.ModelAndView redirectToRequest(javax.servlet.http.HttpServletRequest)
{
org.springframework.web.servlet.ModelAndView v;
javax.servlet.http.HttpServletRequest v;
org.apache.activemq.web.DestinationFacade v;
java.lang.String v, v;
v := @this: org.apache.activemq.web.DestinationFacade;
v := @parameter: javax.servlet.http.HttpServletRequest;
v = interfaceinvoke v.<javax.servlet.http.HttpServletRequest: java.lang.String getRequestURI()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("redirect:\u0001");
v = new org.springframework.web.servlet.ModelAndView;
specialinvoke v.<org.springframework.web.servlet.ModelAndView: void <init>(java.lang.String)>(v);
return v;
}
protected org.springframework.web.servlet.ModelAndView redirectToBrowseView()
{
org.springframework.web.servlet.ModelAndView v;
org.apache.activemq.web.DestinationFacade v;
java.lang.String v, v;
boolean v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = new org.springframework.web.servlet.ModelAndView;
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: boolean isQueue()>();
if v == 0 goto label;
v = "queues.jsp";
goto label;
label:
v = "topics.jsp";
label:
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("redirect:\u0001");
specialinvoke v.<org.springframework.web.servlet.ModelAndView: void <init>(java.lang.String)>(v);
return v;
}
protected org.springframework.web.servlet.ModelAndView redirectToDestinationView()
{
org.springframework.web.servlet.ModelAndView v;
org.apache.activemq.web.DestinationFacade v;
java.lang.String v, v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = new org.springframework.web.servlet.ModelAndView;
v = v.<org.apache.activemq.web.DestinationFacade: java.lang.String jmsDestination>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("redirect:browse.jsp?JMSDestination=\u0001");
specialinvoke v.<org.springframework.web.servlet.ModelAndView: void <init>(java.lang.String)>(v);
return v;
}
protected java.lang.String getPhysicalDestinationName()
{
java.lang.String v;
org.apache.activemq.web.DestinationFacade v;
org.apache.activemq.command.ActiveMQDestination v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = virtualinvoke v.<org.apache.activemq.web.DestinationFacade: org.apache.activemq.command.ActiveMQDestination createDestination()>();
v = virtualinvoke v.<org.apache.activemq.command.ActiveMQDestination: java.lang.String getPhysicalName()>();
return v;
}
public java.lang.String[] getSupportedHttpMethods()
{
java.lang.String[] v;
org.apache.activemq.web.DestinationFacade v;
v := @this: org.apache.activemq.web.DestinationFacade;
v = newarray (java.lang.String)[2];
v[0] = "GET";
v[1] = "POST";
return v;
}
}