001    package railo.runtime.type.scope;
002    
003    import java.io.UnsupportedEncodingException;
004    
005    import javax.servlet.ServletInputStream;
006    
007    import railo.runtime.exp.PageException;
008    import railo.runtime.listener.ApplicationContext;
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         * @deprecated use instead <code>setEncoding(ApplicationContext ac,String encoding)</code>
024         */
025        //public abstract void setEncoding(String encoding) throws UnsupportedEncodingException;
026    
027        
028        /**
029         * @param ac current ApplicationContext 
030         * @param encoding The encoding to set.
031         * @throws UnsupportedEncodingException 
032         */
033        public abstract void setEncoding(ApplicationContext ac,String encoding) throws UnsupportedEncodingException;
034    
035    
036        /**
037         * @return return the exception when initialised
038         */
039        public abstract PageException getInitException();
040    
041            public abstract void setScriptProtecting(ApplicationContext ac,boolean b);
042    
043            public FormItem getUploadResource(String key);
044            
045            public FormItem[] getFileItems();
046            
047            public ServletInputStream getInputStream();
048    }