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

web.case-mediator.edit-mediator.jsp Maven / Gradle / Ivy

There is a newer version: 4.7.219
Show newest version

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@ page import="org.wso2.carbon.mediator.service.ui.Mediator" %>
<%@ page import="org.wso2.carbon.mediator.switchm.SwitchCaseMediator" %>
<%@ page import="org.wso2.carbon.sequences.ui.util.SequenceEditorHelper" %>
<%@ page import="java.util.regex.Pattern" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>


    
    <%
        Mediator mediator = SequenceEditorHelper.getEditingMediator(request, session);
        if (!(mediator instanceof SwitchCaseMediator)) {
            // todo : proper error handling
            throw new RuntimeException("Unable to edit the mediator");
        }

        SwitchCaseMediator switchCaseMediator = (SwitchCaseMediator)mediator;
        Pattern pattern = switchCaseMediator.getRegex();
        String caseValueString = "";
        if (pattern != null) {
            caseValueString = pattern.toString();
        }
    %>

    

*




© 2015 - 2025 Weber Informatics LLC | Privacy Policy