Package railo.runtime.type

Examples of railo.runtime.type.Struct


  }
 
 
 
  public void removeRemoteClientUsage(String code) {
    Struct usage = config.getRemoteClientUsage();
    usage.removeEL(KeyImpl.getInstance(code));
   
    Element extensions=_getRootElement("remote-clients");
    extensions.setAttribute("usage", toStringURLStyle(usage));   
   
  }
View Full Code Here


     * @param passthrough The passthrough to set.
     * @throws PageException
     */
    public void setPassthrough(Object passthrough) throws PageException {
        if(passthrough instanceof Struct) {
            Struct sct = (Struct) passthrough;
            Iterator<Entry<Key, Object>> it = sct.entryIterator();
            Entry<Key, Object> e;
            while(it.hasNext()) {
                e = it.next();
                attributes.setEL(e.getKey(),e.getValue());
            }
View Full Code Here

              if(labels!=null)str=SystemUtil.parsePlaceHolder(str,((ServletConfig)config).getServletContext(),labels);
            }
            else str=SystemUtil.parsePlaceHolder(str);
           
            if(StringUtil.startsWith(str,'{')){
              Struct constants = ((ConfigImpl)config).getConstants();
              //Collection.Key[] arr = constants.keys();
              Iterator<Entry<Key, Object>> it = constants.entryIterator();
              Entry<Key, Object> e;
              while(it.hasNext()) {
                e = it.next();
                if(StringUtil.startsWithIgnoreCase(str,"{"+e.getKey().getString()+"}")) {
                  String value=(String) e.getValue();
View Full Code Here

     * @param passthrough The passThrough to set.
     * @throws PageException
     */
    public void setPassthrough(Object passthrough) throws PageException {
        if(passthrough instanceof Struct) {
            Struct sct = (Struct) passthrough;
            Iterator<Entry<Key, Object>> it = sct.entryIterator();
            Entry<Key, Object> e;
            while(it.hasNext()) {
              e=it.next();
                attributes.setEL(e.getKey(),e.getValue());
            }
View Full Code Here

  public int doEndTag()  {
    return EVAL_PAGE;
  }

  private Struct toStruct(IndexResult result) {
    Struct sct=new StructImpl();
    sct.setEL("deleted",new Double(result.getCountDeleted()));
    sct.setEL("inserted",new Double(result.getCountInserted()));
    sct.setEL("updated",new Double(result.getCountUpdated()));
    return sct;
  }
View Full Code Here

    private FTPClient actionExists() throws PageException, IOException {
        required("item",item);

        FTPClient client = getClient();
        FTPFile file=existsFile(client,item,false);
        Struct cfftp = writeCfftp(client);

        cfftp.setEL(RETURN_VALUE,Caster.toBoolean(file!=null));
        cfftp.setEL(SUCCEEDED,Boolean.TRUE);
       
        return client;
    }
View Full Code Here

    private FTPClient actionExistsDir() throws PageException, IOException {
      required("directory",directory);

      FTPClient client = getClient();
      boolean res = existsDir(client,directory);
        Struct cfftp = writeCfftp(client);

        cfftp.setEL(RETURN_VALUE,Caster.toBoolean(res));
        cfftp.setEL(SUCCEEDED,Boolean.TRUE);
       
        stoponerror=false;
        return client;
     
      /*FTPClient client = pool.get(createConnection());
View Full Code Here

        required("remotefile",remotefile);

        FTPClient client = getClient();
        FTPFile file=existsFile(client,remotefile,true);
       
        Struct cfftp = writeCfftp(client);

        cfftp.setEL(RETURN_VALUE,Caster.toBoolean(file!=null && file.isFile()));
        cfftp.setEL(SUCCEEDED,Boolean.TRUE);
       
        stoponerror=false;
        return client;
   
   
View Full Code Here

     * @throws PageException
     */
    private FTPClient actionGetCurrentURL() throws PageException, IOException {
        FTPClient client = getClient();
        String pwd=client.printWorkingDirectory();
        Struct cfftp = writeCfftp(client);
        cfftp.setEL("returnValue","ftp://"+client.getRemoteAddress().getHostName()+pwd);
        return client;
    }
View Full Code Here

     * @throws PageException
     */
    private FTPClient actionGetCurrentDir() throws PageException, IOException {
        FTPClient client = getClient();
        String pwd=client.printWorkingDirectory();
        Struct cfftp = writeCfftp(client);
        cfftp.setEL("returnValue",pwd);
        return client;
    }
View Full Code Here

TOP

Related Classes of railo.runtime.type.Struct

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.