Package gate

Examples of gate.Controller


    if (nameaddition == null || nameaddition.isEmpty()) {
      nameaddition = "";
    } else {
      nameaddition = "_" + nameaddition;
    }
    Controller ctl = ctx.getController();
    if (ctl == null) {
      throw new GateRuntimeException(
          "Controller is null - cannot retrieve the ActionContext PrintStream");
    }
    PrintStream ps = (PrintStream) ctl.getFeatures().get("$$logstream"+nameaddition);
    if (ps == null) {
      throw new GateRuntimeException("No log outstream found!");
    }
    return ps;
  }
View Full Code Here


    if (nameaddition == null || nameaddition.isEmpty()) {
      nameaddition = "";
    } else {
      nameaddition = "_" + nameaddition;
    }
    Controller ctl = ctx.getController();
    if (ctl == null) {
      throw new GateRuntimeException(
          "Controller is null - cannot set the ActionContext PrintStream");
    }
    ctl.getFeatures().put("$$logstream"+nameaddition, ps);
  }
View Full Code Here

    if (nameaddition == null || nameaddition.isEmpty()) {
      nameaddition = "";
    } else {
      nameaddition = "_" + nameaddition;
    }
    Controller ctl = ctx.getController();
    if (ctl == null) {
      throw new GateRuntimeException(
          "Controller is null - cannot set the ActionContext PrintStream");
    }
    ctl.getFeatures().remove("$$logstream" + nameaddition);
  }
View Full Code Here

TOP

Related Classes of gate.Controller

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.