--- /dev/null
+/*\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.SOAPException;\r
+import javax.xml.soap.SOAPFactory;\r
+\r
+import org.commscope.tr069adapter.acs.cpe.TR069RPC;\r
+\r
+public class AddObjectResponse extends TR069RPC {\r
+\r
+ private static final long serialVersionUID = 8605925303995349848L;\r
+\r
+ public AddObjectResponse() {\r
+ name = "AddObjectResponse";\r
+ }\r
+\r
+ @Override\r
+ protected void createBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException {\r
+ logger.isDebugEnabled();\r
+ }\r
+\r
+ @Override\r
+ protected void parseBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException {\r
+ instanceNumber = Integer.parseInt(getRequestElement(spf, body, "InstanceNumber"));\r
+ status = Integer.parseInt(getRequestElement(spf, body, "Status"));\r
+ }\r
+\r
+ @Override\r
+ public String toString() {\r
+ return name + ": status=" + status + " instance=" + instanceNumber;\r
+ }\r
+\r
+ private int instanceNumber;\r
+ private int status;\r
+\r
+ public int getInstanceNumber() {\r
+ return instanceNumber;\r
+ }\r
+\r
+ public void setInstanceNumber(int instanceNumber) {\r
+ this.instanceNumber = instanceNumber;\r
+ }\r
+\r
+ public int getStatus() {\r
+ return status;\r
+ }\r
+\r
+ public void setStatus(int status) {\r
+ this.status = status;\r
+ }\r
+\r
+}\r