Package com.caucho.config

Examples of com.caucho.config.ConfigException


   * Adds a method
   */
  public void addHttpMethod(String method)
  {
    if (! Pattern.matches("[a-zA-Z]+", method)) {
      throw new ConfigException(L.l("'{0}' is not a valid http-method.",
                                    method));
    }
   
    /*
    try {
View Full Code Here


  }

  public void addHttpMethodOmission(String method)
  {
    if (!Pattern.matches("[a-zA-Z]+", method)) {
      throw new ConfigException(L.l("'{0}' is not a valid http-method.",
                                    method));
    }

    if (_methodOmitList == null)
      _methodOmitList = new HashSet<String>();
View Full Code Here

    throws ConfigException
  {
    // super.init();

    if (_target == null) {
      throw new ConfigException(L.l("'target' is a required attribute of '{0}' because Resin needs to know the destination URL.",
                                    getClass().getSimpleName()));
    }

    /*
    if (getRegexp() == null && getFullUrlRegexp() == null)
View Full Code Here

    if (pattern != null) {
      try {
        ObjectName.getInstance(pattern);
      } catch (MalformedObjectNameException e) {
        throw new ConfigException(L.l("invalid pattern `{0}': `{1}'",
                                      pattern,
                                      e.getMessage()));
      }
    }
View Full Code Here

    else if (HttpServletRequest.DIGEST_AUTH.equalsIgnoreCase(authType))
      _authType = HttpServletRequest.DIGEST_AUTH;
    else if (HttpServletRequest.FORM_AUTH.equalsIgnoreCase(authType))
      _authType = HttpServletRequest.FORM_AUTH;
    else
      throw new ConfigException(L.l("auth-type expects a 'value' of BASIC, CLIENT-CERT, DIGEST, FORM, or NONE"));
  }
View Full Code Here

   
    if (name == null)
      name = args.getArg("-name");

    if (name == null) {
      throw new ConfigException(L.l("Cannot find context argument in command line"));
    }
   
    String host = args.getArg("-host");
   
    if (host == null)
View Full Code Here

  //  @Override
  public void init()
    throws ConfigException
  {
    if (_name == null) {
      throw new ConfigException(L.l("'name' is a required attribute of '{0}'.",
                                    getClass().getSimpleName()));
    }
   
    if (_value == null) {
      throw new ConfigException(L.l("'value' is a required attribute of '{0}'.",
                                    getClass().getSimpleName()));
    }
  }
View Full Code Here

  private ContainerProgram _builderProgram;

  private void setCondition(Condition condition)
  {
    if (_condition != null)
      throw new ConfigException(L.l("Condition '{0}' has already been set, cannot use '{1}' here",
                                    _condition.getTagName(), condition.getTagName()));

    _condition = condition;
  }
View Full Code Here

  }

  Condition getCondition()
  {
    if (_condition == null)
      throw new ConfigException(L.l("A condition is required"));

    if (_builderProgram != null)
      _builderProgram.configure(_condition);
   
    Config.init(_condition);
View Full Code Here

    }
    else if ("on-shutdown".equals(mode)) {
      _sessionSaveMode = (SAVE_ON_SHUTDOWN);
    }
    else
      throw new ConfigException(L.l("'{0}' is an unknown session save-mode.  Values are: before-headers, after-request, and on-shutdown.",
                                    mode));

  }
View Full Code Here

TOP

Related Classes of com.caucho.config.ConfigException

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.