Package oracle.jdbc

Class OracleConnectionStringBuilder.ConnectInfo

  • Enclosing interface:
    OracleConnectionStringBuilder

    public static class OracleConnectionStringBuilder.ConnectInfo
    extends java.lang.Object
    This class represents the ADDRESS node of the TNS Connect String. This builder class follows fluent API style configuring the various parameters of the ADDRESS node.
    • Constructor Detail

      • ConnectInfo

        public ConnectInfo()
    • Method Detail

      • protocol

        public OracleConnectionStringBuilder.ConnectInfo protocol​(java.lang.String protocol)
        Configures transport protocol type of the Oracle Database in the connection string.
        Parameters:
        protocol -
        Returns:
        connectInfo
      • proxyHost

        public OracleConnectionStringBuilder.ConnectInfo proxyHost​(java.lang.String proxyHost)
        Configures host name of proxy server to connect to the Oracle Database.
        Parameters:
        proxyHost -
        Returns:
        connectInfo
      • webSocketURI

        public OracleConnectionStringBuilder.ConnectInfo webSocketURI​(java.lang.String webSocketURI)
        Used to configure the web-socket URL for the "WSS" connections.
        Parameters:
        webSocketURI -
        Returns:
        connectInfo
      • getDbHostName

        public java.lang.String getDbHostName()
      • getDbPort

        public int getDbPort()
      • getProtocol

        public java.lang.String getProtocol()
      • getProxyHost

        public java.lang.String getProxyHost()
      • getProxyPort

        public int getProxyPort()
      • getWebSocketURI

        public java.lang.String getWebSocketURI()
      • validate

        public void validate()
                      throws java.lang.IllegalStateException
        Does some basic validation on the provided ConnectInfo parameters Throws IllegalStateException if the any of the provided value is invalid.
        Throws:
        java.lang.IllegalStateException