Interface MailResource
- All Superinterfaces:
com.sun.enterprise.config.serverbeans.BindableResource,org.jvnet.hk2.config.ConfigBeanProxy,jakarta.validation.Payload,org.jvnet.hk2.config.types.PropertyBag,com.sun.enterprise.config.serverbeans.Resource
@ResourceConfigCreator(commandName="create-mail-resource")
@ResourceTypeOrder(deploymentOrder=MAIL_RESOURCE)
@UniqueResourceNameConstraint(message="{resourcename.isnot.unique}",
payload=MailResource.class)
public interface MailResource
extends org.jvnet.hk2.config.ConfigBeanProxy, com.sun.enterprise.config.serverbeans.Resource, org.jvnet.hk2.config.types.PropertyBag, com.sun.enterprise.config.serverbeans.BindableResource
The mail-resource element describes a
Session resource.-
Field Summary
Fields inherited from interface com.sun.enterprise.config.serverbeans.BindableResource
PATTERN_JNDIFields inherited from interface com.sun.enterprise.config.serverbeans.Resource
OBJECT_TYPES -
Method Summary
Modifier and TypeMethodDescriptiongetDebug()Gets the value of thedebugproperty.Gets the value of thedescriptionproperty.Gets the value of theenabledproperty.@NotNull StringgetFrom()Gets the value of thefromproperty.@NotNull StringgetHost()Gets the value of thehostproperty.default StringList<org.jvnet.hk2.config.types.Property>Properties as perPropertyBagGets the value of thestoreProtocolproperty.Gets the value of thestoreProtocolClassproperty.Gets the value of thetransportProtocolproperty.Gets the value of thetransportProtocolClassproperty.@NotNull StringgetUser()Gets the value of theuserproperty.voidSets the value of thedebugproperty.voidsetDescription(String description) Sets the value of thedescriptionproperty.voidsetEnabled(String enabled) Sets the value of theenabledproperty.voidSets the value of thefromproperty.voidSets the value of thehostproperty.voidsetStoreProtocol(String protocol) Sets the value of thestoreProtocolproperty.voidsetStoreProtocolClass(String protocolClass) Sets the value of thestoreProtocolClassproperty.voidsetTransportProtocol(String protocol) Sets the value of thetransportProtocolproperty.voidsetTransportProtocolClass(String protocolClass) Sets the value of thetransportProtocolClassproperty.voidSets the value of theuserproperty.Methods inherited from interface com.sun.enterprise.config.serverbeans.BindableResource
getJndiName, setJndiNameMethods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParentMethods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removePropertyMethods inherited from interface com.sun.enterprise.config.serverbeans.Resource
getDeploymentOrder, getObjectType, setDeploymentOrder, setObjectType
-
Method Details
-
getStoreProtocol
String getStoreProtocol()Gets the value of thestoreProtocolproperty.- Returns:
- possible object is
String
-
setStoreProtocol
Sets the value of thestoreProtocolproperty.- Parameters:
protocol- allowed object isString- Throws:
PropertyVetoException
-
getStoreProtocolClass
Gets the value of thestoreProtocolClassproperty.- Returns:
- possible object is
String
-
setStoreProtocolClass
Sets the value of thestoreProtocolClassproperty.- Parameters:
protocolClass- allowed object isString- Throws:
PropertyVetoException
-
getTransportProtocol
String getTransportProtocol()Gets the value of thetransportProtocolproperty.- Returns:
- possible object is
String
-
setTransportProtocol
Sets the value of thetransportProtocolproperty.- Parameters:
protocol- allowed object isString- Throws:
PropertyVetoException
-
getTransportProtocolClass
Gets the value of thetransportProtocolClassproperty.- Returns:
- possible object is
String
-
setTransportProtocolClass
Sets the value of thetransportProtocolClassproperty.- Parameters:
protocolClass- allowed object isString- Throws:
PropertyVetoException
-
getHost
Gets the value of thehostproperty.IP V6 or V4 address or hostname
- Returns:
- possible object is
String
-
setHost
Sets the value of thehostproperty.- Parameters:
host- allowed object isString- Throws:
PropertyVetoException
-
getUser
Gets the value of theuserproperty.- Returns:
- possible object is
String
-
setUser
Sets the value of theuserproperty.- Parameters:
user- allowed object isString- Throws:
PropertyVetoException
-
getFrom
Gets the value of thefromproperty.- Returns:
- possible object is
String
-
setFrom
Sets the value of thefromproperty.- Parameters:
from- allowed object isString- Throws:
PropertyVetoException
-
getDebug
String getDebug()Gets the value of thedebugproperty.- Returns:
- possible object is
String
-
setDebug
Sets the value of thedebugproperty.- Parameters:
debug- allowed object isString- Throws:
PropertyVetoException
-
getEnabled
String getEnabled()Gets the value of theenabledproperty.- Specified by:
getEnabledin interfacecom.sun.enterprise.config.serverbeans.BindableResource- Returns:
- possible object is
String
-
setEnabled
Sets the value of theenabledproperty.- Specified by:
setEnabledin interfacecom.sun.enterprise.config.serverbeans.BindableResource- Parameters:
enabled- allowed object isString- Throws:
PropertyVetoException
-
getDescription
String getDescription()Gets the value of thedescriptionproperty.- Returns:
- possible object is
String
-
setDescription
Sets the value of thedescriptionproperty.- Parameters:
description- allowed object isString- Throws:
PropertyVetoException
-
getProperty
@ToDo(priority=IMPORTANT, details="Provide PropertyDesc for legal props") @PropertiesDesc(props={}) List<org.jvnet.hk2.config.types.Property> getProperty()Properties as perPropertyBag- Specified by:
getPropertyin interfaceorg.jvnet.hk2.config.types.PropertyBag
-
getIdentity
- Specified by:
getIdentityin interfacecom.sun.enterprise.config.serverbeans.BindableResource- Specified by:
getIdentityin interfacecom.sun.enterprise.config.serverbeans.Resource
-