All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web.inbound.newInbound1.jsp Maven / Gradle / Ivy

The newest version!

<%@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="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);
            ListdefaultParams = client.getDefaultParameters(request.getParameter("inboundType"));            
            ListadvParams = client.getAdvParameters(request.getParameter("inboundType"));
            String specialParams = client.getKAFKASpecialParameters();
            String topicListParams = client.getKAFKATopicListParameters();
            String firstSpecialParam = "";
    %>
    

<% if(!(InboundClientConstants.TYPE_HTTP.equals(request.getParameter("inboundType")) || InboundClientConstants.TYPE_HTTPS.equals(request.getParameter("inboundType"))) ) { %> <% } else { %> <% } %> <% if(InboundClientConstants.TYPE_CLASS.equals(request.getParameter("inboundType"))){ %> <% } %> <%if(!defaultParams.isEmpty()){ %> <%} %> <% int ctr = -1; for(String defaultParamOri : defaultParams) { String [] arrParamOri = defaultParamOri.split(InboundClientConstants.STRING_SPLITTER); String defaultParam = arrParamOri[0].trim(); String defaultVal = ""; if (arrParamOri.length == 2) { defaultVal = arrParamOri[1].trim(); } ctr++; %> <% } %> <% if(InboundClientConstants.TYPE_KAFKA.equals(request.getParameter("inboundType"))){ %> <%}%> <% if(InboundClientConstants.TYPE_CLASS.equals(request.getParameter("inboundType"))){ %> <%}else{ if(!advParams.isEmpty()){%> <%} }%>
<%=request.getParameter("inboundName")%> "/>
<%=request.getParameter("inboundType")%> <% String inboundTypeValue = request.getParameter("inboundType"); boolean isMBbased = false; if (InboundClientConstants.TYPE_WSO2MB.equals(inboundTypeValue)) { inboundTypeValue = InboundClientConstants.TYPE_JMS; isMBbased = true; } %>
*
*
*
*
*
*
*
<%=defaultParam %>* <%if(arrParamOri.length > 2){%> <%if(InboundClientConstants.TYPE_KAFKA.equals(request.getParameter("inboundType"))){ firstSpecialParam = arrParamOri[1].trim(); %> <%}%> <%for(int i = 1;i <%}%> <%} else if (isMBbased) { if (defaultParam.equals("wso2mb.connection.url")) { %> (eg: amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5673' ) <%} else if (defaultParam.equals("java.naming.factory.initial")) {%> <%} else { %> <% } %> <% } else{ %> <%if(InboundClientConstants.TYPE_HTTPS.equals(request.getParameter("inboundType")) && defaultParam.equals("keystore")){%> <%}else{ %> <%} %> <%} %>
<% String[] allSpecialParams = specialParams.split(","); String[] parentLevelParameters = allSpecialParams[0].split(InboundClientConstants.STRING_SPLITTER); %> <% int specialParameterCount = 0; for (int s = 0; s < parentLevelParameters.length; s++) { %> <% specialParameterCount++; } for (int s = 1; s < allSpecialParams.length; s++) { %> <% specialParameterCount++; } for(int s = 0;s -1 && specialParam.split(InboundClientConstants.STRING_SPLITTER)[0].trim().equals("topics/topic.filter"))) {%> <%} else{ if(allSpecialParams[s].startsWith(firstSpecialParam+".")){%> <%} } }%>
<%=specialParam.split(InboundClientConstants.STRING_SPLITTER)[0].trim()%>*
<%if(tLists[1].equals("topic.filter")){ String[] fLists = topicListParams.split(InboundClientConstants.STRING_SPLITTER); %> <%}%>
<%=specialParam.split(InboundClientConstants.STRING_SPLITTER)[0].trim()%>*
<%=specialParam.split(InboundClientConstants.STRING_SPLITTER)[1].trim()%> name*
<%=allSpecialParams[s].replace(firstSpecialParam+".", "")%>*
" onclick="inboundsave2('','','','','','',document.inboundcreationform); return false;"/> " onclick="document.location.href='index.jsp?ordinal=0';"/>
<% } catch (Throwable e) { %> <% return; } %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy