|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.abstracthorizon.mercury.imap.response.Response
public abstract class Response
IMAP response
Field Summary | |
---|---|
static int |
CONTINUATION_RESPONSE
|
protected IMAPSession |
session
IMAP session |
static int |
TAGGED_RESPONSE
|
static int |
UNTAGGED_RESPONSE
|
Constructor Summary | |
---|---|
Response(IMAPSession session,
int type)
Response |
|
Response(IMAPSession session,
int type,
String msg)
Response with message |
Method Summary | |
---|---|
void |
append(byte[] buf)
Sends directly buffer to output |
void |
append(byte[] buf,
int off,
int len)
Appends buffer |
Response |
append(char c)
Appends char |
Response |
append(int i)
Appends integer |
Response |
append(long l)
Appends long number |
Response |
append(Object object)
Appends object |
Response |
append(String string)
Appends string to response |
Response |
append(StringBuffer sbuf)
Appends content string buffer |
protected void |
commit()
Commits response |
void |
submit()
Submits response |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TAGGED_RESPONSE
public static final int UNTAGGED_RESPONSE
public static final int CONTINUATION_RESPONSE
protected IMAPSession session
Constructor Detail |
---|
public Response(IMAPSession session, int type)
session
- sessiontype
- type of responsepublic Response(IMAPSession session, int type, String msg)
session
- sessiontype
- type of responsemsg
- messageMethod Detail |
---|
public Response append(String string)
string
- string to be appended
public Response append(StringBuffer sbuf)
sbuf
- string buffer
public Response append(int i)
i
- integer
public Response append(long l)
l
- long
public Response append(char c)
c
- char
public Response append(Object object)
object
- object
public void append(byte[] buf) throws IOException
buf
- buffer
IOException
public void append(byte[] buf, int off, int len) throws IOException
buf
- bufferoff
- offsetlen
- lebgth
IOException
protected void commit() throws IOException
IOException
public void submit() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |