Package railo.runtime.tag

Source Code of railo.runtime.tag.CFTagCore

package railo.runtime.tag;

import railo.runtime.Mapping;
import railo.runtime.PageContext;
import railo.runtime.config.ConfigWebImpl;
import railo.runtime.customtag.InitFile;
import railo.runtime.exp.PageException;

public class CFTagCore extends CFTag {

  private String name;
  private String filename;
  private boolean isweb;


  /**
   * @return the name
   */
  public String getName() {
    return name;
  }
  /**
   * @return the filename
   */
  public String getFilename() {
    return filename;
  }

 
  public void set__name(String name){
    this.name=name;
  }
  public void set__filename(String filename){
    this.filename=filename;
  }
  public void set__isweb(boolean isweb){
    this.isweb=isweb;
  }
  public InitFile initFile(PageContext pageContext) throws PageException {
      return createInitFile(pageContext,isweb,filename);
    
    }
 
  public static InitFile createInitFile(PageContext pageContext,boolean isweb,String filename) {
      ConfigWebImpl config = (ConfigWebImpl) pageContext.getConfig();
      Mapping mapping=isweb?config.getTagMapping():config.getServerTagMapping();
     
      return new InitFile(
          mapping.getPageSource(filename),
          filename,
          filename.endsWith('.'+config.getCFCExtension()));
    
    }
}
TOP

Related Classes of railo.runtime.tag.CFTagCore

TOP
Copyright © 2018 www.massapi.com. 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.