protected Server getServer ( MuleAgentConfig pConfig ) { Server newServer = new Server ( ) ; Connector connector = createConnector ( newServer ) ; if ( pConfig . getHost ( ) != null ) { ClassUtil . applyMethod ( connector , "setHost" , pConfig . getHost ( ) ) ; } ClassUtil . applyMethod ( connector , "setPort" , pConfig . getPort ( ) ) ; newServer . setConnectors ( new Connector [ ] { connector } ) ; return newServer ; }
Get the agent server for suing it with mule