private Properties createPropertyNames ( ) { Properties propertyNames = new Properties ( ) ; propertyNames . setProperty ( HOST , "mail.host" ) ; propertyNames . setProperty ( USER , "mail.user" ) ; propertyNames . setProperty ( FROM , "mail.from" ) ; propertyNames . setProperty ( TRANSPORTPROTOCOL , "mail.transport.protocol" ) ; propertyNames . setProperty ( STOREPROTOCOL , "mail.store.protocol" ) ; return propertyNames ; }
The createPropertyName method sets a property for five special strings that can be set in a different method such as mail . host . These are different way to set certain property values and are unique to these five