
web.inbound.deleteInbound-ajaxprocessor.jsp Maven / Gradle / Ivy
The newest version!
<%@page import="org.wso2.carbon.inbound.ui.internal.InboundClientConstants"%>
<%@page import="org.wso2.carbon.inbound.ui.internal.InboundManagementClient"%>
<%@ page import="org.wso2.carbon.task.ui.internal.TaskClientConstants" %>
<%@ page import="org.wso2.carbon.task.ui.internal.TaskManagementClient" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
//ignore methods other than post
if (!request.getMethod().equalsIgnoreCase("POST")) {
response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED);
return;
}
InboundManagementClient client;
try {
client = InboundManagementClient.getInstance(config, session);
String name = request.getParameter("inboundName");
if (name == null || "".equals(name)) {
throw new ServletException("Inbound name is empty");
}
name = name.trim();
client.removeInboundEndpoint(name);
} catch (Throwable e) {
request.getSession().setAttribute(InboundClientConstants.EXCEPTION, e);
%>
<%
return;
}
%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy