transport.java

来自「可以实现UDDI」· Java 代码 · 共 50 行

JAVA
50
字号
/*
 * The source code contained herein is licensed under the IBM Public License
 * Version 1.0, which has been approved by the Open Source Initiative.
 * Copyright (C) 2001, International Business Machines Corporation
 * All Rights Reserved.
 *
 */

package org.uddi4j.transport;

import java.net.URL;

import org.uddi4j.UDDIElement;
import org.w3c.dom.Element;

/**
 * Interface for a SOAP transport to be used by UDDI4J.
 *
 * org.uddi4j.logEnabled  If set, indicates that transport
 *   should log message sent and received.
 * </UL>
 * These values may also be specified in a property
 * file TBD.
 *
 * @author David Melgar (dmelgar@us.ibm.com)
 */
public interface Transport {
	/**
	 * Sends a UDDIElement to URL.
	 *
	 * @param el     UDDIElement to send
	 * @param url    Destination URL
	 * @return An element representing a XML DOM tree containing the UDDI response.
	 * @exception TransportException
	 *                   Thrown if a problem occurs during transmission
	 */
	public Element send(UDDIElement el, URL url) throws TransportException;

	/**
	 * Sends a DOM Element to URL.
	 *
	 * @param el     UDDIElement to send
	 * @param url    Destination URL
	 * @return An element representing a XML DOM tree containing the UDDI response.
	 * @exception TransportException
	 *                   Thrown if a problem occurs during transmission
	 */
	public Element send(Element el, URL url) throws TransportException;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?