com.hs.mail.imap.message.responder
Class AbstractImapResponder

java.lang.Object
  extended by com.hs.mail.imap.message.responder.AbstractImapResponder
All Implemented Interfaces:
Responder
Direct Known Subclasses:
DefaultImapResponder

public abstract class AbstractImapResponder
extends Object
implements Responder

Since:
Mar 17, 2010
Author:
Won Chul Doh

Field Summary
protected  org.jboss.netty.channel.Channel channel
           
protected  ImapRequest request
           
 
Constructor Summary
protected AbstractImapResponder(org.jboss.netty.channel.Channel channel, ImapRequest request)
           
 
Method Summary
 org.jboss.netty.channel.ChannelFuture bye(String text)
           
protected  void closeParen(String bracket)
           
protected  String encodeDateTime(Date date)
           
protected  void end()
           
protected  void flags(javax.mail.Flags flags)
           
 org.jboss.netty.channel.Channel getChannel()
           
 ImapRequest getRequest()
           
protected  void literal(Content content)
           
protected  void message(long number)
           
protected  void message(String message)
           
protected  void nil()
           
protected  void nillableQuote(String message)
           
protected  void nillableQuotes(List<String> quotes)
           
 org.jboss.netty.channel.ChannelFuture okCompleted(ImapRequest request)
           
 org.jboss.netty.channel.ChannelFuture okCompleted(ImapRequest request, String responseCode)
           
protected  void openParen(String bracket)
           
protected  void quote(String message)
           
protected  void quoteUpper(String message)
           
protected  void skipNextSpace()
           
protected  void space()
           
 org.jboss.netty.channel.ChannelFuture taggedNo(ImapRequest request, String text)
           
 org.jboss.netty.channel.ChannelFuture taggedNo(ImapRequest request, String responseCode, String text)
           
 org.jboss.netty.channel.ChannelFuture untagged(String text)
           
 org.jboss.netty.channel.ChannelFuture untaggedOK(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channel

protected org.jboss.netty.channel.Channel channel

request

protected ImapRequest request
Constructor Detail

AbstractImapResponder

protected AbstractImapResponder(org.jboss.netty.channel.Channel channel,
                                ImapRequest request)
Method Detail

getChannel

public org.jboss.netty.channel.Channel getChannel()
Specified by:
getChannel in interface Responder

getRequest

public ImapRequest getRequest()
Specified by:
getRequest in interface Responder

okCompleted

public org.jboss.netty.channel.ChannelFuture okCompleted(ImapRequest request)
Specified by:
okCompleted in interface Responder

okCompleted

public org.jboss.netty.channel.ChannelFuture okCompleted(ImapRequest request,
                                                         String responseCode)
Specified by:
okCompleted in interface Responder

bye

public org.jboss.netty.channel.ChannelFuture bye(String text)
Specified by:
bye in interface Responder

taggedNo

public org.jboss.netty.channel.ChannelFuture taggedNo(ImapRequest request,
                                                      String text)
Specified by:
taggedNo in interface Responder

taggedNo

public org.jboss.netty.channel.ChannelFuture taggedNo(ImapRequest request,
                                                      String responseCode,
                                                      String text)
Specified by:
taggedNo in interface Responder

untaggedOK

public org.jboss.netty.channel.ChannelFuture untaggedOK(String text)
Specified by:
untaggedOK in interface Responder

untagged

public org.jboss.netty.channel.ChannelFuture untagged(String text)
Specified by:
untagged in interface Responder

message

protected void message(String message)

message

protected void message(long number)

space

protected void space()

skipNextSpace

protected void skipNextSpace()

openParen

protected void openParen(String bracket)

closeParen

protected void closeParen(String bracket)

end

protected void end()

quote

protected void quote(String message)

quoteUpper

protected void quoteUpper(String message)

nil

protected void nil()

nillableQuote

protected void nillableQuote(String message)

nillableQuotes

protected void nillableQuotes(List<String> quotes)

flags

protected void flags(javax.mail.Flags flags)

encodeDateTime

protected String encodeDateTime(Date date)

literal

protected void literal(Content content)


Copyright © 2011. All Rights Reserved.