|
SilverStream Application Server 3.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.sssw.srv.mail.AgoRFC822HeaderField
|
+--com.sssw.srv.mail.AgoMIMEHeaderField
This class adds the ability to specify/access header field parameters, as defined in MIME. It stores the MIME header fields. A header field has a name, a value, and an optional set of parameters.
| Constructor Summary | |
AgoMIMEHeaderField(String fieldname,
String fieldvalue)
The constructor for the AgoMIMEHeaderField class. |
|
| Method Summary | |
String |
getParameter(String arrtibute)
Returns the value of a parameter. |
void |
setParameter(String arrtibute,
String value)
Sets the value of a named parameter. |
String |
value()
Return the value of the field |
void |
write(OutputStream outputstream)
Writes the header field to the specified output stream in a format suitable for a mail header |
| Methods inherited from class com.sssw.srv.mail.AgoRFC822HeaderField |
getName,
setName |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public AgoMIMEHeaderField(String fieldname,
String fieldvalue)
fieldname - the name of the header field.fieldvalue - the value of the named header field.
AgoMIMEHeaderField hField = new AgoMIMEHeaderField(fieldNameString,fieldValueString);
| Method Detail |
public String value()
public void setParameter(String arrtibute,
String value)
attribute - the name of the parameter.value - the value to set the parameter.The name of the parameter must be a valid MIME token or a quoted MIME String.
hField.setParameter(attributeString,valueString);
AgoMIMEHeaderField.getParameter( String arrtibute )public String getParameter(String arrtibute)
attribute - the name of the parameter to be obtained.
String param;
param = hField.getParameter(attributeString);
AgoMIMEHeaderField.setParameter( String arrtibute, String value )
public void write(OutputStream outputstream)
throws IOException
outputStream - the output stream to write to.
Overrides AgoRFC822HeaderField.write( OutputStream outputstream ).
hField.write(someOutputStream);
|
SilverStream Application Server 3.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||