|
Oracle Application Server HTTPClient API Reference 10g Release 2 (10.1.2) B14020-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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. |
java.lang.String |
getHeader(java.lang.String hdr) retrieves the field for a given header. |
java.util.Date |
getHeaderAsDate(java.lang.String hdr) retrieves the field for a given header. |
int |
getHeaderAsInt(java.lang.String hdr) retrieves the field for a given header. |
java.io.InputStream |
getInputStream() Gets an input stream from which the returned data can be read. |
java.lang.String |
getReasonLine() |
int |
getStatusCode() give the status code for this request. |
java.lang.String |
getTrailer(java.lang.String trailer) Retrieves the field for a given trailer. |
java.util.Date |
getTrailerAsDate(java.lang.String trailer) Retrieves the field for a given trailer. |
int |
getTrailerAsInt(java.lang.String trailer) Retrieves the field for a given tailer. |
java.lang.String |
getVersion() |
Method Detail |
public int getStatusCode() throws java.io.IOException
java.io.IOException
- If any exception occurs on the socket.public java.lang.String getReasonLine() throws java.io.IOException
java.io.IOException
- If any exception occurs on the socket.public java.lang.String getVersion() throws java.io.IOException
java.io.IOException
- If any exception occurs on the socket.public java.lang.String getHeader(java.lang.String hdr) throws java.io.IOException
hdr
- the header name.java.io.IOException
- If any exception occurs on the socket.public int getHeaderAsInt(java.lang.String hdr) throws java.io.IOException, java.lang.NumberFormatException
hdr
- the header name.java.lang.NumberFormatException
- if the header's value is not a number or if the header does not exist.java.io.IOException
- if any exception occurs on the socket.public java.util.Date getHeaderAsDate(java.lang.String hdr) throws java.io.IOException, java.lang.IllegalArgumentException
hdr
- the header name.java.io.IOException
- If any exception occurs on the socket.java.lang.IllegalArgumentException
- If the header cannot be parsed as a date or time.public java.lang.String getTrailer(java.lang.String trailer) throws java.io.IOException
getData()
.trailer
- the trailer name.java.io.IOException
- If any exception occurs on the socket.public int getTrailerAsInt(java.lang.String trailer) throws java.io.IOException, java.lang.NumberFormatException
trailer
- the tailer name.java.lang.NumberFormatException
- if the trailer's value is not a number or if the trailer does not exist.java.io.IOException
- if any exception occurs on the socket.public java.util.Date getTrailerAsDate(java.lang.String trailer) throws java.io.IOException, java.lang.IllegalArgumentException
trailer
- the trailer name.java.lang.IllegalArgumentException
- if the trailer's value is neither a legal date nor a number.java.io.IOException
- if any exception occurs on the socket.java.lang.IllegalArgumentException
- If the header cannot be parsed as a date or time.public byte[] getData() throws java.io.IOException
java.io.IOException
- If any io exception occured while reading the datagetInputStream()
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- If any exception occurs on the socket.getData()
|
Oracle Application Server HTTPClient API Reference 10g Release 2 (10.1.2) B14020-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |