Package com.stimulus.archiva.domain

Examples of com.stimulus.archiva.domain.Agent


            SocketChannel connection = null;

            try
            {
              connection = this.serverSocketChannel.accept();
              Agent agent = Config.getConfig().getAgent();
              InetAddress remoteAddress = connection.socket().getInetAddress();
              String clientIp = remoteAddress.getHostAddress();
              if (agent.isAllowed(remoteAddress)) {
                logger.debug("milter accept connection (address='" + connection.socket().getInetAddress().getHostAddress()+"'}");
                  logger.debug("firing up new thread to handle milter requests");
                  new Thread( new JilterRunnable( connection, new MilterHandler(callback)),
                        "Jilter " + connection.socket().getInetAddress().getHostAddress()
                          ).start();
View Full Code Here


             
            if( command.equals( COMMAND_HELO ) ||
                command.equals( COMMAND_EHLO )) {
                InetAddress remoteAddress = socket.socket().getInetAddress();
                String clientIp = remoteAddress.getHostAddress();
                Agent agent = Config.getConfig().getAgent();
                if (agent.isAllowed(remoteAddress)) {
                  write( "250 Hello " + argument );
                  hello = true;
                      continue;
                } else {
                  write(MESSAGE_POLICY_DISALLOW);
View Full Code Here

            SocketChannel connection = null;

            try
            {
              connection = this.serverSocketChannel.accept();
              Agent agent = Config.getConfig().getAgent();
              InetAddress remoteAddress = connection.socket().getInetAddress();
              String clientIp = remoteAddress.getHostAddress();
              if (agent.isAllowed(remoteAddress)) {
                logger.debug("SMTP Server accept connection (address='" + connection.socket().getInetAddress().getHostAddress()+"'}");
                  logger.debug("firing up new thread to handle SMTP Server requests");
                  new Thread( new SMTPRunnable( connection, callback),
                        "SMTPServer " + connection.socket().getInetAddress().getHostAddress()
                          ).start();
View Full Code Here

TOP

Related Classes of com.stimulus.archiva.domain.Agent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.