larryi 01/08/15 21:50:30
Modified: src/share/org/apache/tomcat/core Context.java
Log:
Still figurine out virtual hosts, but I think virtual host ip address will be
needed for writing config files should the host name not be an ip address.
Revision Changes Path
1.147 +16 -0 jakarta-tomcat/src/share/org/apache/tomcat/core/Context.java
Index: Context.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Context.java,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -r1.146 -r1.147
--- Context.java 2001/08/03 02:44:24 1.146
+++ Context.java 2001/08/16 04:50:30 1.147
@@ -221,6 +221,8 @@
// Virtual host name ( null if default )
private String vhost=null;
+ // Virtual host ip address (if vhost isn't an address)
+ private String vhostip=null;
// vhost aliases
private Vector vhostAliases=new Vector();
@@ -605,6 +607,20 @@
*/
public final String getHost() {
return vhost;
+ }
+
+ /**
+ * Set the virtual host ip address.
+ */
+ public final void setHostAddress( String ip ) {
+ vhostip=ip;
+ }
+
+ /**
+ * Return the virtual host ip address.
+ */
+ public final String getHostAddress() {
+ return vhostip;
}
/** DocBase points to the web application files.