|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.javamail.util.ProtocolProperties
public class ProtocolProperties
Interface for providing access to protocol specific properties to utility classes.
Field Summary | |
---|---|
protected int |
defaultPort
|
protected String |
protocol
|
protected String |
protocolPrefix
|
protected Session |
session
|
protected boolean |
sslConnection
|
Constructor Summary | |
---|---|
ProtocolProperties(Session session,
String protocol,
boolean sslConnection,
int defaultPort)
|
Method Summary | |
---|---|
boolean |
getBooleanProperty(String name,
boolean defaultValue)
Get a property associated with this mail session as an boolean value. |
boolean |
getBooleanSessionProperty(String name,
boolean defaultValue)
Get a property associated with this mail session as an boolean value. |
int |
getDefaultPort()
Return the default port to use with this connection. |
int |
getIntProperty(String name,
int defaultValue)
Get a property associated with this mail session as an integer value. |
int |
getIntSessionProperty(String name,
int defaultValue)
Get a property associated with this mail session as an integer value. |
Properties |
getProperties()
Get the complete set of properties associated with this Session. |
String |
getProperty(String name)
Get a property associated with this mail protocol. |
String |
getProperty(String name,
String defaultValue)
Get a property associated with this mail session. |
String |
getProtocol()
Retrieve the name of the protocol used to access properties. |
Session |
getSession()
Retrieve the Session associated with this property bundle instance. |
String |
getSessionProperty(String name)
Get a property associated with this mail session. |
String |
getSessionProperty(String name,
String defaultValue)
Get a property associated with this mail session. |
boolean |
getSSLConnection()
Retrieve the SSL Connection flag for this protocol; |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String protocol
protected String protocolPrefix
protected Session session
protected boolean sslConnection
protected int defaultPort
Constructor Detail |
---|
public ProtocolProperties(Session session, String protocol, boolean sslConnection, int defaultPort)
Method Detail |
---|
public Session getSession()
public String getProtocol()
public boolean getSSLConnection()
public int getDefaultPort()
public String getProperty(String name)
name
- The name of the property.
public String getProperty(String name, String defaultValue)
name
- The name of the property.defaultValue
- The default value to return if the property doesn't exist.
public int getIntProperty(String name, int defaultValue)
name
- The name of the property.defaultValue
- The default value to return if the property doesn't exist.
public boolean getBooleanProperty(String name, boolean defaultValue)
name
- The name of the property.defaultValue
- The default value to return if the property doesn't exist.
public String getSessionProperty(String name)
name
- The name of the property.
public String getSessionProperty(String name, String defaultValue)
name
- The name of the property.defaultValue
- The default value to return if the property doesn't exist.
public int getIntSessionProperty(String name, int defaultValue)
name
- The name of the property.defaultValue
- The default value to return if the property doesn't exist.
public boolean getBooleanSessionProperty(String name, boolean defaultValue)
name
- The name of the property.defaultValue
- The default value to return if the property doesn't exist.
public Properties getProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |