Author: eric
Date: Fri Jan 6 11:23:37 2012
New Revision: 1228097
URL: http://svn.apache.org/viewvc?rev=1228097&view=rev
Log:
Import and Class rename to use the new protocols 1.6.0-RC2-SNAPSHOT (JAMES-1360)
Modified:
james/server/trunk/imapserver/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java
Modified:
james/server/trunk/imapserver/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java
URL:
http://svn.apache.org/viewvc/james/server/trunk/imapserver/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java?rev=1228097&r1=1228096&r2=1228097&view=diff
==============================================================================
---
james/server/trunk/imapserver/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java
(original)
+++
james/server/trunk/imapserver/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java
Fri Jan 6 11:23:37 2012
@@ -27,7 +27,9 @@ import org.apache.james.imap.api.ImapSes
import org.apache.james.imap.api.process.ImapLineHandler;
import org.apache.james.imap.api.process.ImapSession;
import org.apache.james.imap.api.process.SelectedMailbox;
-import org.apache.james.protocols.api.SessionLog;
+import org.apache.james.protocols.api.logger.ProtocolLoggerAdapter;
+import org.apache.james.protocols.api.logger.ProtocolSessionLogger;
+import org.apache.james.protocols.api.logger.Slf4jLoggerAdapter;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.handler.codec.compression.ZlibDecoder;
import org.jboss.netty.handler.codec.compression.ZlibEncoder;
@@ -43,14 +45,14 @@ public class NettyImapSession implements
private SSLContext sslContext;
private String[] enabledCipherSuites;
private boolean compress;
- private SessionLog log;
+ private ProtocolSessionLogger log;
private Channel channel;
private int handlerCount;
private boolean plainAuthDisallowed;
public NettyImapSession(Channel channel, Logger log, SSLContext
sslContext, String[] enabledCipherSuites, boolean compress, boolean
plainAuthDisallowed) {
this.channel = channel;
- this.log = new SessionLog(channel.getId() + "", log);
+ this.log = new ProtocolSessionLogger(channel.getId() + "", new
ProtocolLoggerAdapter(log));
this.sslContext = sslContext;
this.enabledCipherSuites = enabledCipherSuites;
this.compress = compress;
@@ -228,7 +230,7 @@ public class NettyImapSession implements
* @see org.apache.james.imap.api.process.ImapSession#getLog()
*/
public Logger getLog() {
- return log;
+ return new Slf4jLoggerAdapter(log);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]