Package com.esri.gpt.framework.context

Examples of com.esri.gpt.framework.context.ConfigurationException


        Object obj = cls.newInstance();
        if (obj instanceof AsnFactory) {
          return (AsnFactory)obj;
        } else {
          String sMsg = "The configured "+key+" parameter is invalid: "+ className;
          throw new ConfigurationException(sMsg);
        }
      } catch (ConfigurationException t) {
        throw t;
      } catch (Throwable t) {
        String sMsg = "Error instantiating assertion factory: " + className;
        throw new ConfigurationException(sMsg, t);
      }
    }
  }
View Full Code Here


    if (sTmp.length() > 0) this.priority = sTmp;
   
    // error check
    String errPfx = "gpt.xml: gptConfig/catalog/parameter/";
    if (this.documentUrlPattern.indexOf("{0}") == -1) {
      throw new ConfigurationException(errPfx+"@key=sitemap.documentUrlPattern must contain {0}");
    }
  }
View Full Code Here

  public AsnOperationHandler makeHandler(AsnContext context)
    throws ClassNotFoundException, InstantiationException, IllegalAccessException {
    String className = Val.chkStr(this.getHandlerClass());
    if (className.length() == 0) {
      String msg = "The configured operation handlerClass was empty";
      throw new ConfigurationException(msg);
    } else {
      Class<?> cls = Class.forName(className);
      Object obj = cls.newInstance();
      if (obj instanceof AsnOperationHandler) {
        return (AsnOperationHandler)obj;
      } else {
        String msg = "The configured operation handlerClass is invalid: "+ className;
        throw new ConfigurationException(msg);
      }
    }
  }
View Full Code Here

      if (obj instanceof RestUrlBuilder) {
        RestUrlBuilder builder = (RestUrlBuilder)obj;
        return builder;
      } else {
        String sMsg = "The configured restUrlBuilder parameter is invalid: "+className;
        throw new ConfigurationException(sMsg);
      }
    } catch (ConfigurationException t) {
      throw t;
    } catch (Throwable t) {
      String sMsg = "Error instantiating rest url builder: "+className;
      throw new ConfigurationException(sMsg, t);
    }
  }  
View Full Code Here

    return tmp;
  }catch(NumberFormatException e) {
    LOG.log(Level.WARNING, "Timeout read from search " +
        "configuration = "+ this.timeOut
        + " not a valid integer.  Will use default. " +
        DEFAULT_TIMEOUT, new ConfigurationException("", e));
  
  }
  return DEFAULT_TIMEOUT;
}
View Full Code Here

   return tmp;
}catch(NumberFormatException e) {
   LOG.log(Level.WARNING, "Results per page read from search " +
       "configuration = "+ this.resultsPerPage
       + " not a valid integer.  Will use default. " +
       DEFAULT_RESULTS_PER_PAGE, new ConfigurationException("", e));
 
}
  return DEFAULT_RESULTS_PER_PAGE;
}
View Full Code Here

      .getApplicationConfiguration()
      .getCatalogConfiguration()
      .getSearchConfig();

    if(config == null ) {
      throw new ConfigurationException("Got null Search Configuration from " +
      "ApplicationContext.CatalogConfiguration.searchConfig");
    }
    return config;
  } finally {
    if(requestContext != null) {
View Full Code Here

      Object obj = cls.newInstance();
      if (obj instanceof PropertyClause) {
        return (PropertyClause)obj;
      } else {
        String sMsg = "The configured PropertyClause class name is invalid: "+className;
        throw new ConfigurationException(sMsg);
      }
    } catch (ConfigurationException t) {
      throw t;
    } catch (Throwable t) {
      String sMsg = "Error instantiating PropertyClause: "+className;
      throw new ConfigurationException(sMsg,t);
    }
  }
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.context.ConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.