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

web.message_store.sourceView.jsp Maven / Gradle / Ivy

There is a newer version: 4.7.224
Show newest version
<%--
 ~ Copyright (c) 2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 ~
 ~ Licensed under the Apache License, Version 2.0 (the "License");
 ~ you may not use this file except in compliance with the License.
 ~ You may obtain a copy of the License at
 ~
 ~      http://www.apache.org/licenses/LICENSE-2.0
 ~
 ~ Unless required by applicable law or agreed to in writing, software
 ~ distributed under the License is distributed on an "AS IS" BASIS,
 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ~ See the License for the specific language governing permissions and
 ~ limitations under the License.
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"
        import="org.apache.axiom.om.OMElement" %>
<%@ page import="org.apache.axis2.context.ConfigurationContext" %>
<%@ page import="org.wso2.carbon.CarbonConstants" %>
<%@ page import="org.wso2.carbon.message.store.ui.MessageStoreAdminServiceClient" %>
<%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %>
<%@ page import="org.wso2.carbon.utils.ServerConstants" %>
<%@ page import="org.wso2.carbon.utils.xml.XMLPrettyPrinter" %>
<%@ page import="java.io.ByteArrayInputStream" %>
<%@ taglib prefix="carbon" uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>




<%--

--%>

<%--



--%>
<%--










--%>


    

    


    


    <%
        String prettyPrintPayload = "";
        String msString = (String) session.getAttribute("messageStoreConfiguration");
        String provider = (String) session.getAttribute("provider");
        String msName = (String) session.getAttribute("name");

        session.removeAttribute("messageStoreConfiguration");
        session.removeAttribute("provider");
        session.removeAttribute("name");

        ByteArrayInputStream inputStream = new ByteArrayInputStream(msString.getBytes());
        XMLPrettyPrinter xmlPrettyPrinter = new XMLPrettyPrinter(inputStream);
        prettyPrintPayload = xmlPrettyPrinter.xmlFormat();
        String designViewUrl = "";

        if (provider.equals("org.apache.synapse.message.store.impl.jms.JmsStore")) {
            if ((session.getAttribute("MBbased") != null) && ((Boolean) session.getAttribute("MBbased") == true)) {
                designViewUrl = "wso2mbMessageStore.jsp?origin=source";
            } else {
                designViewUrl = "jmsMessageStore.jsp?origin=source";
            }
        } else if (provider.equals("org.apache.synapse.message.store.impl.rabbitmq.RabbitMQStore")) {
            designViewUrl = "rabbitmqMessageStore.jsp?origin=source";
        } else if (provider.equals("org.apache.synapse.message.store.impl.memory.InMemoryStore")) {
            designViewUrl = "inMemoryMessageStore.jsp?origin=source";
        } else if (provider.equals("org.apache.synapse.message.store.impl.jdbc.JDBCMessageStore")) {
            designViewUrl = "jdbcMessageStore.jsp?origin=source";
        } else if (provider.equals("org.apache.synapse.message.store.impl.resequencer.ResequenceMessageStore")) {
            designViewUrl = "resequenceMessageStore.jsp?origin=source";
        } else {
            designViewUrl = "customMessageStore.jsp?origin=source";
        }

    %>


    

" class="button" name="save" onclick="submitTextContent();"/> " name="cancel" class="button" onclick="javascript:document.location.href='index.jsp'"/>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy