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

com.vikingbrain.nmt.operations.upnp.ListUpnpServerOperation Maven / Gradle / Ivy

Go to download

A Java HTTP client for consuming TheDavidBox Service API of Networked Media Tank devices

There is a newer version: 1.2.1
Show newest version
package com.vikingbrain.nmt.operations.upnp;

import com.vikingbrain.nmt.operations.ModuleType;
import com.vikingbrain.nmt.operations.OperationType;
import com.vikingbrain.nmt.operations.TheDavidboxOperationFactory;
import com.vikingbrain.nmt.responses.upnp.ResponseListUpnpServer;

/**
 * Operation that gets the audio that is currently playing on NMT.
 * Execution example: http://popcorn:8008/upnp?arg0=list_upnp_server
 * 
 * @author vikingBrain
 */
public class ListUpnpServerOperation extends AbstractUpnpOperation {

	/** Operation type. */
	private static final OperationType operationType = ModuleType.UPNP.list_upnp_server;
	
	/** Response target class. */
	private static final Class responseTargetClass = ResponseListUpnpServer.class;

	/**
	 * Constructor. 
	 * @param operationFactory the operation factory
	 */
	public ListUpnpServerOperation(TheDavidboxOperationFactory operationFactory) {
		super(operationFactory, operationType, responseTargetClass);
	}

	@Override
	public String toString() {
		return "ListUpnpServerOperation [getOperationType()="
				+ getOperationType() + "]";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy