org.mailster.message
Interface SmtpHeadersInterface

All Known Implementing Classes:
SmtpHeaders, SmtpInternetHeaders

public interface SmtpHeadersInterface

---
Mailster (C) 2007-2009 De Oliveira Edouard

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

See  Mailster Web Site
---

SmtpHeadersInterface.java - Enter your Comment HERE.

Version:
$Revision: 1.1 $, $Date: 2009/01/30 01:32:31 $
Author:
Edouard De Oliveira

Field Summary
static java.lang.String BOUNDARY_PARAMETER
           
static java.lang.String CC
           
static java.lang.String CHARSET_PARAMETER
           
static java.lang.String CONTENT_DISPOSITION
           
static java.lang.String CONTENT_ID
           
static java.lang.String CONTENT_LENGTH
           
static java.lang.String CONTENT_MD5
           
static java.lang.String CONTENT_TRANSFER_ENCODING
           
static java.lang.String CONTENT_TYPE
           
static java.lang.String DATE
           
static java.lang.String ERRORS_TO
           
static java.lang.String FILENAME_PARAMETER
           
static java.lang.String FORMAT_PARAMETER
           
static java.lang.String FROM
           
static java.lang.String IN_REPLY_TO
           
static java.lang.String MESSAGE_ID
           
static java.lang.String MIME_VERSION
           
static java.lang.String RECEIVED
           
static java.lang.String REPLY_TO
           
static java.lang.String RESENT_DATE
           
static java.lang.String RESENT_FROM
           
static java.lang.String RESENT_MESSAGE_ID
           
static java.lang.String RETURN_PATH
           
static java.lang.String STATUS
           
static java.lang.String SUBJECT
           
static java.lang.String TEXT_HTML_CONTENT_TYPE
           
static java.lang.String TEXT_PLAIN_CONTENT_TYPE
           
static java.lang.String TO
           
 
Method Summary
 void addHeader(java.lang.String name, java.lang.String value)
          Adds a header.
 void addHeaderLine(java.lang.String line)
          Adds a header.
 java.lang.String getHeaderValue(java.lang.String name)
          Get the first value associated with a given header name.
 java.lang.String[] getHeaderValues(java.lang.String name)
          Get the value(s) associated with the given header name.
 java.lang.String toString()
          Get the string representation of the headers
 

Field Detail

TO

static final java.lang.String TO
See Also:
Constant Field Values

DATE

static final java.lang.String DATE
See Also:
Constant Field Values

SUBJECT

static final java.lang.String SUBJECT
See Also:
Constant Field Values

CONTENT_TYPE

static final java.lang.String CONTENT_TYPE
See Also:
Constant Field Values

RETURN_PATH

static final java.lang.String RETURN_PATH
See Also:
Constant Field Values

RECEIVED

static final java.lang.String RECEIVED
See Also:
Constant Field Values

MESSAGE_ID

static final java.lang.String MESSAGE_ID
See Also:
Constant Field Values

RESENT_DATE

static final java.lang.String RESENT_DATE
See Also:
Constant Field Values

RESENT_FROM

static final java.lang.String RESENT_FROM
See Also:
Constant Field Values

FROM

static final java.lang.String FROM
See Also:
Constant Field Values

REPLY_TO

static final java.lang.String REPLY_TO
See Also:
Constant Field Values

CC

static final java.lang.String CC
See Also:
Constant Field Values

IN_REPLY_TO

static final java.lang.String IN_REPLY_TO
See Also:
Constant Field Values

RESENT_MESSAGE_ID

static final java.lang.String RESENT_MESSAGE_ID
See Also:
Constant Field Values

ERRORS_TO

static final java.lang.String ERRORS_TO
See Also:
Constant Field Values

MIME_VERSION

static final java.lang.String MIME_VERSION
See Also:
Constant Field Values

CONTENT_TRANSFER_ENCODING

static final java.lang.String CONTENT_TRANSFER_ENCODING
See Also:
Constant Field Values

CONTENT_MD5

static final java.lang.String CONTENT_MD5
See Also:
Constant Field Values

CONTENT_LENGTH

static final java.lang.String CONTENT_LENGTH
See Also:
Constant Field Values

STATUS

static final java.lang.String STATUS
See Also:
Constant Field Values

CONTENT_DISPOSITION

static final java.lang.String CONTENT_DISPOSITION
See Also:
Constant Field Values

CONTENT_ID

static final java.lang.String CONTENT_ID
See Also:
Constant Field Values

FILENAME_PARAMETER

static final java.lang.String FILENAME_PARAMETER
See Also:
Constant Field Values

FORMAT_PARAMETER

static final java.lang.String FORMAT_PARAMETER
See Also:
Constant Field Values

CHARSET_PARAMETER

static final java.lang.String CHARSET_PARAMETER
See Also:
Constant Field Values

BOUNDARY_PARAMETER

static final java.lang.String BOUNDARY_PARAMETER
See Also:
Constant Field Values

TEXT_HTML_CONTENT_TYPE

static final java.lang.String TEXT_HTML_CONTENT_TYPE
See Also:
Constant Field Values

TEXT_PLAIN_CONTENT_TYPE

static final java.lang.String TEXT_PLAIN_CONTENT_TYPE
See Also:
Constant Field Values
Method Detail

toString

java.lang.String toString()
Get the string representation of the headers

Overrides:
toString in class java.lang.Object
Returns:
string representation of the headers

getHeaderValues

java.lang.String[] getHeaderValues(java.lang.String name)
Get the value(s) associated with the given header name.

Parameters:
name - header name
Returns:
value(s) associated with the header name

getHeaderValue

java.lang.String getHeaderValue(java.lang.String name)
Get the first value associated with a given header name.

Parameters:
name - header name
Returns:
first value associated with the header name

addHeader

void addHeader(java.lang.String name,
               java.lang.String value)
Adds a header.

Parameters:
name - header name
value - header value

addHeaderLine

void addHeaderLine(java.lang.String line)
Adds a header.

Parameters:
line - parsed line