-
- 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.
-
getErrorStream
abstract InputStream getErrorStream()
Returns an input stream from the connection to read the application server error response, if available.
-
getResponseCode
abstract int getResponseCode()
Returns the connection attempt response code for the connection request.
-
getResponseMessage
abstract String getResponseMessage()
Returns a connection attempt response message, if available.
-
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
-
close
abstract void close()
Close this connection.
-
-
-
-