1 18 package freecs.interfaces; 19 20 import freecs.content.Connection; 21 import freecs.core.ConnectionBuffer; 22 23 import java.nio.channels.SelectionKey ; 24 25 29 public interface IRequest { 30 public static final byte METHOD_GET = 0; 31 public static final byte METHOD_POST = 1; 32 33 37 public abstract void parse () throws Exception ; 38 39 42 public abstract String getProperty (String key); 43 public abstract String getValue (String key); 44 public abstract byte getMethod (); 45 public abstract String getAction (); 46 public abstract String getProtokol (); 47 public abstract String getCookie (); 48 public abstract String getUserAgent (); 49 public abstract ConnectionBuffer getConnectionBuffer (); 50 public abstract SelectionKey getKey (); 51 public abstract Connection getConnectionObject(); 52 } | Popular Tags |