G M O R S T

G

getAddress() - Method in class org.apache.servlet.mail.MailAddress
Returns the address with the format: mailbox@host
getContentLength() - Method in interface org.apache.servlet.mail.MailServletRequest
Returns the length of the body of the posted mail message without headers and additional information.
getDate() - Method in class org.apache.servlet.mail.MailHeaders
Returns the date associated with the mail message using standard date format.
getDate(String) - Method in class org.apache.servlet.mail.MailHeaders
Returns the date associated with the mail message using given date format.
getDescription() - Method in class org.apache.servlet.mail.MailAddress
 
getHeader(String) - Method in class org.apache.servlet.mail.MailHeaders
Get the header value associated with the given name.
getHeaderNames() - Method in class org.apache.servlet.mail.MailHeaders
Returns the list of all header names.
getHeaders() - Method in interface org.apache.servlet.mail.MailServletRequest
Returns an object encapsulating all the mail headers.
getHeaderValues(String) - Method in class org.apache.servlet.mail.MailHeaders
Get the header values associated with the given name.
getHost() - Method in class org.apache.servlet.mail.MailAddress
 
getInputStream() - Method in interface org.apache.servlet.mail.MailServletRequest
Returns the binary input stream associated with the body of the message (headers are skipped)
getMailbox() - Method in class org.apache.servlet.mail.MailAddress
 
getProtocol() - Method in interface org.apache.servlet.mail.MailServletRequest
Returns the protocol used to send the mail message. (i.e.
getReader() - Method in interface org.apache.servlet.mail.MailServletRequest
Returns the reader associated with the body of the message.
getRecipients() - Method in interface org.apache.servlet.mail.MailServletRequest
Returns an array of fully qualified mail addresses of the recipients of this mail message.
getRemoteAddr() - Method in interface org.apache.servlet.mail.MailServletRequest
Returns the IP address of the host returned by getRemoteHost()
getRemoteHost() - Method in interface org.apache.servlet.mail.MailServletRequest
Returns the fully qualified name of the last host that handled the mail message (the one performing this request)
getReplyTo() - Method in class org.apache.servlet.mail.MailHeaders
Returns the mail address associated to the reply-to field.
getScheme() - Method in interface org.apache.servlet.mail.MailServletRequest
Same as getProtocol() (this is due to the fact that there is no standard URL for mail handling: should we define one?
getSender() - Method in interface org.apache.servlet.mail.MailServletRequest
Returns the fully qualified mail address of the sender.
getServletAddress() - Method in interface org.apache.servlet.mail.MailServletRequest
Returns the name of the mail address that received the mail request.
getSubject() - Method in class org.apache.servlet.mail.MailHeaders
Returns the subject of the mail message.

M

MailAddress - class org.apache.servlet.mail.MailAddress.
This class defines an internet mail address.
MailAddress(String) - Constructor for class org.apache.servlet.mail.MailAddress
Creates this object from a string with the format: description <mailbox@host>
MailAddress(String, String) - Constructor for class org.apache.servlet.mail.MailAddress
Creates this object from a description and the mail address with the format: user@host
MailAddress(String, String, String) - Constructor for class org.apache.servlet.mail.MailAddress
Creates this object from description, mailbox and host.
MailHeaders - class org.apache.servlet.mail.MailHeaders.
This interface defines a container for mail headers.
MailHeaders() - Constructor for class org.apache.servlet.mail.MailHeaders
 
MailServlet - class org.apache.servlet.mail.MailServlet.
This class is a generic servlet abstract extention that simplifies the process of writing a mail servlet.
MailServlet() - Constructor for class org.apache.servlet.mail.MailServlet
Default constructor does nothing.
MailServletRequest - interface org.apache.servlet.mail.MailServletRequest.
This interface defines the methods needed by the mail servlet to gather information about the mail message that has been posted and routed to the called mail servlet.
MailServletResponse - interface org.apache.servlet.mail.MailServletResponse.
This interface is used by the mail servlet to send the generated mail message.

O

org.apache.servlet.mail - package org.apache.servlet.mail
 

R

removeHeader(String) - Method in class org.apache.servlet.mail.MailHeaders
Removes all headers associated with the specified name.
removeHeader(String, String) - Method in class org.apache.servlet.mail.MailHeaders
Removes the header with specified name and value.

S

service(MailServletRequest, MailServletResponse) - Method in class org.apache.servlet.mail.MailServlet
This method must be implemented by the mail servlet writers.
service(ServletRequest, ServletResponse) - Method in class org.apache.servlet.mail.MailServlet
This method forwards the request and response objects to the other service method casting them to the appropriate mail equivalents.
setDate(Date) - Method in class org.apache.servlet.mail.MailHeaders
Sets the date using standard date format.
setDate(Date, String) - Method in class org.apache.servlet.mail.MailHeaders
Sets the date using given date format.
setDescription(String) - Method in class org.apache.servlet.mail.MailAddress
 
setHeader(String, String) - Method in class org.apache.servlet.mail.MailHeaders
Sets the value of the header specified by name.
setHeader(String, String, boolean) - Method in class org.apache.servlet.mail.MailHeaders
Sets the value of the header specified by name.
setHeaders(MailHeaders) - Method in interface org.apache.servlet.mail.MailServletResponse
Sets the mail headers passing a MailHeaders container.
setHost(String) - Method in class org.apache.servlet.mail.MailAddress
 
setMailbox(String) - Method in class org.apache.servlet.mail.MailAddress
 
setRecipient(MailAddress) - Method in interface org.apache.servlet.mail.MailServletResponse
Sets a single recipient of the processed mail massage.
setRecipients(MailAddress[]) - Method in interface org.apache.servlet.mail.MailServletResponse
Sets the recipients of the processed mail massage, showing the complete list of recipients in the message.
setRecipients(MailAddress[], boolean) - Method in interface org.apache.servlet.mail.MailServletResponse
Sets the recipients of the processed mail massage, indicating if the list of recipients is shown.
setReplyTo(MailAddress) - Method in class org.apache.servlet.mail.MailHeaders
Sets the mail address that should be used as the reply address.
setSender(MailAddress) - Method in interface org.apache.servlet.mail.MailServletResponse
Sets the fully qualified mail address of the sender.
setSubject(String) - Method in class org.apache.servlet.mail.MailHeaders
Sets the subject of the mail message.

T

toString() - Method in class org.apache.servlet.mail.MailHeaders
Creates a string representation of this container.
toString() - Method in class org.apache.servlet.mail.MailAddress
Returns the fully qualified address with the format: description <mailbox@host>

G M O R S T