Package railo.runtime.exp

Examples of railo.runtime.exp.PageRuntimeException


  @Override
  public Object[] toArray() {
    try {
      return Caster.toArray(sct).toArray();
    } catch (PageException pe) {
      throw new PageRuntimeException(pe);
    }
  }
View Full Code Here


  @Override
  public List toList() {
    try {
      return Caster.toArray(sct).toList();
    } catch (PageException pe) {
      throw new PageRuntimeException(pe);
    }
  }
View Full Code Here

  public void release(PageContext pc) {
  }
 
  @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
        throw new PageRuntimeException(new ExpressionException(NOT_SUPPORTED));
    //return new SimpleDumpData(NOT_SUPPORTED);
  }
View Full Code Here

        }
        a[i++]=o;
      }
    }
    catch(PageException pe){
      throw new PageRuntimeException(pe);
    }
    return a;
  }
View Full Code Here

  }
 
  private static void checkAccessibility(Object objMaybeNull,Class clazz, Key methodName) {
    // do not allow java.lang.System.exit()
    if(methodName.equals(EXIT) && clazz==System.class) { // TODO better implementation
      throw new PageRuntimeException(new SecurityException("Calling the method java.lang.System.exit is not allowed"));       
        }
    // change the accessibility of Railo methods is not allowed
    else if(methodName.equals(SET_ACCESSIBLE)) {
      if(objMaybeNull instanceof JavaObject)
        objMaybeNull=((JavaObject)objMaybeNull).getEmbededObject(null);
      if(objMaybeNull instanceof Member) {
        Member member=(Member) objMaybeNull;
            Class<?> cls = member.getDeclaringClass();
            if(cls!=null) {
              String name=cls.getName();
              if(name!=null && name.startsWith("railo.")) {
                throw new PageRuntimeException(new SecurityException("Changing the accessibility of an object's members in the railo.* package is not allowed"));
             
            }
            
      }      
        }
View Full Code Here

      try {
      return Caster.toBooleanValue(udf.call(ThreadLocalPageContext.get(), args, true));
     
    }
      catch (PageException e) {
      throw new PageRuntimeException(e);
    }
    }
View Full Code Here

   * @param funcs
   * @param deepCopy
   * @return cloned map
   */
  private HashMap duplicate(HashMap funcs, boolean deepCopy) {
    if(deepCopy) throw new PageRuntimeException(new ExpressionException("deep copy not supported"));
   
    Iterator it = funcs.entrySet().iterator();
    Map.Entry entry;
    HashMap cm = new HashMap();
    while(it.hasNext()){
View Full Code Here

  }
  public BIF getBIF() {
    if(bif!=null) return bif;
   
    Class clazz=getClazz();
        if(clazz==null)throw new PageRuntimeException(new ExpressionException("class "+clazz+" not found"));
       
    if(Reflector.isInstaneOf(clazz, BIF.class)) {
      try {
        bif=(BIF)clazz.newInstance();
      }
View Full Code Here

    if(cfc.contains(pageContext, ON_FINALLY)){
      try {
        cfc.call(pageContext, ON_FINALLY, ArrayUtil.OBJECT_EMPTY);
      }
      catch (PageException pe) {
        throw new PageRuntimeException(pe);
      }
      finally{
        writeEnclosingWriter();
      }
        }
View Full Code Here

                  }
                  else
                    out.write(bodyContent.getString());
              }
        } catch (IOException e) {
          throw new PageRuntimeException(Caster.toPageException(e));
        }
        }
    }
View Full Code Here

TOP

Related Classes of railo.runtime.exp.PageRuntimeException

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.