Implement new interface.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1308 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
+18
-1
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SiteResourceLoaderTest.java,v 1.5 2002/04/01 01:56:34 mdb Exp $
|
// $Id: SiteResourceLoaderTest.java,v 1.6 2003/11/15 02:06:40 mdb Exp $
|
||||||
//
|
//
|
||||||
// samskivert library - useful routines for java programs
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2001 Michael Bayne
|
// Copyright (C) 2001 Michael Bayne
|
||||||
@@ -28,6 +28,7 @@ import java.io.InputStream;
|
|||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
|
import java.util.Iterator;
|
||||||
|
|
||||||
import javax.servlet.RequestDispatcher;
|
import javax.servlet.RequestDispatcher;
|
||||||
import javax.servlet.Servlet;
|
import javax.servlet.Servlet;
|
||||||
@@ -137,6 +138,22 @@ public class SiteResourceLoaderTest extends TestCase
|
|||||||
default: return DEFAULT_SITE_STRING;
|
default: return DEFAULT_SITE_STRING;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getSiteId (String siteString)
|
||||||
|
{
|
||||||
|
if ("site1".equals(siteString)) {
|
||||||
|
return SITE1_ID;
|
||||||
|
} else if ("site2".equals(siteString)) {
|
||||||
|
return SITE2_ID;
|
||||||
|
} else {
|
||||||
|
return DEFAULT_SITE_ID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public Iterator enumerateSites ()
|
||||||
|
{
|
||||||
|
return null; // not used
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static final int SITE1_ID = 1;
|
protected static final int SITE1_ID = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user