Search in sources :

Example 1 with ManagedCreateTransport

use of org.jboss.as.test.integration.security.common.ManagedCreateTransport in project wildfly by wildfly.

the class KerberosServerSetupTask method fixTransportAddress.

/**
     * Fixes bind address in the CreateTransport annotation.
     *
     * @param createLdapServer
     */
private void fixTransportAddress(ManagedCreateLdapServer createLdapServer, String address) {
    final CreateTransport[] createTransports = createLdapServer.transports();
    for (int i = 0; i < createTransports.length; i++) {
        final ManagedCreateTransport mgCreateTransport = new ManagedCreateTransport(createTransports[i]);
        mgCreateTransport.setAddress(address);
        createTransports[i] = mgCreateTransport;
    }
}
Also used : ManagedCreateTransport(org.jboss.as.test.integration.security.common.ManagedCreateTransport) CreateTransport(org.apache.directory.server.annotations.CreateTransport) ManagedCreateTransport(org.jboss.as.test.integration.security.common.ManagedCreateTransport)

Example 2 with ManagedCreateTransport

use of org.jboss.as.test.integration.security.common.ManagedCreateTransport in project wildfly by wildfly.

the class LdapExtLDAPServerSetupTask method fixTransportAddress.

/**
     * Fixes bind address in the CreateTransport annotation.
     *
     * @param createLdapServer
     */
private void fixTransportAddress(ManagedCreateLdapServer createLdapServer, String address) {
    final CreateTransport[] createTransports = createLdapServer.transports();
    for (int i = 0; i < createTransports.length; i++) {
        final ManagedCreateTransport mgCreateTransport = new ManagedCreateTransport(createTransports[i]);
        mgCreateTransport.setAddress(address);
        createTransports[i] = mgCreateTransport;
    }
}
Also used : ManagedCreateTransport(org.jboss.as.test.integration.security.common.ManagedCreateTransport) CreateTransport(org.apache.directory.server.annotations.CreateTransport) ManagedCreateTransport(org.jboss.as.test.integration.security.common.ManagedCreateTransport)

Example 3 with ManagedCreateTransport

use of org.jboss.as.test.integration.security.common.ManagedCreateTransport in project wildfly by wildfly.

the class LdapServerSetupTask method fixTransportAddress.

/**
     * Fixes bind address in the CreateTransport annotation.
     *
     * @param createLdapServer
     */
private void fixTransportAddress(ManagedCreateLdapServer createLdapServer, String address) {
    final CreateTransport[] createTransports = createLdapServer.transports();
    for (int i = 0; i < createTransports.length; i++) {
        final ManagedCreateTransport mgCreateTransport = new ManagedCreateTransport(createTransports[i]);
        mgCreateTransport.setAddress(address);
        createTransports[i] = mgCreateTransport;
    }
}
Also used : ManagedCreateTransport(org.jboss.as.test.integration.security.common.ManagedCreateTransport) CreateTransport(org.apache.directory.server.annotations.CreateTransport) ManagedCreateTransport(org.jboss.as.test.integration.security.common.ManagedCreateTransport)

Aggregations

CreateTransport (org.apache.directory.server.annotations.CreateTransport)3 ManagedCreateTransport (org.jboss.as.test.integration.security.common.ManagedCreateTransport)3