set the port number for a network listener that the glassfish server should use . examples : 1 . when the custom configuration file is not used , the ports can be set using : setport `` http-listener '' , 8080 ; / / glassfish will listen on http port 8080 setport `` https-listener '' , 8181 ; / / glassfish will listen on https port 8181 2 . when the custom configuration file domain.xml is used , then the name of the network listener specified here will point to the network-listener element in the domain.xml . for example : setport `` joe '' , 8080 ; will point to server.network-config . network-listeners . network-listener . joe . hence the glassfish server will use `` joe '' network listener with its port set to 8080 . if there is no such network-listener by name `` joe '' in the supplied domain.xml , then the server will throw an exception and fail to start . concode_field_sep String NETWORK_LISTENER_KEY concode_elem_sep String CONFIG_FILE_URI_PROP_NAME concode_elem_sep String INSTANCE_ROOT_PROP_NAME concode_elem_sep Properties gfProperties concode_elem_sep String CONFIG_FILE_READ_ONLY concode_field_sep void setConfigFileURI concode_elem_sep void setConfigFileReadOnly concode_elem_sep int getPort concode_elem_sep String getInstanceRoot concode_elem_sep Properties getProperties concode_elem_sep void setProperty concode_elem_sep void setInstanceRoot concode_elem_sep boolean isConfigFileReadOnly concode_elem_sep String getConfigFileURI
void function ( String arg0 , int arg1 ) { if ( arg0 != null ) { String loc0 = String . format ( NETWORK_LISTENER_KEY , arg0 ) ; if ( loc0 != null ) { gfProperties . setProperty ( loc0 + "srini_string" , Integer . toString ( arg1 ) ) ; gfProperties . setProperty ( loc0 + "srini_string" , "srini_string" ) ; } } }