Interface HttpConnecting

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract InputStream getInputStream() Returns an input stream from the connection to read the application server response, if available.
      abstract InputStream getErrorStream() Returns an input stream from the connection to read the application server error response, if available.
      abstract int getResponseCode() Returns the connection attempt response code for the connection request.
      abstract String getResponseMessage() Returns a connection attempt response message, if available.
      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.
      abstract void close() Close this connection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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:

        int indicating 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:

        String corresponding to the response property value for the key specified, or null, if the key does not exist.

      • close

         abstract void close()

        Close this connection.