/** * Returns a copy of the message properties. * * @return a copy of the message properties. */ public MessageProperty[] getProperties() { // Codes_SRS_HTTPSSINGLEMESSAGE_11_013: [The function shall return a copy of the message properties.] int propertiesSize = this.properties.length; MessageProperty[] propertiesCopy = new MessageProperty[propertiesSize]; for (int i = 0; i < propertiesSize; ++i) { MessageProperty property = this.properties[i]; MessageProperty propertyCopy = new MessageProperty(property.getName(), property.getValue()); propertiesCopy[i] = propertyCopy; } return propertiesCopy; }
properties.add(new MessageProperty(propertyName, propertyValue));
this.properties.add(new MessageProperty(name, value));
httpsMsg.properties[countProperty] = new MessageProperty( HTTPS_APP_PROPERTY_PREFIX + property.getName(), property.getValue());