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

📄 upnpservice.java

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

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

/**
 * Generic class for describing a Universal Plug & Play service.
 *
 * @version $Revision: 1.3 $
 *
 * $Id: UPnPService.java,v 1.3 2005/12/14 12:54:28 ahaeber Exp $
 */
public class UPnPService implements Cloneable {

	private String serviceType;
	private String serviceID;
	private String scpdURL;
	private String eventSubURL;
	private String controlURL;

    /**
     * Constructs an empty service.
     */
    public UPnPService() {
        serviceType = "";
        serviceID = "";
        scpdURL = "";
        eventSubURL = "";
        controlURL = "";
    }

    /**
     * Constructs a new service based on the parameters.
     *
     * @param type Service Type
     *
     * @param id Service Id
     * 
     * @param scpd Service Control Protocol Description URL
     *
     * @param eventSub Event Subscription URL
     *
     * @param control  Service Control URL
     */
    public UPnPService(
        String type, 
        String id, 
        String scpd, 
        String eventSub, 
        String control) 
    {
        serviceType = type;
        serviceID = id;
        scpdURL = scpd;
        eventSubURL = eventSub;
        controlURL = control;
    }

    /**
     * Clone this service.
     *
     * @return Identical copy of this class instance.
     */
    public Object clone() {
        return new UPnPService(
            serviceType, 
            serviceID, 
            scpdURL, 
            eventSubURL, 
            controlURL);
    }
	
    /**
     * Get service type.
     *
     * @return Service Type. 
     * @see #serviceType
     */
	public String getServiceType(){
		return serviceType;
	}
	
    /**
     * Get service ID.
     *
     * @return Service ID.
     * @see #serviceID
     */
	public String getServiceID(){
		return serviceID;
	}
	
    /**
     * Get Service Control Protocol Description URL.
     *
     * @return Service Control Protocol Description URL.
     * @see #scpdURL
     */
	public String getScpdURL(){
		return scpdURL;
	}
	
    /**
     * Get event subscription URL.
     *
     * @return Event subscription URL.
     * @see #eventSubURL
     */
	public String getEventSubURL(){
		return eventSubURL;
	}
	
    /**
     * Get service control URL.
     *
     * @return Service Control URL. 
     * @see #controlURL
     */
	public String getControlURL(){
		return controlURL;
	}

    /**
     * Set service id.
     *
     * @param id Requested service id.
     * @see #serviceID
     */
    public void setServiceId(String id) {
        serviceID = id;
    }
	
    /**
     * Set service type.
     *
     * @param serviceType Requested service type.
     * @see #serviceType
     */
	public void setServiceType(String serviceType){
		this.serviceType = serviceType;
	}

    /**
     * Set Service Control Protocol URL.
     *
     * @param url Requested SCPD URL.
     * @see #scpdURL
     */
    public void setSCPDURL(String url) {
        scpdURL = url;
    }
	
    /**
     * Set event subscription URL.
     *
     * @param url Requested event subscription URL.
     * @see #eventSubURL
     */
    public void setEventSubURL(String url) {
        eventSubURL = url;
    }

    /**
     * Set service control URL.
     *
     * @param controlURL Requested service control URL.
     * @see #controlURL
     */
	public void setControlURL(String controlURL){
		this.controlURL = controlURL;
	}
}

⌨️ 快捷键说明

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