%-- /* * Copyright 2001-2013 The Apache Software Foundation. * * 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. * */ Document : service editor Created on : Feb 24, 2013, 3:31:39 PM Author : Alex O'Ree --%> <%@page import="java.net.URLEncoder"%> <%@page import="org.uddi.api_v3.*"%> <%@page import="org.apache.juddi.webconsole.PostBackConstants"%> <%@page import="org.apache.juddi.webconsole.hub.UddiHub"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%//@include file="csrf.jsp" boolean newitem = false; String bindingid = request.getParameter("id"); String serviceid = request.getParameter("svcid"); if (bindingid == null && serviceid == null) { response.sendRedirect("index.jsp"); } if (bindingid == null || bindingid.length() == 0) { //response.sendRedirect("browse.jsp"); if (serviceid != null && serviceid.length() > 0) { newitem = true; } else { //no service id or business id response.sendRedirect("index.jsp"); } } UddiHub x = UddiHub.getInstance(application, request.getSession()); BindingTemplate bd = null; if (!newitem) { bd = x.GetBindingDetailsAsObject(bindingid); } else { bd = new BindingTemplate(); bd.setServiceKey(serviceid); BusinessService be = x.GetServiceDetail(serviceid); if (be == null) { //incase an invalid business id was passed in response.sendRedirect("index.jsp"); } else { bd.setServiceKey(be.getServiceKey()); } } if (bd == null) { //we can't make a new binding without a service to reference response.sendRedirect("index.jsp"); return; } %> <%@include file="header-top.jsp" %>
# | <%=ResourceLoader.GetResource(session, "pages.signatures.signedby")%> | <%=ResourceLoader.GetResource(session, "pages.signatures.status")%> | |
---|---|---|---|
" + k + " | "); out.write(x.SignatureToReadable(bd.getSignature().get(k))); out.write(" | "); out.write("" + ResourceLoader.GetResource(session, "items.signed.viewcert") + ""); out.write(" | " + ResourceLoader.GetResource(session, "items.loading") + " ");
%>
<%
out.write(" |