Class TestOAuthConnectionProvider

  • All Implemented Interfaces:
    org.mule.runtime.api.connection.ConnectionProvider<TestOAuthConnection>

    public class TestOAuthConnectionProvider
    extends Object
    implements org.mule.runtime.api.connection.ConnectionProvider<TestOAuthConnection>
    A dummy connection provider that will simulate creating an OAuth Dancer extending from AbstractOAuthDancer.

    It will also start the dancer to detect interoperability issues between classes coming from different ClassLoaders.

    • Field Detail

      • httpService

        @Inject
        protected org.mule.runtime.http.api.HttpService httpService
    • Constructor Detail

      • TestOAuthConnectionProvider

        public TestOAuthConnectionProvider()
    • Method Detail

      • connect

        public TestOAuthConnection connect()
                                    throws org.mule.runtime.api.connection.ConnectionException
        Specified by:
        connect in interface org.mule.runtime.api.connection.ConnectionProvider<TestOAuthConnection>
        Throws:
        org.mule.runtime.api.connection.ConnectionException
      • validate

        public org.mule.runtime.api.connection.ConnectionValidationResult validate​(TestOAuthConnection connection)
        Specified by:
        validate in interface org.mule.runtime.api.connection.ConnectionProvider<TestOAuthConnection>