Package railo.runtime.type

Examples of railo.runtime.type.StructImpl


    }
  }

  @Override
  public Object getHelper() {
    Struct args=new StructImpl(StructImpl.TYPE_LINKED);
    return callEL("getHelper",args,null);
  }
View Full Code Here


    return id;
  }

  @Override
  public int getState() {
    Struct args=new StructImpl();
    Integer state=Integer.valueOf(this.state);
    try {
      return GatewayEngineImpl.toIntState(Caster.toString(call("getState",args,state)),this.state);
    }
    catch (PageException pe) {
View Full Code Here



  @Override
  public String sendMessage(Map data) throws GatewayException {
    Struct args=new StructImpl(StructImpl.TYPE_LINKED);
    args.setEL("data", Caster.toStruct(data, null, false));
    try {
      return Caster.toString(call("sendMessage",args,""));
    } catch (PageException pe) {
      throw new PageGatewayException(pe);
    }
View Full Code Here

  /**
   * @see railo.runtime.spooler.SpoolerTask#detail()
   */
  public Struct detail() {
    Struct sct=new StructImpl();
    sct.setEL(KeyConstants._label, client.getLabel());
    sct.setEL(KeyConstants._url, client.getUrl());
   
    return sct;
  }
View Full Code Here

  }
 
 

  public Object getMetaData() {
    Struct sct=new StructImpl();
   
    // meta
    if(metadata!=null)
      StructUtil.copy(metadata, sct, true);
   
    sct.setEL(KeyConstants._name,name);
    if(!StringUtil.isEmpty(hint,true))sct.setEL(KeyConstants._hint,hint);
    if(!StringUtil.isEmpty(displayname,true))sct.setEL(KeyConstants._displayname,displayname);
    if(!StringUtil.isEmpty(type,true))sct.setEL(KeyConstants._type,type);
   
    // dyn attributes

    StructUtil.copy(dynAttrs, sct, true);
   
View Full Code Here

  public Struct getDynamicAttributes() {
    return dynAttrs;
  }
  public Struct getMeta() {
    if(metadata==null) metadata=new StructImpl();
    return metadata;
  }
View Full Code Here

   
  public RemoteClientTask(ExecutionPlan[] plans,RemoteClient client, Struct attrColl,String callerId, String type) {
    super(plans,client);
    this.type=type;
    action=(String) attrColl.get(KeyConstants._action,null);
    args = new StructImpl();
    args.setEL(KeyConstants._type, client.getType());
    args.setEL(PASSWORD, client.getAdminPasswordEncrypted());
    args.setEL(ATTRIBUTE_COLLECTION, attrColl);
    args.setEL(CALLER_ID, callerId);
  }
View Full Code Here

  }
   
    @Override
    public Collection duplicate(boolean deepCopy) {

    StructImpl sct = new StructImpl();
    StructImpl.copy(this, sct, deepCopy);
    return sct;
    }
View Full Code Here

            PageContextImpl pc;
            Struct data,sctThread,scopes;
        Collection.Key key;
            Thread thread;
        while(it.hasNext()) {
              data=new StructImpl();
              sctThread=new StructImpl();
              scopes=new StructImpl();
              data.setEL("thread", sctThread);
                data.setEL("scopes", scopes);
               
             
              key=KeyImpl.toKey(it.next(),null);
View Full Code Here

    catch(Throwable t) {
      PageException pe = Caster.toPageException(t);
      String st = ExceptionUtil.getStacktrace(t,true);
      //config.getErrWriter().write(st+"\n");
     
      Struct sct=new StructImpl();
      sct.setEL("message", pe.getMessage());
      sct.setEL("detail", pe.getDetail());
      sct.setEL("stacktrace", st);
      sct.setEL("time", Caster.toLong(System.currentTimeMillis()));
      exceptions.appendEL(sct);
     
      throw pe;
    }
    finally {
View Full Code Here

TOP

Related Classes of railo.runtime.type.StructImpl

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.