Interface HttpEntityConnection

All Superinterfaces:
AutoCloseable, EntityConnection

public interface HttpEntityConnection extends EntityConnection
A factory for http based EntityConnection instances.

Limitations: iterator(Condition) and iterator(Select) are not supported on http connections; they throw UnsupportedOperationException.

See Also:
  • Field Details

    • HOSTNAME

      static final PropertyValue<String> HOSTNAME
      The host on which to locate the http server
      • Value type: String
      • Default value: localhost
    • PORT

      static final PropertyValue<Integer> PORT
      The port which the http client should use.
      • Value type: Integer
      • Default value: 8080
    • SECURE_PORT

      static final PropertyValue<Integer> SECURE_PORT
      The port which the https client should use
      • Value type: Integer
      • Default value: 4443
    • SECURE

      static final PropertyValue<Boolean> SECURE
      Specifies whether https should be used
      • Value type: Boolean
      • Default value: true
    • JSON

      static final PropertyValue<Boolean> JSON
      Specifies whether json serialization should be used instead of standard Java serialization.
      • Value type: Boolean
      • Default value: true
    • SOCKET_TIMEOUT

      static final PropertyValue<Integer> SOCKET_TIMEOUT

      The socket timeout in milliseconds, that is, how long an operation may wait for the server's response.

      Zero (the default) means no timeout, matching the RMI transport, which does not impose one either. A finite value caps every operation, so it must exceed the slowest one the application performs - a report, a bulk update or a domain function may run far longer than a select.

      • Value type: Integer
      • Default value: 0 ms (no timeout)
    • CONNECT_TIMEOUT

      static final PropertyValue<Integer> CONNECT_TIMEOUT

      The connect timeout in milliseconds, that is, how long establishing the connection may take. Bounded work, unlike SOCKET_TIMEOUT, so this one has a finite default - a misconfigured hostname or port should fail promptly rather than hang.

      Zero means no timeout.

      • Value type: Integer
      • Default value: 10000 ms
  • Method Details