package javax.microedition.io;

import java.io.IOException;

public interface HttpConnection extends ContentConnection
{
 public String HEAD = "HEAD";
 public String GET = "GET";
 public String POST = "POST";
 public int HTTP_OK = 200;
 public int HTTP_CREATED = 201;
 public int HTTP_ACCEPTED = 202;
 public int HTTP_NOT_AUTHORITATIVE = 203;
 public int HTTP_NO_CONTENT = 204;
 public int HTTP_RESET = 205;
 public int HTTP_PARTIAL = 206;
 public int HTTP_MULT_CHOICE = 300;
 public int HTTP_MOVED_PERM = 301;
 public int HTTP_MOVED_TEMP = 302;
 public int HTTP_SEE_OTHER = 303;
 public int HTTP_NOT_MODIFIED = 304;
 public int HTTP_USE_PROXY = 305;
 public int HTTP_TEMP_REDIRECT = 307;
 public int HTTP_BAD_REQUEST = 400;
 public int HTTP_UNAUTHORIZED = 401;
 public int HTTP_PAYMENT_REQUIRED = 402;
 public int HTTP_FORBIDDEN = 403;
 public int HTTP_NOT_FOUND = 404;
 public int HTTP_BAD_METHOD = 405;
 public int HTTP_NOT_ACCEPTABLE = 406;
 public int HTTP_PROXY_AUTH = 407;
 public int HTTP_CLIENT_TIMEOUT = 408;
 public int HTTP_CONFLICT = 409;
 public int HTTP_GONE = 410;
 public int HTTP_LENGTH_REQUIRED = 411;
 public int HTTP_PRECON_FAILED = 412;
 public int HTTP_ENTITY_TOO_LARGE = 413;
 public int HTTP_REQ_TOO_LONG = 414;
 public int HTTP_UNSUPPORTED_TYPE = 415;
 public int HTTP_UNSUPPORTED_RANGE = 416;
 public int HTTP_EXPECT_FAILED = 417;
 public int HTTP_INTERNAL_ERROR = 500;
 public int HTTP_NOT_IMPLEMENTED = 501;
 public int HTTP_BAD_GATEWAY = 502;
 public int HTTP_UNAVAILABLE = 503;
 public int HTTP_GATEWAY_TIMEOUT = 504;
 public int HTTP_VERSION = 505;

 public String getURL();
 
 public String getProtocol();
 
 public String getHost();
 
 public String getFile();
 
 public String getRef();
 
 public String getQuery();
 
 public int getPort();
 
 public String getRequestMethod();
 
 public void setRequestMethod(String) throws IOException;
 
 public String getRequestProperty(String);
 
 public void setRequestProperty(String, String) throws IOException;
 
 public int getResponseCode() throws IOException;
 
 public String getResponseMessage() throws IOException;
 
 public long getExpiration() throws IOException;
 
 public long getDate() throws IOException;
 
 public long getLastModified() throws IOException;
 
 public String getHeaderField(String) throws IOException;
 
 public int getHeaderFieldInt(String, int) throws IOException;
 
 public long getHeaderFieldDate(String, long) throws IOException;
 
 public String getHeaderField(int) throws IOException;
 
 public String getHeaderFieldKey(int) throws IOException;
 
}