Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Server/src/org/litesoft/GWT/server/AbstractServerApp.java

Diff revisions: vs.
  @@ -1,7 +1,7 @@
1 1 // This Source Code is in the Public Domain per: http://unlicense.org
2 2 package org.litesoft.GWT.server;
3 3
4 - import org.litesoft.commonfoundation.typeutils.*;
4 + import org.litesoft.commonfoundation.base.*;
5 5 import org.litesoft.commonfoundation.typeutils.gregorian.*;
6 6 import org.litesoft.configuration.*;
7 7 import org.litesoft.core.*;
  @@ -147,7 +147,7 @@
147 147 ConfigDataAccessorFactory zFactory = new WebInfConfigAccessorLocator( mAppName );
148 148 zFactory = new ServerConfigDataAccessorFactoryProxy( zFactory );
149 149 new ServerConfiguration( zFactory );// force creation & self registration of Configuration
150 - if ( (null != Strings.noEmpty( Configuration.getString( "databaseURL" ) )) && (System.getProperty( "HSQL" ) != null) ) {
150 + if ( (null != ConstrainTo.significantOrNull( Configuration.getString( "databaseURL" ) )) && (System.getProperty( "HSQL" ) != null) ) {
151 151 // JDBC HSQL stuff:
152 152 Configuration.setKeyValue( ConfigDataAccessor.Level.RUN, "databaseDriverClassName", "org.hsqldb.jdbcDriver" );
153 153 Configuration.setKeyValue( ConfigDataAccessor.Level.RUN, "databaseURL", "jdbc:hsqldb:mem:production_pos" );
  @@ -208,7 +208,7 @@
208 208 @Override
209 209 protected void service( HttpServletRequest pRequest, HttpServletResponse pResponse )
210 210 throws ServletException, IOException {
211 - String query = Strings.noEmpty( pRequest.getQueryString() );
211 + String query = ConstrainTo.significantOrNull( pRequest.getQueryString() );
212 212 if ( query == null ) {
213 213 super.service( pRequest, pResponse );
214 214 return;