web.makefault-mediator.edit-mediator.jsp Maven / Gradle / Ivy
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@ page import="org.wso2.carbon.mediator.fault.FaultMediator" %>
<%@ page import="org.wso2.carbon.mediator.fault.ui.util.FaultUtil" %>
<%@ page import="org.wso2.carbon.mediator.service.ui.Mediator" %>
<%@ page import="org.wso2.carbon.sequences.ui.util.SequenceEditorHelper" %>
<%@ page import="org.wso2.carbon.sequences.ui.util.ns.NameSpacesRegistrar" %>
<%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %>
<%@ page import="org.apache.axiom.om.OMElement" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
<%
Mediator mediator = SequenceEditorHelper.getEditingMediator(request, session);
if (!(mediator instanceof FaultMediator)) {
CarbonUIMessage.sendCarbonUIMessage("Unable to edit the mediator", CarbonUIMessage.ERROR, request);
%>
<%
return;
}
FaultMediator faultMediator = (FaultMediator) mediator;
// Getting the fault code option to set it selected
String faultcodeOption;
if (faultMediator.getFaultCodeValue() != null && faultMediator.getFaultCodeValue().getLocalPart() != null) {
faultcodeOption = faultMediator.getFaultCodeValue().getLocalPart();
} else {
faultcodeOption = "undefined";
}
%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy