1 /* 2 * The source code contained herein is licensed under the IBM Public License 3 * Version 1.0, which has been approved by the Open Source Initiative. 4 * Copyright (C) 2001, International Business Machines Corporation 5 * All Rights Reserved. 6 * 7 */ 8 9 package org.uddi4j.transport; 10 11 import java.net.URL; 12 13 import org.uddi4j.UDDIElement; 14 import org.w3c.dom.Element; 15 16 /** 17 * Interface for a SOAP transport to be used by UDDI4J. 18 * 19 * org.uddi4j.logEnabled If set, indicates that transport 20 * should log message sent and received. 21 * </UL> 22 * These values may also be specified in a property 23 * file TBD. 24 * 25 * @author David Melgar (dmelgar@us.ibm.com) 26 */ 27 public interface Transport { 28 /** 29 * Sends a UDDIElement to URL. 30 * 31 * @param el UDDIElement to send 32 * @param url Destination URL 33 * @return An element representing a XML DOM tree containing the UDDI response. 34 * @exception TransportException 35 * Thrown if a problem occurs during transmission 36 */ 37 public Element send(UDDIElement el, URL url) throws TransportException; 38 39 /** 40 * Sends a DOM Element to URL. 41 * 42 * @param el UDDIElement to send 43 * @param url Destination URL 44 * @return An element representing a XML DOM tree containing the UDDI response. 45 * @exception TransportException 46 * Thrown if a problem occurs during transmission 47 */ 48 public Element send(Element el, URL url) throws TransportException; 49 } 50