All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cybergarage.upnp.device.NTS Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
/******************************************************************
*
*	CyberUPnP for Java
*
*	Copyright (C) Satoshi Konno 2002
*
*	File: NTS.java
*
*	Revision;
*
*	12/09/02
*		- first revision.
*
******************************************************************/

package org.cybergarage.upnp.device;

public class NTS 
{
	public final static String ALIVE = "ssdp:alive";
	public final static String BYEBYE = "ssdp:byebye";
	public final static String PROPCHANGE = "upnp:propchange";
	
	public final static boolean isAlive(String ntsValue)
	{
		if (ntsValue == null)
			return false;
		return ntsValue.startsWith(NTS.ALIVE);
	}

	public final static boolean isByeBye(String ntsValue)
	{
		if (ntsValue == null)
			return false;
		return ntsValue.startsWith(NTS.BYEBYE);
	}
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy