|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface represents read-only interface of an intermediate http response. It is the compile-time type passed to various handlers which might the response info but musn't modify the response.
| Method Summary | |
byte[] |
getData()
Reads all the response data into a byte array. |
String |
getHeader(String hdr)
retrieves the field for a given header. |
Date |
getHeaderAsDate(String hdr)
retrieves the field for a given header. |
int |
getHeaderAsInt(String hdr)
retrieves the field for a given header. |
InputStream |
getInputStream()
Gets an input stream from which the returned data can be read. |
String |
getReasonLine()
|
int |
getStatusCode()
give the status code for this request. |
String |
getTrailer(String trailer)
Retrieves the field for a given trailer. |
Date |
getTrailerAsDate(String trailer)
Retrieves the field for a given trailer. |
int |
getTrailerAsInt(String trailer)
Retrieves the field for a given tailer. |
String |
getVersion()
|
| Method Detail |
public int getStatusCode()
throws IOException
public String getReasonLine()
throws IOException
public String getVersion()
throws IOException
public String getHeader(String hdr)
throws IOException
hdr - the header name.
public int getHeaderAsInt(String hdr)
throws IOException,
NumberFormatException
hdr - the header name.
public Date getHeaderAsDate(String hdr)
throws IOException,
IllegalArgumentException
hdr - the header name.
public String getTrailer(String trailer)
throws IOException
getData().trailer - the trailer name.
public int getTrailerAsInt(String trailer)
throws IOException,
NumberFormatException
trailer - the tailer name.
public Date getTrailerAsDate(String trailer)
throws IOException,
IllegalArgumentException
trailer - the trailer name.
public byte[] getData()
throws IOException
getInputStream()
public InputStream getInputStream()
throws IOException
getData()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||