1 28 29 package HTTPClient; 30 31 import java.io.InputStream ; 32 import java.io.IOException ; 33 import java.io.InterruptedIOException ; 34 import java.io.EOFException ; 35 import java.net.ProtocolException ; 36 import java.util.Date ; 37 38 39 47 48 public interface RoResponse 49 { 50 63 public int getStatusCode() throws IOException ; 64 65 69 public String getReasonLine() throws IOException ; 70 71 75 public String getVersion() throws IOException ; 76 77 84 public String getHeader(String hdr) throws IOException ; 85 86 96 public int getHeaderAsInt(String hdr) 97 throws IOException , NumberFormatException ; 98 99 111 public Date getHeaderAsDate(String hdr) 112 throws IOException , IllegalArgumentException ; 113 114 123 public String getTrailer(String trailer) throws IOException ; 124 125 135 public int getTrailerAsInt(String trailer) 136 throws IOException , NumberFormatException ; 137 138 139 154 public Date getTrailerAsDate(String trailer) 155 throws IOException , IllegalArgumentException ; 156 157 171 public byte[] getData() throws IOException ; 172 173 182 public InputStream getInputStream() throws IOException ; 183 } 184 185 | Popular Tags |