cvs diff (in directory P:\trunk\nb_all\httpserver\src\org\netbeans\modules\httpserver\) Index: HttpServerURLMapper.java =================================================================== RCS file: /cvs/httpserver/src/org/netbeans/modules/httpserver/HttpServerURLMapper.java,v retrieving revision 1.11 diff -u -r1.11 HttpServerURLMapper.java --- HttpServerURLMapper.java 26 Oct 2005 20:09:24 -0000 1.11 +++ HttpServerURLMapper.java 27 Oct 2005 15:46:29 -0000 @@ -34,8 +34,6 @@ */ public class HttpServerURLMapper extends URLMapper { - private static final HttpServerSettings settings = (HttpServerSettings) SharedClassObject.findObject(HttpServerSettings.class, true); - /** Creates a new instance of HttpServerURLMapper */ public HttpServerURLMapper() { } @@ -48,7 +46,7 @@ String path = url.getPath(); // remove the wrapper servlet URI - String wrapper = settings.getWrapperBaseURL (); + String wrapper = httpserverSettings().getWrapperBaseURL (); if (path == null || !path.startsWith(wrapper)) return null; path = path.substring(wrapper.length()); @@ -118,7 +116,7 @@ } } String path = encodeURL(u); - HttpServerSettings settings = (HttpServerSettings)SharedClassObject.findObject(HttpServerSettings.class, true); + HttpServerSettings settings = httpserverSettings(); settings.setRunning(true); try { URL newURL = new URL("http", // NOI18N @@ -161,5 +159,11 @@ } } + /** + * Obtains settings of this module + */ + static HttpServerSettings httpserverSettings () { + return (HttpServerSettings)SharedClassObject.findObject (HttpServerSettings.class, true); + } } *****CVS exited normally with code 1*****