|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.javamail.store.pop3.connection.POP3ConnectionPool
public class POP3ConnectionPool
Field Summary | |
---|---|
protected String |
authid
|
protected POP3Connection |
availableConnection
|
protected boolean |
closed
|
protected boolean |
debug
|
protected static String |
DEFAULT_MAIL_HOST
|
protected String |
host
|
protected static String |
MAIL_AUTHORIZATIONID
|
protected static String |
MAIL_PORT
|
protected static String |
MAIL_SASL_REALM
|
protected String |
password
|
protected int |
port
|
protected ProtocolProperties |
props
|
protected String |
realm
|
protected POP3Store |
store
|
protected String |
username
|
Constructor Summary | |
---|---|
POP3ConnectionPool(POP3Store store,
ProtocolProperties props)
Create a connection pool associated with a give POP3Store instance. |
Method Summary | |
---|---|
void |
close()
Close the entire connection pool. |
protected POP3Connection |
createPoolConnection()
Creates an authenticated pool connection and adds it to the connection pool. |
POP3Connection |
getConnection()
Get a connection from the pool. |
boolean |
protocolConnect(String host,
int port,
String username,
String password)
Manage the initial connection to the POP3 server. |
void |
releaseConnection(POP3Connection connection)
Return a connection to the connection pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String MAIL_PORT
protected static final String MAIL_SASL_REALM
protected static final String MAIL_AUTHORIZATIONID
protected static final String DEFAULT_MAIL_HOST
protected POP3Store store
protected ProtocolProperties props
protected POP3Connection availableConnection
protected boolean debug
protected String host
protected int port
protected String username
protected String password
protected String realm
protected String authid
protected boolean closed
Constructor Detail |
---|
public POP3ConnectionPool(POP3Store store, ProtocolProperties props)
store
- The Store we're creating the pool for.props
- The protocol properties abstraction we use.Method Detail |
---|
public boolean protocolConnect(String host, int port, String username, String password) throws MessagingException
host
- The host of the mail server.port
- The mail server connection port.user
- The connection user name.password
- The connection password.
MessagingException
protected POP3Connection createPoolConnection() throws MessagingException
MessagingException
public POP3Connection getConnection() throws MessagingException
MessagingException
public void releaseConnection(POP3Connection connection) throws MessagingException
connection
- The connection getting returned.
MessagingException
public void close() throws MessagingException
MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |