public class IMAPProtocol extends Protocol
notifyResponseHandlers(r)
.Modifier and Type | Field and Description |
---|---|
protected Set<String> |
enabled |
protected String[] |
searchCharsets |
protected SearchSequence |
searchSequence |
Constructor and Description |
---|
IMAPProtocol(InputStream in,
PrintStream out,
Properties props,
boolean debug)
Constructor for debugging.
|
IMAPProtocol(String name,
String host,
int port,
Properties props,
boolean isSSL,
MailLogger logger)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
append(String mbox,
Flags f,
Date d,
Literal data)
APPEND Command.
|
AppendUID |
appenduid(String mbox,
Flags f,
Date d,
Literal data)
APPEND Command, return uid from APPENDUID response code.
|
AppendUID |
appenduid(String mbox,
Flags f,
Date d,
Literal data,
boolean uid) |
void |
authlogin(String u,
String p)
The AUTHENTICATE command with AUTH=LOGIN authenticate scheme
|
void |
authntlm(String authzid,
String u,
String p)
The AUTHENTICATE command with AUTH=NTLM authentication scheme.
|
void |
authoauth2(String u,
String p)
The AUTHENTICATE command with AUTH=XOAUTH2 authentication scheme.
|
void |
authplain(String authzid,
String u,
String p)
The AUTHENTICATE command with AUTH=PLAIN authentication scheme.
|
void |
capability()
CAPABILITY command.
|
void |
check()
CHECK Command.
|
void |
close()
CLOSE Command.
|
void |
compress()
COMPRESS Command.
|
void |
copy(int start,
int end,
String mbox)
COPY command.
|
void |
copy(MessageSet[] msgsets,
String mbox)
COPY command.
|
CopyUID |
copyuid(int start,
int end,
String mbox)
COPY command, return uid from COPYUID response code.
|
CopyUID |
copyuid(MessageSet[] msgsets,
String mbox)
COPY command, return uid from COPYUID response code.
|
void |
create(String mbox)
CREATE Command.
|
protected String |
createFlagList(Flags flags)
Creates an IMAP flag_list from the given Flags object.
|
void |
delete(String mbox)
DELETE Command.
|
void |
deleteACL(String mbox,
String user)
DELETEACL Command.
|
void |
disconnect()
Close socket connection.
|
protected ListInfo[] |
doList(String cmd,
String ref,
String pat)
Execute the specified LIST-like command (e.g., "LIST" or "LSUB"),
using the reference and pattern.
|
void |
enable(String cap)
ENABLE Command.
|
MailboxInfo |
examine(String mbox)
EXAMINE Command.
|
MailboxInfo |
examine(String mbox,
ResyncData rd)
EXAMINE Command with QRESYNC data.
|
void |
expunge()
EXPUNGE Command.
|
Response[] |
fetch(int start,
int end,
String what) |
Response[] |
fetch(int msg,
String what) |
Response[] |
fetch(MessageSet[] msgsets,
String what) |
BODY |
fetchBody(int msgno,
String section)
Fetch given BODY section.
|
protected BODY |
fetchBody(int msgno,
String section,
boolean peek) |
BODY |
fetchBody(int msgno,
String section,
int start,
int size)
Partial FETCH of given BODY section.
|
protected BODY |
fetchBody(int msgno,
String section,
int start,
int size,
boolean peek,
ByteArray ba) |
BODY |
fetchBody(int msgno,
String section,
int start,
int size,
ByteArray ba)
Partial FETCH of given BODY section.
|
BODYSTRUCTURE |
fetchBodyStructure(int msgno)
Fetch the BODYSTRUCTURE of the specified message.
|
Flags |
fetchFlags(int msgno)
Fetch the FLAGS for the given message.
|
MODSEQ |
fetchMODSEQ(int msgno)
Fetch the IMAP MODSEQ for the given message.
|
RFC822DATA |
fetchRFC822(int msgno,
String what)
Fetch the specified RFC822 Data item.
|
protected BODY |
fetchSectionBody(int msgno,
String section,
String body)
Fetch the given body section of the given message, using the
body string "body".
|
void |
fetchSequenceNumber(long uid)
Get the sequence number for the given UID.
|
void |
fetchSequenceNumbers(long[] uids)
Get the sequence numbers for UIDs specified in the array.
|
long[] |
fetchSequenceNumbers(long start,
long end)
Get the sequence numbers for UIDs ranging from start till end.
|
UID |
fetchUID(int msgno)
Fetch the IMAP UID for the given message.
|
ACL[] |
getACL(String mbox)
GETACL Command.
|
Map<String,String> |
getCapabilities()
Return the map of capabilities returned by the server.
|
protected CopyUID |
getCopyUID(Response[] rr)
If the response contains a COPYUID response code, extract
it and return a CopyUID object with the information.
|
FetchItem[] |
getFetchItems()
Return an array of FetchItem objects describing the
FETCH items supported by this protocol.
|
String |
getProxyAuthUser()
Get the user name used with the PROXYAUTH command.
|
Quota[] |
getQuota(String root)
GETQUOTA Command.
|
Quota[] |
getQuotaRoot(String mbox)
GETQUOTAROOT Command.
|
protected ByteArray |
getResponseBuffer()
Return a buffer to read a response into.
|
protected SearchSequence |
getSearchSequence()
Get the SearchSequence object.
|
void |
handleCapabilityResponse(Response[] r)
Handle any untagged CAPABILITY response in the Response array.
|
protected void |
handleLoginResult(Response r)
Handle the result response for a LOGIN or AUTHENTICATE command.
|
boolean |
hasCapability(String c)
Check whether the given capability is supported by
this server.
|
Map<String,String> |
id(Map<String,String> clientParams)
ID Command.
|
void |
id(String guid)
Deprecated.
As of JavaMail 1.5.1, replaced by
id(Map<String,String>) |
void |
idleAbort()
Abort an IDLE command.
|
void |
idleStart()
IDLE Command.
|
boolean |
isAuthenticated()
Returns
true if the connection has been authenticated,
either due to a successful login, or due to a PREAUTH greeting response. |
boolean |
isEnabled(String cap)
Is the capability/extension enabled?
|
boolean |
isREV1()
Returns
true if this is an IMAP4rev1 server |
ListInfo[] |
list(String ref,
String pattern)
LIST Command.
|
Rights[] |
listRights(String mbox,
String user)
LISTRIGHTS Command.
|
void |
login(String u,
String p)
LOGIN Command.
|
void |
logout()
LOGOUT Command.
|
ListInfo[] |
lsub(String ref,
String pattern)
LSUB Command.
|
void |
move(int start,
int end,
String mbox)
MOVE command.
|
void |
move(MessageSet[] msgsets,
String mbox)
MOVE command.
|
CopyUID |
moveuid(int start,
int end,
String mbox)
MOVE Command, return uid from COPYUID response code.
|
CopyUID |
moveuid(MessageSet[] msgsets,
String mbox)
MOVE Command, return uid from COPYUID response code.
|
Rights |
myRights(String mbox)
MYRIGHTS Command.
|
Namespaces |
namespace()
NAMESPACE Command.
|
void |
noop()
The NOOP command.
|
protected void |
parseCapabilities(Response r)
Parse the capabilities from a CAPABILITY response or from
a CAPABILITY response code attached to (e.g.) an OK response.
|
BODY |
peekBody(int msgno,
String section)
Fetch given BODY section, without marking the message
as SEEN.
|
BODY |
peekBody(int msgno,
String section,
int start,
int size)
Partial FETCH of given BODY section, without setting SEEN flag.
|
BODY |
peekBody(int msgno,
String section,
int start,
int size,
ByteArray ba)
Partial FETCH of given BODY section, without setting SEEN flag.
|
protected void |
processGreeting(Response r)
Check the greeting when first connecting; look for PREAUTH response.
|
boolean |
processIdleResponse(Response r)
Process a response returned by readIdleResponse().
|
void |
proxyauth(String u)
PROXYAUTH Command.
|
Response |
readIdleResponse()
While an IDLE command is in progress, read a response
sent from the server.
|
Response |
readResponse()
Read a response from the server.
|
void |
rename(String o,
String n)
RENAME Command.
|
void |
sasllogin(String[] allowed,
String realm,
String authzid,
String u,
String p)
SASL-based login.
|
int[] |
search(MessageSet[] msgsets,
SearchTerm term)
Issue the given search criterion on the specified message sets.
|
int[] |
search(SearchTerm term)
Issue the given search criterion on all messages in this folder.
|
MailboxInfo |
select(String mbox)
SELECT Command.
|
MailboxInfo |
select(String mbox,
ResyncData rd)
SELECT Command with QRESYNC data.
|
void |
setACL(String mbox,
char modifier,
ACL acl)
SETACL Command.
|
protected void |
setCapabilities(Response r)
If the response contains a CAPABILITY response code, extract
it and save the capabilities.
|
void |
setQuota(Quota quota)
SETQUOTA Command.
|
int[] |
sort(SortTerm[] term,
SearchTerm sterm)
Sort messages in the folder according to the specified sort criteria.
|
void |
startTLS()
STARTTLS Command.
|
Status |
status(String mbox,
String[] items)
STATUS Command.
|
void |
storeFlags(int msg,
Flags flags,
boolean set)
Set the specified flags on this message.
|
void |
storeFlags(int start,
int end,
Flags flags,
boolean set) |
void |
storeFlags(MessageSet[] msgsets,
Flags flags,
boolean set) |
void |
subscribe(String mbox)
SUBSCRIBE Command.
|
protected boolean |
supportsNonSyncLiterals()
Returns whether this Protocol supports non-synchronizing literals.
|
boolean |
supportsUtf8()
Does the server support UTF-8?
|
void |
uidexpunge(UIDSet[] set)
UID EXPUNGE Command.
|
int[] |
uidfetchChangedSince(long start,
long end,
long modseq)
Get the sequence numbers for messages changed since the given
modseq and with UIDs ranging from start till end.
|
void |
unauthenticate()
UNAUTHENTICATE Command.
|
void |
unselect()
UNSELECT Command.
|
void |
unsubscribe(String mbox)
UNSUBSCRIBE Command.
|
protected void |
writeMailboxName(Argument args,
String name)
Encode a mailbox name appropriately depending on whether or not
the server supports UTF-8, and add the encoded name to the
Argument.
|
addResponseHandler, command, finalize, getChannel, getInetAddress, getInputStream, getLocalHost, getOutputStream, getTimestamp, handleResult, hasResponse, isSSL, isTracing, notifyResponseHandlers, removeResponseHandler, resumeTracing, simpleCommand, startCompression, startTLS, suspendTracing, writeCommand
protected SearchSequence searchSequence
protected String[] searchCharsets
public IMAPProtocol(String name, String host, int port, Properties props, boolean isSSL, MailLogger logger) throws IOException, ProtocolException
name
- the protocol namehost
- host to connect toport
- port number to connect toprops
- Properties object used by this protocolisSSL
- true if SSL should be usedlogger
- the MailLogger to use for debug outputIOException
- for I/O errorsProtocolException
- for protocol failurespublic IMAPProtocol(InputStream in, PrintStream out, Properties props, boolean debug) throws IOException
in
- the InputStream from which to readout
- the PrintStream to which to writeprops
- Properties object used by this protocoldebug
- true to enable debugging outputIOException
- for I/O errorspublic FetchItem[] getFetchItems()
public void capability() throws ProtocolException
ProtocolException
- for protocol failurespublic void handleCapabilityResponse(Response[] r)
r
- the responsesprotected void setCapabilities(Response r)
r
- the responseprotected void parseCapabilities(Response r)
r
- the CAPABILITY responseprotected void processGreeting(Response r) throws ProtocolException
processGreeting
in class Protocol
r
- the greeting responseProtocolException
- for protocol failurespublic boolean isAuthenticated()
true
if the connection has been authenticated,
either due to a successful login, or due to a PREAUTH greeting response.public boolean isREV1()
true
if this is an IMAP4rev1 serverprotected boolean supportsNonSyncLiterals()
supportsNonSyncLiterals
in class Protocol
public Response readResponse() throws IOException, ProtocolException
readResponse
in class Protocol
IOException
- for I/O errorsProtocolException
- for protocol failurespublic boolean hasCapability(String c)
true
if so, otherwise
returns false.c
- the capability namepublic Map<String,String> getCapabilities()
public boolean supportsUtf8()
supportsUtf8
in class Protocol
public void disconnect()
disconnect
in class Protocol
public void noop() throws ProtocolException
ProtocolException
- for protocol failurespublic void logout() throws ProtocolException
ProtocolException
- for protocol failurespublic void login(String u, String p) throws ProtocolException
u
- the usernamep
- the passwordProtocolException
- as thrown by Protocol.handleResult(com.sun.mail.iap.Response)
.public void authlogin(String u, String p) throws ProtocolException
u
- the usernamep
- the passwordProtocolException
- as thrown by Protocol.handleResult(com.sun.mail.iap.Response)
.public void authplain(String authzid, String u, String p) throws ProtocolException
authlogin(java.lang.String, java.lang.String)
method.authzid
- the authorization idu
- the usernamep
- the passwordProtocolException
- as thrown by Protocol.handleResult(com.sun.mail.iap.Response)
.public void authntlm(String authzid, String u, String p) throws ProtocolException
authlogin(java.lang.String, java.lang.String)
method.authzid
- the authorization idu
- the usernamep
- the passwordProtocolException
- as thrown by Protocol.handleResult(com.sun.mail.iap.Response)
.public void authoauth2(String u, String p) throws ProtocolException
authlogin(java.lang.String, java.lang.String)
method.u
- the usernamep
- the passwordProtocolException
- as thrown by Protocol.handleResult(com.sun.mail.iap.Response)
.public void sasllogin(String[] allowed, String realm, String authzid, String u, String p) throws ProtocolException
allowed
- the SASL mechanisms we're allowed to userealm
- the SASL realmauthzid
- the authorization idu
- the usernamep
- the passwordProtocolException
- for protocol failuresprotected void handleLoginResult(Response r) throws ProtocolException
r
- the responseProtocolException
- for protocol failurespublic void proxyauth(String u) throws ProtocolException
u
- the PROXYAUTH user nameProtocolException
- for protocol failurespublic String getProxyAuthUser()
public void unauthenticate() throws ProtocolException
ProtocolException
- for protocol failures@Deprecated public void id(String guid) throws ProtocolException
id(Map<String,String>)
guid
- the GUIDProtocolException
- for protocol failurespublic void startTLS() throws ProtocolException
ProtocolException
- for protocol failurespublic void compress() throws ProtocolException
ProtocolException
- for protocol failuresprotected void writeMailboxName(Argument args, String name)
args
- the argumentsname
- the name to encodepublic MailboxInfo select(String mbox) throws ProtocolException
mbox
- the mailbox nameProtocolException
- for protocol failurespublic MailboxInfo select(String mbox, ResyncData rd) throws ProtocolException
mbox
- the mailbox namerd
- the ResyncDataProtocolException
- for protocol failurespublic MailboxInfo examine(String mbox) throws ProtocolException
mbox
- the mailbox nameProtocolException
- for protocol failurespublic MailboxInfo examine(String mbox, ResyncData rd) throws ProtocolException
mbox
- the mailbox namerd
- the ResyncDataProtocolException
- for protocol failurespublic void enable(String cap) throws ProtocolException
cap
- the name of the capability to enableProtocolException
- for protocol failurespublic boolean isEnabled(String cap)
cap
- the capability namepublic void unselect() throws ProtocolException
ProtocolException
- for protocol failurespublic Status status(String mbox, String[] items) throws ProtocolException
mbox
- the mailboxitems
- the STATUS items to requestProtocolException
- for protocol failurespublic void create(String mbox) throws ProtocolException
mbox
- the mailbox to createProtocolException
- for protocol failurespublic void delete(String mbox) throws ProtocolException
mbox
- the mailbox to deleteProtocolException
- for protocol failurespublic void rename(String o, String n) throws ProtocolException
o
- old mailbox namen
- new mailbox nameProtocolException
- for protocol failurespublic void subscribe(String mbox) throws ProtocolException
mbox
- the mailboxProtocolException
- for protocol failurespublic void unsubscribe(String mbox) throws ProtocolException
mbox
- the mailboxProtocolException
- for protocol failurespublic ListInfo[] list(String ref, String pattern) throws ProtocolException
ref
- reference stringpattern
- pattern to listProtocolException
- for protocol failurespublic ListInfo[] lsub(String ref, String pattern) throws ProtocolException
ref
- reference stringpattern
- pattern to listProtocolException
- for protocol failuresprotected ListInfo[] doList(String cmd, String ref, String pat) throws ProtocolException
cmd
- the list commandref
- the reference stringpat
- the patternProtocolException
- for protocol failurespublic void append(String mbox, Flags f, Date d, Literal data) throws ProtocolException
mbox
- the mailboxf
- the message Flagsd
- the message datedata
- the message dataProtocolException
- for protocol failurespublic AppendUID appenduid(String mbox, Flags f, Date d, Literal data) throws ProtocolException
mbox
- the mailboxf
- the message Flagsd
- the message datedata
- the message dataProtocolException
- for protocol failurespublic AppendUID appenduid(String mbox, Flags f, Date d, Literal data, boolean uid) throws ProtocolException
ProtocolException
public void check() throws ProtocolException
ProtocolException
- for protocol failurespublic void close() throws ProtocolException
ProtocolException
- for protocol failurespublic void expunge() throws ProtocolException
ProtocolException
- for protocol failurespublic void uidexpunge(UIDSet[] set) throws ProtocolException
set
- UIDs to expungeProtocolException
- for protocol failurespublic BODYSTRUCTURE fetchBodyStructure(int msgno) throws ProtocolException
msgno
- the message numberProtocolException
- for protocol failurespublic BODY peekBody(int msgno, String section) throws ProtocolException
msgno
- the message numbersection
- the body sectionProtocolException
- for protocol failurespublic BODY fetchBody(int msgno, String section) throws ProtocolException
msgno
- the message numbersection
- the body sectionProtocolException
- for protocol failuresprotected BODY fetchBody(int msgno, String section, boolean peek) throws ProtocolException
ProtocolException
public BODY peekBody(int msgno, String section, int start, int size) throws ProtocolException
msgno
- the message numbersection
- the body sectionstart
- starting byte countsize
- number of bytes to fetchProtocolException
- for protocol failurespublic BODY fetchBody(int msgno, String section, int start, int size) throws ProtocolException
msgno
- the message numbersection
- the body sectionstart
- starting byte countsize
- number of bytes to fetchProtocolException
- for protocol failurespublic BODY peekBody(int msgno, String section, int start, int size, ByteArray ba) throws ProtocolException
msgno
- the message numbersection
- the body sectionstart
- starting byte countsize
- number of bytes to fetchba
- the buffer into which to read the responseProtocolException
- for protocol failurespublic BODY fetchBody(int msgno, String section, int start, int size, ByteArray ba) throws ProtocolException
msgno
- the message numbersection
- the body sectionstart
- starting byte countsize
- number of bytes to fetchba
- the buffer into which to read the responseProtocolException
- for protocol failuresprotected BODY fetchBody(int msgno, String section, int start, int size, boolean peek, ByteArray ba) throws ProtocolException
ProtocolException
protected BODY fetchSectionBody(int msgno, String section, String body) throws ProtocolException
msgno
- the message numbersection
- the body sectionbody
- the body stringProtocolException
- for protocol failuresprotected ByteArray getResponseBuffer()
getResponseBuffer
in class Protocol
public RFC822DATA fetchRFC822(int msgno, String what) throws ProtocolException
null
to fetch the whole message.msgno
- the message numberwhat
- the item to fetchProtocolException
- for protocol failurespublic Flags fetchFlags(int msgno) throws ProtocolException
msgno
- the message numberProtocolException
- for protocol failurespublic UID fetchUID(int msgno) throws ProtocolException
msgno
- the message numberProtocolException
- for protocol failurespublic MODSEQ fetchMODSEQ(int msgno) throws ProtocolException
msgno
- the message numberProtocolException
- for protocol failurespublic void fetchSequenceNumber(long uid) throws ProtocolException
uid
- the UIDProtocolException
- for protocol failurespublic long[] fetchSequenceNumbers(long start, long end) throws ProtocolException
start
- first UIDend
- last UIDProtocolException
- for protocol failurespublic void fetchSequenceNumbers(long[] uids) throws ProtocolException
uids
- the UIDsProtocolException
- for protocol failurespublic int[] uidfetchChangedSince(long start, long end, long modseq) throws ProtocolException
start
- first UIDend
- last UIDmodseq
- the MODSEQProtocolException
- for protocol failurespublic Response[] fetch(MessageSet[] msgsets, String what) throws ProtocolException
ProtocolException
public Response[] fetch(int start, int end, String what) throws ProtocolException
ProtocolException
public Response[] fetch(int msg, String what) throws ProtocolException
ProtocolException
public void copy(MessageSet[] msgsets, String mbox) throws ProtocolException
msgsets
- the messages to copymbox
- the mailbox to copy them toProtocolException
- for protocol failurespublic void copy(int start, int end, String mbox) throws ProtocolException
start
- start message numberend
- end message numbermbox
- the mailbox to copy them toProtocolException
- for protocol failurespublic CopyUID copyuid(MessageSet[] msgsets, String mbox) throws ProtocolException
msgsets
- the messages to copymbox
- the mailbox to copy them toProtocolException
- for protocol failurespublic CopyUID copyuid(int start, int end, String mbox) throws ProtocolException
start
- start message numberend
- end message numbermbox
- the mailbox to copy them toProtocolException
- for protocol failurespublic void move(MessageSet[] msgsets, String mbox) throws ProtocolException
msgsets
- the messages to movembox
- the mailbox to move them toProtocolException
- for protocol failurespublic void move(int start, int end, String mbox) throws ProtocolException
start
- start message numberend
- end message numbermbox
- the mailbox to move them toProtocolException
- for protocol failurespublic CopyUID moveuid(MessageSet[] msgsets, String mbox) throws ProtocolException
msgsets
- the messages to movembox
- the mailbox to move them toProtocolException
- for protocol failurespublic CopyUID moveuid(int start, int end, String mbox) throws ProtocolException
start
- start message numberend
- end message numbermbox
- the mailbox to move them toProtocolException
- for protocol failuresprotected CopyUID getCopyUID(Response[] rr)
rr
- the responses to examinepublic void storeFlags(MessageSet[] msgsets, Flags flags, boolean set) throws ProtocolException
ProtocolException
public void storeFlags(int start, int end, Flags flags, boolean set) throws ProtocolException
ProtocolException
public void storeFlags(int msg, Flags flags, boolean set) throws ProtocolException
msg
- the message numberflags
- the flagsset
- true to set, false to clearProtocolException
- for protocol failuresprotected String createFlagList(Flags flags)
flags
- the flagspublic int[] search(MessageSet[] msgsets, SearchTerm term) throws ProtocolException, SearchException
msgsets
- array of MessageSetsterm
- SearchTermProtocolException
- for protocol failuresSearchException
- for search failurespublic int[] search(SearchTerm term) throws ProtocolException, SearchException
term
- SearchTermProtocolException
- for protocol failuresSearchException
- for search failuresprotected SearchSequence getSearchSequence()
public int[] sort(SortTerm[] term, SearchTerm sterm) throws ProtocolException, SearchException
term
- sort criteriasterm
- SearchTermProtocolException
- for protocol failuresSearchException
- for search failurespublic Namespaces namespace() throws ProtocolException
ProtocolException
- for protocol failurespublic Quota[] getQuotaRoot(String mbox) throws ProtocolException
mbox
- the mailboxProtocolException
- for protocol failurespublic Quota[] getQuota(String root) throws ProtocolException
root
- the quotarootProtocolException
- for protocol failurespublic void setQuota(Quota quota) throws ProtocolException
quota
- the quota to setProtocolException
- for protocol failurespublic void setACL(String mbox, char modifier, ACL acl) throws ProtocolException
mbox
- the mailboxmodifier
- the ACL modifieracl
- the ACLProtocolException
- for protocol failurespublic void deleteACL(String mbox, String user) throws ProtocolException
mbox
- the mailboxuser
- the userProtocolException
- for protocol failurespublic ACL[] getACL(String mbox) throws ProtocolException
mbox
- the mailboxProtocolException
- for protocol failurespublic Rights[] listRights(String mbox, String user) throws ProtocolException
mbox
- the mailboxuser
- the user rights to returnProtocolException
- for protocol failurespublic Rights myRights(String mbox) throws ProtocolException
mbox
- the mailboxProtocolException
- for protocol failurespublic void idleStart() throws ProtocolException
If the server supports the IDLE command extension, the IDLE command is issued and this method blocks until a response has been received. Once the first response has been received, the IDLE command is terminated and all responses are collected and handled and this method returns.
Note that while this method is blocked waiting for a response, no other threads may issue any commands to the server that would use this same connection.
ProtocolException
- for protocol failurespublic Response readIdleResponse()
public boolean processIdleResponse(Response r) throws ProtocolException
r
- the responseProtocolException
- for protocol failurespublic void idleAbort()
public Map<String,String> id(Map<String,String> clientParams) throws ProtocolException
clientParams
- map of names and valuesProtocolException
- for protocol failuresCopyright © 2019 JBoss by Red Hat. All rights reserved.