Examples of CRLFTerminatedReader


Examples of org.apache.james.util.CRLFTerminatedReader

            in = new BufferedInputStream(socket.getInputStream(), 1024);
            // An ASCII encoding can be used because all transmissions other
            // that those in the DATA command are guaranteed
            // to be ASCII
            // inReader = new BufferedReader(new InputStreamReader(in, "ASCII"), 512);
            inReader = new CRLFTerminatedReader(in, "ASCII");
            remoteIP = socket.getInetAddress().getHostAddress();
            remoteHost = socket.getInetAddress().getHostName();
            smtpID = random.nextInt(1024) + "";
            relayingAllowed = theConfigData.isRelayingAllowed(remoteIP);
            authRequired = theConfigData.isAuthRequired(remoteIP);
View Full Code Here

Examples of org.apache.james.util.CRLFTerminatedReader

            this.socket = connection;
            synchronized (this) {
                handlerThread = Thread.currentThread();
            }
            // in = new BufferedReader(new InputStreamReader(socket.getInputStream(), "ASCII"), 512);
            in = new CRLFTerminatedReader(new BufferedInputStream(socket.getInputStream(), 512), "ASCII");
            remoteIP = socket.getInetAddress().getHostAddress ();
            remoteHost = socket.getInetAddress().getHostName ();
        } catch (Exception e) {
            if (getLogger().isErrorEnabled()) {
                StringBuffer exceptionBuffer =
View Full Code Here

Examples of org.apache.james.util.CRLFTerminatedReader

            in = new BufferedInputStream(socket.getInputStream(), 1024);
            // An ASCII encoding can be used because all transmissions other
            // that those in the DATA command are guaranteed
            // to be ASCII
            // inReader = new BufferedReader(new InputStreamReader(in, "ASCII"), 512);
            inReader = new CRLFTerminatedReader(in, "ASCII");
            remoteIP = socket.getInetAddress().getHostAddress();
            remoteHost = socket.getInetAddress().getHostName();
            smtpID = random.nextInt(1024) + "";
            relayingAllowed = theConfigData.isRelayingAllowed(remoteIP);
            authRequired = theConfigData.isAuthRequired(remoteIP);
View Full Code Here

Examples of org.apache.james.util.CRLFTerminatedReader

            this.socket = connection;
            synchronized (this) {
                handlerThread = Thread.currentThread();
            }
            // in = new BufferedReader(new InputStreamReader(socket.getInputStream(), "ASCII"), 512);
            in = new CRLFTerminatedReader(new BufferedInputStream(socket.getInputStream(), 512), "ASCII");
            remoteIP = socket.getInetAddress().getHostAddress ();
            remoteHost = socket.getInetAddress().getHostName ();
        } catch (Exception e) {
            if (getLogger().isErrorEnabled()) {
                StringBuffer exceptionBuffer =
View Full Code Here

Examples of org.apache.james.util.CRLFTerminatedReader

            in = new BufferedInputStream(socket.getInputStream(), 1024);
            // An ASCII encoding can be used because all transmissions other
            // that those in the DATA command are guaranteed
            // to be ASCII
            // inReader = new BufferedReader(new InputStreamReader(in, "ASCII"), 512);
            inReader = new CRLFTerminatedReader(in, "ASCII");
            remoteIP = socket.getInetAddress().getHostAddress();
            remoteHost = socket.getInetAddress().getHostName();
            smtpID = random.nextInt(1024) + "";
            relayingAllowed = theConfigData.isRelayingAllowed(remoteIP);
            authRequired = theConfigData.isAuthRequired(remoteIP);
View Full Code Here

Examples of org.apache.james.util.CRLFTerminatedReader

            this.socket = connection;
            synchronized (this) {
                handlerThread = Thread.currentThread();
            }
            // in = new BufferedReader(new InputStreamReader(socket.getInputStream(), "ASCII"), 512);
            in = new CRLFTerminatedReader(new BufferedInputStream(socket.getInputStream(), 512), "ASCII");
            remoteIP = socket.getInetAddress().getHostAddress ();
            remoteHost = socket.getInetAddress().getHostName ();
        } catch (Exception e) {
            if (getLogger().isErrorEnabled()) {
                StringBuffer exceptionBuffer =
View Full Code Here

Examples of org.subethamail.smtp.io.CRLFTerminatedReader

   */
  public void setSocket(Socket socket) throws IOException
  {
    this.socket = socket;
    this.input = this.socket.getInputStream();
    this.reader = new CRLFTerminatedReader(this.input);
    this.writer = new PrintWriter(this.socket.getOutputStream());

    this.socket.setSoTimeout(this.server.getConnectionTimeout());
  }
View Full Code Here

Examples of org.subethamail.smtp.io.CRLFTerminatedReader

     * SSL is started.
     */
    public void setSocket(Socket socket) throws IOException {
        this.socket = socket;
        this.input = this.socket.getInputStream();
        this.reader = new CRLFTerminatedReader(this.input);
        this.writer =
                new OutputStreamWriter(this.socket.getOutputStream(),
                        "US-ASCII");

        this.socket.setSoTimeout(TEN_MINUTES);
View Full Code Here

Examples of org.subethamail.smtp.io.CRLFTerminatedReader

    }
    // OK, let's go trough the authentication process.
    try
    {
      // The authentication process may require a series of challenge-responses
      CRLFTerminatedReader reader = sess.getReader();

      String response = authHandler.auth(commandString);
      if (response != null)
      {
        // challenge-response iteration
        sess.sendResponse(response);
      }

      while (response != null)
      {
        String clientInput = reader.readLine();
        if (clientInput.trim().equals(AUTH_CANCEL_COMMAND))
        {
          // RFC 2554 explicitly states this:
          sess.sendResponse("501 Authentication canceled by client.");
          return;
View Full Code Here

Examples of org.subethamail.smtp.io.CRLFTerminatedReader

   */
  public void setSocket(Socket socket) throws IOException
  {
    this.socket = socket;
    this.input = this.socket.getInputStream();
    this.reader = new CRLFTerminatedReader(this.input);
    this.writer = new PrintWriter(this.socket.getOutputStream());

    this.socket.setSoTimeout(this.server.getConnectionTimeout());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.