public class MailSessionBinding extends ServiceBinding
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_DEFAULT_HOST |
static String |
PROP_DEFAULT_PASSWORD |
static String |
PROP_DEFAULT_PORT |
static String |
PROP_DEFAULT_USER |
static String |
PROP_PROTOCOL_HOST |
static String |
PROP_PROTOCOL_PASSWORD |
static String |
PROP_PROTOCOL_PORT |
static String |
PROP_PROTOCOL_USER |
static String |
PROP_STORE_TYPE |
static String |
PROP_TRANSPORT_TYPE |
| Constructor and Description |
|---|
MailSessionBinding() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCredentialRef(MailSessionCredential credential) |
boolean |
addJndiProperty(Property jndiProperty)
Add the additional property about the mail endpoint to the existing list of properties
|
List<MailSessionCredential> |
getCredentialRefs() |
String |
getDefaultCredentialRef()
Returns defaultCredentialRef
|
List<Property> |
getJndiProperties()
Return the additional set of properties for this mail endpoint
|
static String |
getProtocol(Pattern pattern,
String matches) |
String |
getStoreProtocol() |
String |
getTransportProtocol() |
static boolean |
matches(Pattern pattern,
String matches) |
static boolean |
matchesHost(String matches) |
static boolean |
matchesPassword(String matches) |
static boolean |
matchesPort(String matches) |
static boolean |
matchesUser(String matches) |
static String |
matchHostAndGetProtocol(String matches) |
static String |
matchPasswordAndGetProtocol(String matches) |
static String |
matchPortAndGetProtocol(String matches) |
static String |
matchUserAndGetProtocol(String matches) |
MailSessionBinding |
setCredentialRefs(List<MailSessionCredential> credentialRefs) |
void |
setDefaultCredentialRef(String defaultCredentialRef)
Set default credential
|
MailSessionBinding |
setJndiProperties(List<Property> jndiProperties)
Replace / set the additional mail endpoint properties
|
MailSessionBinding |
setResourceRef(String resourceRef)
Set the reference to the blueprint AppSvcResource
|
MailSessionBinding |
setServiceRef(Service serviceRef)
Set the reference to the service that contains the endpoints
in the topology
|
MailSessionBinding |
setStoreProtocol(String storeProtocol) |
MailSessionBinding |
setTransportProtocol(String transportProtocol) |
String |
toCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toJsonCompactString()
Returns a compact string representation of the object in JSON format.
|
String |
toJsonString()
Returns a string representation of the object in JSON format.
|
String |
toString()
Returns a string representation of the object in XML format.
|
String |
toXmlCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toXmlString()
Returns a string representation of the object in XML format.
|
getParent, getResourceRef, getServiceRef, getVariableValue, setParent, substitutepublic static final String PROP_TRANSPORT_TYPE
public static final String PROP_STORE_TYPE
public static final String PROP_DEFAULT_USER
public static final String PROP_DEFAULT_PASSWORD
public static final String PROP_DEFAULT_HOST
public static final String PROP_DEFAULT_PORT
public static final String PROP_PROTOCOL_USER
public static final String PROP_PROTOCOL_PASSWORD
public static final String PROP_PROTOCOL_HOST
public static final String PROP_PROTOCOL_PORT
public String getTransportProtocol()
public MailSessionBinding setTransportProtocol(String transportProtocol)
public String getStoreProtocol()
public MailSessionBinding setStoreProtocol(String storeProtocol)
public List<MailSessionCredential> getCredentialRefs()
public String getDefaultCredentialRef()
public void setDefaultCredentialRef(String defaultCredentialRef)
defaultCredentialRef - the default credential referencepublic MailSessionBinding setCredentialRefs(List<MailSessionCredential> credentialRefs)
public boolean addCredentialRef(MailSessionCredential credential)
public MailSessionBinding setResourceRef(String resourceRef)
ServiceBindingsetResourceRef in class ServiceBindingresourceRef - id of the resourcepublic MailSessionBinding setServiceRef(Service serviceRef)
ServiceBindingsetServiceRef in class ServiceBindingserviceRef - id of the servicepublic List<Property> getJndiProperties()
public MailSessionBinding setJndiProperties(List<Property> jndiProperties)
jndiProperties - for the mail endpointpublic boolean addJndiProperty(Property jndiProperty)
jndiProperty - property to add to the listIllegalArgumentException - if the property or the property name is nullpublic static boolean matchesHost(String matches)
public static boolean matchesPort(String matches)
public static boolean matchesUser(String matches)
public static boolean matchesPassword(String matches)
public String toXmlCompactString()
public String toXmlString()
public String toJsonCompactString()
public String toJsonString()
public String toCompactString()