public interface RoResponse
| Modifier and Type | Method and Description |
|---|---|
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() |
int getStatusCode()
throws IOException
IOException - If any exception occurs on the socket.String getReasonLine() throws IOException
IOException - If any exception occurs on the socket.String getVersion() throws IOException
IOException - If any exception occurs on the socket.String getHeader(String hdr) throws IOException
hdr - the header name.IOException - If any exception occurs on the socket.int getHeaderAsInt(String hdr) throws IOException, NumberFormatException
hdr - the header name.NumberFormatException - if the header's value is not a number
or if the header does not exist.IOException - if any exception occurs on the socket.Date getHeaderAsDate(String hdr) throws IOException, IllegalArgumentException
hdr - the header name.IOException - If any exception occurs on the socket.IllegalArgumentException - If the header cannot be parsed
as a date or time.String getTrailer(String trailer) throws IOException
getData().trailer - the trailer name.IOException - If any exception occurs on the socket.int getTrailerAsInt(String trailer) throws IOException, NumberFormatException
trailer - the tailer name.NumberFormatException - if the trailer's value is not a number
or if the trailer does not exist.IOException - if any exception occurs on the socket.Date getTrailerAsDate(String trailer) throws IOException, IllegalArgumentException
trailer - the trailer name.IllegalArgumentException - if the trailer's value is neither a
legal date nor a number.IOException - if any exception occurs on the socket.IllegalArgumentException - If the header cannot be parsed
as a date or time.byte[] getData()
throws IOException
IOException - If any io exception occured while reading
the datagetInputStream()InputStream getInputStream() throws IOException
IOException - If any exception occurs on the socket.getData()Copyright © 2000-2014. All Rights Reserved.