Package sunlabs.brazil.handler

Examples of sunlabs.brazil.handler.MatchString


     * Make sure MD5 is available in this VM, or don't start.
     */

    public boolean
    init(Server server, String prefix) {
  isMine = new MatchString(prefix, server.props);
  try {
      MessageDigest.getInstance("MD5");
  } catch (NoSuchAlgorithmException e) {
      server.log(Server.LOG_WARNING, prefix,
        "Can't find MD5 implementation");
View Full Code Here


 
  String str;

  Properties props = server.props;
 
  isMine = new MatchString(prefix, server.props);
  boolean exitOnError= (props.getProperty("exitOnError") != null);

  /*
   * Start the handler to fetch the content.
   */
 
View Full Code Here

    public boolean
    init(Server server, String propsPrefix) {

  this.propsPrefix = propsPrefix;
  isMine = new MatchString(propsPrefix, server.props);

  Properties props = server.props;
        sessionProperty = props.getProperty(propsPrefix + SESSION, "SessionID");
        encoding = props.getProperty(propsPrefix + ENCODING);
        modified = (props.getProperty(propsPrefix + "modified") != null);
View Full Code Here

    MatchString isMine;            // check for matching url
    int delay=1000;       // delay in msec

    public boolean
    init(Server server, String prefix) {
  isMine = new MatchString(prefix, server.props);
  try {
      String str = server.props.getProperty(prefix + "delay");
      delay = Integer.decode(str).intValue();
  } catch (Exception e) {}
  return true;
View Full Code Here

    public boolean
    init(Server server, String prefix) {
  this.server = server;
  this.prefix = prefix;
  isMine = new MatchString(prefix, server.props);
  script = server.props.getProperty(prefix + SCRIPT, prefix + "bsh");
        if (server.props.getProperty(prefix + "debug") == null) {
            return init();
  } else {
      server.log(Server.LOG_DIAGNOSTIC, prefix,
View Full Code Here

    Hashtable map = new Hashtable()// map from token to mapping function
    static Class[] types = new Class[] {String.class, Properties.class};

    public boolean
    init(Server server, String prefix) {
  isMine = new MatchString(prefix, server.props);
  matchRe = new Regexp(server.props.getProperty(prefix + "match",
    "(^[a-z]+)\\(([^)]+)\\)$"));
  keySub = server.props.getProperty(prefix + "key", "\\2");
  tokenSub=server.props.getProperty(prefix + "token", "\\1");
  StringTokenizer st = new StringTokenizer(
View Full Code Here

    public boolean
    init(Server server, String prefix) {
      this.server = server;
      propsPrefix = prefix;
  scriptName = server.props.getProperty(prefix + SCRIPT,prefix + "tcl");
  isMine = new MatchString(prefix, server.props);
  callback = server.props.getProperty(prefix + CALLBACK,"respond");
  File scriptFile = new File(scriptName);
  if (!scriptFile.isAbsolute()) {
      scriptFile = new File(server.props.getProperty(FileHandler.ROOT,"."), scriptName);
  }
View Full Code Here

    private MatchString isMine;            // check for matching url

    public boolean
    init(Server server, String prefix) {
  isMine = new MatchString(prefix, server.props);
  return true;
    }
View Full Code Here

TOP

Related Classes of sunlabs.brazil.handler.MatchString

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.