@ -101,6 +101,8 @@ import org.springframework.util.StringUtils;
* @author Edd ú Mel é ndez
* @author Edd ú Mel é ndez
* @author Venil Noronha
* @author Venil Noronha
* @author Henri Kerola
* @author Henri Kerola
* @author Henrich Kr ä mer
*
* @see # setPort ( int )
* @see # setPort ( int )
* @see # setConfigurations ( Collection )
* @see # setConfigurations ( Collection )
* @see JettyEmbeddedServletContainer
* @see JettyEmbeddedServletContainer
@ -895,7 +897,7 @@ public class JettyEmbeddedServletContainerFactory
ReflectionUtils . findMethod ( connectorClass , "setPort" , int . class )
ReflectionUtils . findMethod ( connectorClass , "setPort" , int . class )
. invoke ( connector , address . getPort ( ) ) ;
. invoke ( connector , address . getPort ( ) ) ;
ReflectionUtils . findMethod ( connectorClass , "setHost" , String . class )
ReflectionUtils . findMethod ( connectorClass , "setHost" , String . class )
. invoke ( connector , address . getHost Name ( ) ) ;
. invoke ( connector , address . getHost String ( ) ) ;
if ( acceptors > 0 ) {
if ( acceptors > 0 ) {
ReflectionUtils . findMethod ( connectorClass , "setAcceptors" , int . class )
ReflectionUtils . findMethod ( connectorClass , "setAcceptors" , int . class )
. invoke ( connector , acceptors ) ;
. invoke ( connector , acceptors ) ;
@ -924,7 +926,7 @@ public class JettyEmbeddedServletContainerFactory
public AbstractConnector createConnector ( Server server , InetSocketAddress address ,
public AbstractConnector createConnector ( Server server , InetSocketAddress address ,
int acceptors , int selectors ) {
int acceptors , int selectors ) {
ServerConnector connector = new ServerConnector ( server , acceptors , selectors ) ;
ServerConnector connector = new ServerConnector ( server , acceptors , selectors ) ;
connector . setHost ( address . getHost Name ( ) ) ;
connector . setHost ( address . getHost String ( ) ) ;
connector . setPort ( address . getPort ( ) ) ;
connector . setPort ( address . getPort ( ) ) ;
for ( ConnectionFactory connectionFactory : connector
for ( ConnectionFactory connectionFactory : connector
. getConnectionFactories ( ) ) {
. getConnectionFactories ( ) ) {