1 21 24 package org.lobobrowser.html; 25 26 import java.awt.Image ; 27 import java.net.URL ; 28 29 import org.w3c.dom.Document ; 30 31 35 public interface HttpRequest { 36 39 public static final int STATE_UNINITIALIZED = 0; 40 41 44 public static final int STATE_LOADING = 1; 45 46 49 public static final int STATE_LOADED = 2; 50 51 54 public static final int STATE_INTERACTIVE = 3; 55 56 59 public static final int STATE_COMPLETE = 4; 60 61 66 public int getReadyState(); 67 68 71 public String getResponseText(); 72 73 76 public Document getResponseXML(); 77 78 81 public Image getResponseImage(); 82 83 86 public byte[] getResponseBytes(); 87 88 93 public int getStatus(); 94 95 98 public String getStatusText(); 99 100 103 public void abort(); 104 105 108 public String getAllResponseHeaders(); 109 110 114 public String getResponseHeader(String headerName); 115 116 121 public void open(String method, String url); 122 123 128 public void open(String method, URL url); 129 130 136 public void open(String method, URL url, boolean asyncFlag); 137 138 144 public void open(String method, String url, boolean asyncFlag); 145 146 153 public void open(String method, String url, boolean asyncFlag, String userName); 154 155 163 public void open(String method, String url, boolean asyncFlag, String userName, String password); 164 165 170 public void addReadyStateChangeListener(ReadyStateChangeListener listener); 171 } 172 | Popular Tags |