CVS: plexus-components/jetty/src/java/org/apache/plexus/jetty JettyServer.java,1.2,1.3 JettyServletContainer.java,1.2,1.3
[email protected] Wed, 2 Jul 2003 16:39:22 -0500
| Newsgroups | gmane.comp.java.plexus.devel |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/plexus/plexus-components/jetty/src/java/org/apache/plexus/jetty
In directory eng.werken.com:/tmp/cvs-serv29021/jetty/src/java/org/apache/plexus/jetty
Modified Files:
JettyServer.java JettyServletContainer.java
Log Message:
Now, if "*" is specified as the host name, Jetty will listen on all
hosts. This isn't what I want long term, but it will get me by for now,
and is a nice feature to have.
Index: JettyServer.java
===================================================================
RCS file: /cvsroot/plexus/plexus-components/jetty/src/java/org/apache/plexus/jetty/JettyServer.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- JettyServer.java 28 Apr 2003 02:22:41 -0000 1.2
+++ JettyServer.java 2 Jul 2003 21:39:13 -0000 1.3
@@ -179,7 +179,10 @@
appContext.setAttribute( PlexusServlet.SERVICE_MANAGER_KEY, getServiceManager() );
// Add this webapp context to the running server.
- addContext( virtualHost, appContext );
+ if ( virtualHost.equals("*") )
+ addContext( appContext );
+ else
+ addContext( virtualHost, appContext );
return appContext;
}
Index: JettyServletContainer.java
===================================================================
RCS file: /cvsroot/plexus/plexus-components/jetty/src/java/org/apache/plexus/jetty/JettyServletContainer.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- JettyServletContainer.java 28 Apr 2003 02:22:41 -0000 1.2
+++ JettyServletContainer.java 2 Jul 2003 21:39:13 -0000 1.3
@@ -239,7 +239,7 @@
public void configure( Configuration configuration )
throws ConfigurationException
{
- setHost( configuration.getChild( "host" ).getValue() );
+ setHost( configuration.getChild( "host" ).getValue( "*" ) );
setPort( configuration.getChild( "port" ).getValueAsInteger() );
setWebappsDirectory( new File( configuration.getChild( "webappsDirectory" ).getValue( "web-apps" ) ) );
setExtractWars( configuration.getChild( "extractWars" ).getValueAsBoolean( true ) );