/** * Create an instance of {@link SaveNode } * */ public SaveNode createSaveNode() { return new SaveNode(); }
tx.begin(); UddiEntityPublisher publisher = this.getEntityPublisher(em, body.getAuthInfo()); List<org.apache.juddi.api_v3.Node> apiNodeList = body.getNode(); for (org.apache.juddi.api_v3.Node apiNode : apiNodeList) {
/** * This calls a jUDDI implementation specific API call and is used to * help configure internode communication between jUDDI servers. This is * NOT part of the UDDI specification.<br> * Note: this API call should only be used with secure ports (SSL/TLS) * * @param node * @return a node or null if registration fails */ public NodeDetail saveNode(Node node) { NodeDetail nodeDetail = null; try { log.info("Sending Node " + node.getName() + " info to jUDDI " + getUDDINode(node).getName()); SaveNode saveNode = new SaveNode(); saveNode.setAuthInfo(getAuthToken(node.getSecurityUrl())); saveNode.getNode().add(node); nodeDetail = getUDDINode(node).getTransport().getJUDDIApiService(node.getJuddiApiUrl()).saveNode(saveNode); } catch (Exception e) { log.error("Unable to save node " + node.getName() + " ." + e.getMessage(), e); } catch (Throwable t) { log.error("Unable to save node " + node.getName() + " ." + t.getMessage(), t); } return nodeDetail; }
public void validateSaveNode(EntityManager em, org.apache.juddi.api_v3.SaveNode body) throws DispositionReportFaultMessage { if (body == null) { throw new FatalErrorException(new ErrorMessage("errors.NullInput")); } // No null or empty list List<Node> nodes = body.getNode(); if (nodes == null) { throw new ValueNotAllowedException(new ErrorMessage("errors.saveNodes.NoInput")); } for (Node clerk : body.getNode()) { validateNode(clerk); } }
tx.begin(); UddiEntityPublisher publisher = this.getEntityPublisher(em, body.getAuthInfo()); List<org.apache.juddi.api_v3.Node> apiNodeList = body.getNode(); for (org.apache.juddi.api_v3.Node apiNode : apiNodeList) {
public void validateSaveNode(EntityManager em, org.apache.juddi.api_v3.SaveNode body) throws DispositionReportFaultMessage { if (body == null) { throw new FatalErrorException(new ErrorMessage("errors.NullInput")); } // No null or empty list List<Node> nodes = body.getNode(); if (nodes == null) { throw new ValueNotAllowedException(new ErrorMessage("errors.saveNodes.NoInput")); } for (Node clerk : body.getNode()) { validateNode(clerk); } }