
web.inbound.editInbound.jsp Maven / Gradle / Ivy
The newest version!
<%@page import="java.util.HashSet"%>
<%@page import="java.util.Set"%>
<%@page import="org.wso2.carbon.inbound.ui.internal.InboundDescription"%>
<%@page import="org.wso2.carbon.inbound.ui.internal.InboundManagementClient"%>
<%@page import="org.wso2.carbon.inbound.ui.internal.InboundClientConstants"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Set"%>
<%@page import="java.util.HashSet"%>
<%@ page import="org.owasp.encoder.Encode" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
<% InboundManagementClient client;
try {
client = InboundManagementClient.getInstance(config, session);
InboundDescription inboundDescription = client.getInboundDescription(request.getParameter("name"));
String inboundTypeValue = inboundDescription.getType();
boolean isMBbased = false;
if (InboundClientConstants.TYPE_JMS.equalsIgnoreCase(inboundTypeValue)) {
if (inboundDescription.getParameters().containsKey("connectionfactory.QueueConnectionFactory")) {
isMBbased = true;
inboundTypeValue = InboundClientConstants.TYPE_WSO2MB;
String connectionURL = inboundDescription.getParameters().get("connectionfactory.QueueConnectionFactory");
inboundDescription.getParameters().put("wso2mb.connection.url", connectionURL);
} else if (inboundDescription.getParameters().containsKey("connectionfactory.TopicConnectionFactory")) {
isMBbased = true;
inboundTypeValue = InboundClientConstants.TYPE_WSO2MB;
String connectionURL = inboundDescription.getParameters().get("connectionfactory.TopicConnectionFactory");
inboundDescription.getParameters().put("wso2mb.connection.url", connectionURL);
}
}
ListdefaultParams = client.getDefaultParameters(inboundTypeValue);
ListadvParams = client.getAdvParameters(inboundTypeValue);
SetdefaultParamNames = new HashSet();
String specialParams = client.getKAFKASpecialParameters();
String topicListParams = client.getKAFKATopicListParameters();
String firstSpecialParam = "";
%>
<%
} catch (Throwable e) {
%>
<%
return;
}
%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy