Added:
incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/WANPOTSLinkConfig.java
URL:
http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/WANPOTSLinkConfig.java?view=auto&rev=533875
==============================================================================
---
incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/WANPOTSLinkConfig.java
(added)
+++
incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/WANPOTSLinkConfig.java
Mon Apr 30 16:15:05 2007
@@ -0,0 +1,1334 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.igd.service;
+
+import java.util.Dictionary;
+import java.util.HashMap;
+import java.util.Hashtable;
+import java.util.Map;
+
+import org.osgi.framework.*;
+import org.osgi.service.upnp.*;
+import org.apache.felix.upnp.devicegen.util.*;
+import org.apache.felix.upnp.devicegen.holder.*;
+
+import org.apache.felix.upnp.devicegen.igd.model.*;
+import org.apache.felix.upnp.devicegen.igd.impl.*;
+
+
+
+public class WANPOTSLinkConfig extends AbstractUPnPService {
+
+
+ private WANPOTSLinkConfigModel model;
+
+ /**
+ * constructor
+ */
+ public WANPOTSLinkConfig(
+ UPnPDevice upnpDevice,
+ String serviceId,
+ String serviceType,
+ String version,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpDevice,
+ serviceId,
+ serviceType,
+ version
+ );
+ this.model=model;
+
+
+ stateVariables=new HashMap();
+
+
+
+ stateVariables.put(
+ "ISPPhoneNumber",
+ new ISPPhoneNumberStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "ISPInfo",
+ new ISPInfoStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "LinkType",
+ new LinkTypeStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "NumberOfRetries",
+ new NumberOfRetriesStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "DelayBetweenRetries",
+ new DelayBetweenRetriesStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "Fclass",
+ new FclassStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "DataModulationSupported",
+ new DataModulationSupportedStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "DataProtocol",
+ new DataProtocolStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "DataCompression",
+ new DataCompressionStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "PlusVTRCommandSupported",
+ new PlusVTRCommandSupportedStateVariable(this,model)
+ );
+
+ actions=new HashMap();
+
+
+
+ actions.put(
+ "SetISPInfo",
+ new SetISPInfoAction(this,model)
+ );
+
+
+
+ actions.put(
+ "SetCallRetryInfo",
+ new SetCallRetryInfoAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetISPInfo",
+ new GetISPInfoAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetCallRetryInfo",
+ new GetCallRetryInfoAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetFclass",
+ new GetFclassAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetDataModulationSupported",
+ new GetDataModulationSupportedAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetDataProtocol",
+ new GetDataProtocolAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetDataCompression",
+ new GetDataCompressionAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetPlusVTRCommandSupported",
+ new GetPlusVTRCommandSupportedAction(this,model)
+ );
+
+ }
+
+ // UPnPStateVariable classes
+
+
+
+// class ISPPhoneNumberStateVariable
+public class ISPPhoneNumberStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="ISPPhoneNumber";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private WANPOTSLinkConfigModel model;
+
+ public ISPPhoneNumberStateVariable(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see
it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class ISPInfoStateVariable
+public class ISPInfoStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="ISPInfo";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private WANPOTSLinkConfigModel model;
+
+ public ISPInfoStateVariable(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see
it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class LinkTypeStateVariable
+public class LinkTypeStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="LinkType";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private WANPOTSLinkConfigModel model;
+
+ public LinkTypeStateVariable(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ /*
+ List allowedValueList=new LinkedList();
+
+
allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","PPP_Dialup"));
+
+ this.setallowedValueList(allowedValueList);
+ */
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see
it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class NumberOfRetriesStateVariable
+public class NumberOfRetriesStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="NumberOfRetries";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private WANPOTSLinkConfigModel model;
+
+ public NumberOfRetriesStateVariable(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see
it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class DelayBetweenRetriesStateVariable
+public class DelayBetweenRetriesStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="DelayBetweenRetries";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private WANPOTSLinkConfigModel model;
+
+ public DelayBetweenRetriesStateVariable(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see
it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class FclassStateVariable
+public class FclassStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="Fclass";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private WANPOTSLinkConfigModel model;
+
+ public FclassStateVariable(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see
it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class DataModulationSupportedStateVariable
+public class DataModulationSupportedStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="DataModulationSupported";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private WANPOTSLinkConfigModel model;
+
+ public DataModulationSupportedStateVariable(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see
it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class DataProtocolStateVariable
+public class DataProtocolStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="DataProtocol";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private WANPOTSLinkConfigModel model;
+
+ public DataProtocolStateVariable(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see
it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class DataCompressionStateVariable
+public class DataCompressionStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="DataCompression";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private WANPOTSLinkConfigModel model;
+
+ public DataCompressionStateVariable(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see
it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class PlusVTRCommandSupportedStateVariable
+public class PlusVTRCommandSupportedStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="PlusVTRCommandSupported";
+ public final static String DATATYPE="boolean";
+
+ // HERE specific state variable members
+ private WANPOTSLinkConfigModel model;
+
+ public PlusVTRCommandSupportedStateVariable(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see
it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+ // UPnPAction classes
+
+
+
+public class SetISPInfoAction extends AbstractUPnPAction {
+
+ WANPOTSLinkConfigModel model;
+
+ // HERE specific action members
+
+ public SetISPInfoAction(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ "SetISPInfo",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "NewISPPhoneNumber",
+ upnpService.getStateVariable("ISPPhoneNumber")
+ );
+
+ addInArg(
+ "NewISPInfo",
+ upnpService.getStateVariable("ISPInfo")
+ );
+
+ addInArg(
+ "NewLinkType",
+ upnpService.getStateVariable("LinkType")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.String newISPPhoneNumber = (java.lang.String)
_args.get("NewISPPhoneNumber");
+ java.lang.String newISPInfo = (java.lang.String)
_args.get("NewISPInfo");
+ java.lang.String newLinkType = (java.lang.String)
_args.get("NewLinkType");
+
+
+ // invoke model
+
+ model.setISPInfo(
+ StringHolder.toValue(
+ newISPPhoneNumber)
+ ,
+
+StringHolder.toValue(
+ newISPInfo)
+ ,
+
+StringHolder.toValue(
+ newLinkType)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class SetCallRetryInfoAction extends AbstractUPnPAction {
+
+ WANPOTSLinkConfigModel model;
+
+ // HERE specific action members
+
+ public SetCallRetryInfoAction(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ "SetCallRetryInfo",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "NewNumberOfRetries",
+ upnpService.getStateVariable("NumberOfRetries")
+ );
+
+ addInArg(
+ "NewDelayBetweenRetries",
+
upnpService.getStateVariable("DelayBetweenRetries")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Long newNumberOfRetries = (java.lang.Long)
_args.get("NewNumberOfRetries");
+ java.lang.Long newDelayBetweenRetries = (java.lang.Long)
_args.get("NewDelayBetweenRetries");
+
+
+ // invoke model
+
+ model.setCallRetryInfo(
+ LongHolder.toValue(
+ newNumberOfRetries)
+ ,
+
+LongHolder.toValue(
+ newDelayBetweenRetries)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetISPInfoAction extends AbstractUPnPAction {
+
+ WANPOTSLinkConfigModel model;
+
+ // HERE specific action members
+
+ public GetISPInfoAction(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ "GetISPInfo",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "NewISPPhoneNumber",
+ upnpService.getStateVariable("ISPPhoneNumber")
+ );
+
+ addOutArg(
+ "NewISPInfo",
+ upnpService.getStateVariable("ISPInfo")
+ );
+
+ addOutArg(
+ "NewLinkType",
+ upnpService.getStateVariable("LinkType")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ StringHolder newISPPhoneNumber = new StringHolder();
+ StringHolder newISPInfo = new StringHolder();
+ StringHolder newLinkType = new StringHolder();
+
+
+ // invoke model
+
+ model.getISPInfo(
+ newISPPhoneNumber,
+
+newISPInfo,
+
+newLinkType
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+
_result.put("NewISPPhoneNumber",newISPPhoneNumber.getObject());
+ // java.lang.String
+ _result.put("NewISPInfo",newISPInfo.getObject());
+ // java.lang.String
+ _result.put("NewLinkType",newLinkType.getObject());
+ // java.lang.String
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetCallRetryInfoAction extends AbstractUPnPAction {
+
+ WANPOTSLinkConfigModel model;
+
+ // HERE specific action members
+
+ public GetCallRetryInfoAction(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ "GetCallRetryInfo",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "NewNumberOfRetries",
+ upnpService.getStateVariable("NumberOfRetries")
+ );
+
+ addOutArg(
+ "NewDelayBetweenRetries",
+
upnpService.getStateVariable("DelayBetweenRetries")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ LongHolder newNumberOfRetries = new LongHolder();
+ LongHolder newDelayBetweenRetries = new LongHolder();
+
+
+ // invoke model
+
+ model.getCallRetryInfo(
+ newNumberOfRetries,
+
+newDelayBetweenRetries
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+
_result.put("NewNumberOfRetries",newNumberOfRetries.getObject());
+ // java.lang.Long
+
_result.put("NewDelayBetweenRetries",newDelayBetweenRetries.getObject());
+ // java.lang.Long
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetFclassAction extends AbstractUPnPAction {
+
+ WANPOTSLinkConfigModel model;
+
+ // HERE specific action members
+
+ public GetFclassAction(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ "GetFclass",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "NewFclass",
+ upnpService.getStateVariable("Fclass")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ StringHolder newFclass = new StringHolder();
+
+
+ // invoke model
+
+ model.getFclass(
+ newFclass
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("NewFclass",newFclass.getObject());
+ // java.lang.String
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetDataModulationSupportedAction extends AbstractUPnPAction {
+
+ WANPOTSLinkConfigModel model;
+
+ // HERE specific action members
+
+ public GetDataModulationSupportedAction(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ "GetDataModulationSupported",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "NewDataModulationSupported",
+
upnpService.getStateVariable("DataModulationSupported")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ StringHolder newDataModulationSupported = new StringHolder();
+
+
+ // invoke model
+
+ model.getDataModulationSupported(
+ newDataModulationSupported
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+
_result.put("NewDataModulationSupported",newDataModulationSupported.getObject());
+ // java.lang.String
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetDataProtocolAction extends AbstractUPnPAction {
+
+ WANPOTSLinkConfigModel model;
+
+ // HERE specific action members
+
+ public GetDataProtocolAction(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ "GetDataProtocol",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "NewDataProtocol",
+ upnpService.getStateVariable("DataProtocol")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ StringHolder newDataProtocol = new StringHolder();
+
+
+ // invoke model
+
+ model.getDataProtocol(
+ newDataProtocol
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+
_result.put("NewDataProtocol",newDataProtocol.getObject());
+ // java.lang.String
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetDataCompressionAction extends AbstractUPnPAction {
+
+ WANPOTSLinkConfigModel model;
+
+ // HERE specific action members
+
+ public GetDataCompressionAction(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ "GetDataCompression",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "NewDataCompression",
+ upnpService.getStateVariable("DataCompression")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ StringHolder newDataCompression = new StringHolder();
+
+
+ // invoke model
+
+ model.getDataCompression(
+ newDataCompression
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+
_result.put("NewDataCompression",newDataCompression.getObject());
+ // java.lang.String
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetPlusVTRCommandSupportedAction extends AbstractUPnPAction {
+
+ WANPOTSLinkConfigModel model;
+
+ // HERE specific action members
+
+ public GetPlusVTRCommandSupportedAction(
+ UPnPService upnpService,
+ WANPOTSLinkConfigModel model
+ ){
+ super(
+ upnpService,
+ "GetPlusVTRCommandSupported",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "NewPlusVTRCommandSupported",
+
upnpService.getStateVariable("PlusVTRCommandSupported")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ BooleanHolder newPlusVTRCommandSupported = new BooleanHolder();
+
+
+ // invoke model
+
+ model.getPlusVTRCommandSupported(
+ newPlusVTRCommandSupported
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+
_result.put("NewPlusVTRCommandSupported",newPlusVTRCommandSupported.getObject());
+ // java.lang.Boolean
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+}
Propchange:
incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/WANPOTSLinkConfig.java
------------------------------------------------------------------------------
svn:eol-style = native