Package railo.runtime.type.dt

Examples of railo.runtime.type.dt.DateTimeImpl


  @Override
  public Struct getErrorBlock(PageContext pc,ErrorPage ep) {
    Struct struct=new StructImpl();

    struct.setEL("browser",pc.cgiScope().get("HTTP_USER_AGENT",""));
    struct.setEL("datetime",new DateTimeImpl(pc));
    struct.setEL("diagnostics",getMessage()+' '+getDetail()+"<br>The error occurred on line "+getLine(pc.getConfig())+" in file "+getFile(pc.getConfig())+".");
    struct.setEL("GeneratedContent",getGeneratedContent(pc));
    struct.setEL("HTTPReferer",pc.cgiScope().get("HTTP_REFERER",""));
    struct.setEL("mailto",ep.getMailto());
    struct.setEL(KeyConstants._message,getMessage());
View Full Code Here


              row++;
              query.addRow();
              query.setAt("name", row, path);
              query.setAt("size", row, Caster.toDouble(ze.getSize()));
              query.setAt("type", row, ze.isDirectory()?"Directory":"File");
              query.setAt("dateLastModified", row, new DateTimeImpl(pageContext,ze.getTime(),false));
              query.setAt("crc", row, Caster.toDouble(ze.getCrc()));
              query.setAt("compressedSize", row, Caster.toDouble(ze.getCompressedSize()));
              query.setAt("comment", row, ze.getComment());
              query.setAt("directory", row, dir);
              //zis.closeEntry();
View Full Code Here

   
    // fill data to query
    sct.setEL(KeyConstants._name,file.getName());
    sct.setEL(KeyConstants._size,Long.valueOf(file.length()));
    sct.setEL(KeyConstants._type,file.isDirectory()?"Dir":"File");
    sct.setEL("dateLastModified",new DateTimeImpl(pageContext,file.lastModified(),false));
    sct.setEL("attributes",getFileAttribute(file));
    if(SystemUtil.isUnix())sct.setEL(KeyConstants._mode,new ModeObjectWrap(file));
       
    try {    
      BufferedImage bi = ImageUtil.toBufferedImage(file, null);
View Full Code Here

   
    // set cffile struct
    Struct cffile=new StructImpl();
       
      long length = formItem.getResource().length();
    cffile.set("timecreated",new DateTimeImpl(pageContext.getConfig()));
    cffile.set("timelastmodified",new DateTimeImpl(pageContext.getConfig()));
    cffile.set("datelastaccessed",new DateImpl(pageContext));
    cffile.set("oldfilesize",Long.valueOf(length));
    cffile.set("filesize",Long.valueOf(length));
    cffile.set("contenttype",ListFirst.call(pageContext,contentType,"/"));
    cffile.set("contentsubtype",ListLast.call(pageContext,contentType,"/"));
View Full Code Here

TOP

Related Classes of railo.runtime.type.dt.DateTimeImpl

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.