Initial source code
[oam/tr069-adapter.git] / acs / cpe / src / main / java / org / commscope / tr069adapter / acs / cpe / rpc / GetParameterAttributes.java
diff --git a/acs/cpe/src/main/java/org/commscope/tr069adapter/acs/cpe/rpc/GetParameterAttributes.java b/acs/cpe/src/main/java/org/commscope/tr069adapter/acs/cpe/rpc/GetParameterAttributes.java
new file mode 100644 (file)
index 0000000..5070f5d
--- /dev/null
@@ -0,0 +1,58 @@
+/*\r
+ * ============LICENSE_START========================================================================\r
+ * ONAP : tr-069-adapter\r
+ * =================================================================================================\r
+ * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
+ * =================================================================================================\r
+ * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,\r
+ * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You\r
+ * may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\r
+ * either express or implied. See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ===============LICENSE_END=======================================================================\r
+ */\r
+\r
+package org.commscope.tr069adapter.acs.cpe.rpc;\r
+\r
+import javax.xml.soap.SOAPBodyElement;\r
+import javax.xml.soap.SOAPElement;\r
+import javax.xml.soap.SOAPException;\r
+import javax.xml.soap.SOAPFactory;\r
+\r
+import org.commscope.tr069adapter.acs.cpe.TR069RPC;\r
+\r
+public class GetParameterAttributes extends TR069RPC {\r
+\r
+  private static final long serialVersionUID = 1L;\r
+\r
+  /** Creates a new instance of GetParameterAttributes */\r
+  public GetParameterAttributes() {\r
+    name = "GetParameterAttributes";\r
+  }\r
+\r
+  protected void createBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException {\r
+    SOAPElement elm = body.addChildElement(spf.createName("ParameterNames"));\r
+    elm.setAttribute(SOAP_ARRAY_TYPE, "xsd:string[" + parameterNames.length + "]");\r
+    for (int i = 0; i < parameterNames.length; i++) {\r
+      elm.addChildElement("string").setValue(parameterNames[i]);\r
+    }\r
+  }\r
+\r
+  protected void parseBody(SOAPBodyElement body, SOAPFactory f) throws SOAPException {\r
+    logger.isDebugEnabled();\r
+  }\r
+\r
+  private String[] parameterNames;\r
+\r
+  public String[] getParameterNames() {\r
+    return parameterNames;\r
+  }\r
+\r
+  public void setParameterNames(String[] parameterNames) {\r
+    this.parameterNames = parameterNames;\r
+  }\r
+}\r