⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 upnpdevice.java

📁 国外的j2me播放器软件
💻 JAVA
字号:
package no.auc.one.portableplayer.communication;

import no.auc.one.portableplayer.utils.*;

/**
 * Generic class for describing a Universal Plug & Play device.
 *
 * @version $Revision: 1.3.8.1 $
 *
 * $Id: UPnPDevice.java,v 1.3.8.1 2006/04/17 09:11:16 ahaeber Exp $
 */
public class UPnPDevice implements Cloneable {
    /**
     * Name of the device
     */
    protected String friendlyName;

    /**
     * Base URL for all URLs in the device description of this device.
     */
    protected String urlBase;
    
    /**
     * URL for device description xml file of this device
     */
    protected String deviceDescriptionLocation;
     /**
     * Unique device name for this device
     */
    protected String deviceUDN;
    
    /**
     * Constructs an empty device.
     */
    public UPnPDevice() {
        friendlyName = "";
        urlBase = "";
		deviceDescriptionLocation = "";
		deviceUDN = "";
    }

    /**
     * Constructs a new device based on the parameters.
     *
     * @param name Friendly name of the device. @see friendlyName.
     *
     * @param urlBase Base URL for this device. @see urlBase.
     */
    public UPnPDevice(String name, String urlBase, String devicedescr, String udn) {
        friendlyName = name;
        this.urlBase = urlBase;
		deviceDescriptionLocation = devicedescr;
		deviceUDN = udn;
    }
    
    /**
     * Clone this device.
     *
     * @return Identical copy of this class instance.
     */
    public Object clone () {
        return new UPnPDevice(friendlyName, urlBase, deviceDescriptionLocation, deviceUDN);
    }

    /**
     * Get the {@link friendlyName name}.
     *
     * @return Name of this device.
     */
    public String getFriendlyName() {
        return friendlyName;
    }

    /**
     * Get the {@linkplain urlBase Base URL} of this device.
     *
     * @return URL base for this device.
     */
    public String getURLBase() {
        return urlBase;
    }
    /**
     * Get the url for devicedescription of this device.
     *
     * @return URL for devicedescription xml file.
     */
    public String getDeviceDescriptionLocation() {
        return deviceDescriptionLocation;
    }
	
	public void setDeviceDescriptionLocation(String deviceDescriptionLocation) {
        this.deviceDescriptionLocation = deviceDescriptionLocation;
    }
	
    /**
     * Get the UDN of this device.
     *
     * @return UDN for this device.
     */
    public String getDeviceUDN() {
        return deviceUDN;
    }
}

⌨️ 快捷键说明

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