001 package railo.runtime.type.scope; 002 003 import java.io.UnsupportedEncodingException; 004 005 import org.apache.commons.fileupload.disk.DiskFileItem; 006 007 import railo.runtime.exp.PageException; 008 import railo.runtime.type.Scope; 009 010 /** 011 * interface fro scope form 012 */ 013 public interface Form extends Scope { 014 015 /** 016 * @return Returns the encoding. 017 */ 018 public abstract String getEncoding(); 019 020 /** 021 * @param encoding The encoding to set. 022 * @throws UnsupportedEncodingException 023 */ 024 public abstract void setEncoding(String encoding) 025 throws UnsupportedEncodingException; 026 027 028 /** 029 * FUTURE replace with other return type 030 * return a file upload object 031 * @param key name of the form field 032 * @return apache default file item object (File Object) 033 */ 034 public abstract DiskFileItem getFileUpload(String key); 035 036 /** 037 * @return return the exception when initialised 038 */ 039 public abstract PageException getInitException(); 040 041 public abstract void setScriptProtecting(boolean b); 042 043 }