Interface HttpConnecting
-
- All Implemented Interfaces:
public interface HttpConnecting
-
-
Method Summary
Modifier and Type Method Description abstract InputStreamgetInputStream()Returns an input stream from the connection to read the application server response, if available. abstract InputStreamgetErrorStream()Returns an input stream from the connection to read the application server error response, if available. abstract intgetResponseCode()Returns the connection attempt response code for the connection request. abstract StringgetResponseMessage()Returns a connection attempt response message, if available. abstract StringgetResponsePropertyValue(String responsePropertyKey)Returns a value for the response property key that might have been set when a connection was made to the resource pointed to by the Url. abstract voidclose()Close this connection. -
-
Method Detail
-
getInputStream
abstract InputStream getInputStream()
Returns an input stream from the connection to read the application server response, if available.
- Returns:
InputStream connection response input stream
-
getErrorStream
abstract InputStream getErrorStream()
Returns an input stream from the connection to read the application server error response, if available.
- Returns:
InputStream connection response error stream
-
getResponseCode
abstract int getResponseCode()
Returns the connection attempt response code for the connection request.
- Returns:
intindicating connection response code
-
getResponseMessage
abstract String getResponseMessage()
Returns a connection attempt response message, if available.
- Returns:
String containing connection response message
-
getResponsePropertyValue
abstract String getResponsePropertyValue(String responsePropertyKey)
Returns a value for the response property key that might have been set when a connection was made to the resource pointed to by the Url.
This is protocol specific. For example, HTTP urls could have properties like "last-modified", or "ETag" set.
- Parameters:
responsePropertyKey- String containing response property key- Returns:
Stringcorresponding to the response property value for the key specified, or null, if the key does not exist.
-
close
abstract void close()
Close this connection.
-
-
-
-