Article View: es.comp.lenguajes.java
Article #26628Problema con la clase Message
From: Marcos Fernandez Menendez
Date: Sun, 20 Dec 1998 00:00
Date: Sun, 20 Dec 1998 00:00
40 lines
1783 bytes
1783 bytes
en la clase Message del javax.mail, el metodo "addFrom" dice lo siguiente:
"Add these addresses to the existing "From" attribute"
y el metodo "getFrom" esto otro:
" Returns the "From" attribute. The "From" attribute contains the
identity of the
person(s) who wished this message to be sent.
In certain implementations, this may be different from the entity
that actually sent the message.
This method returns null if this attribute is not present in this
message. Returns an empty array
if this attribute is present, but contains no addresses. "
pues bien, en los atributos de la clase no hay ninguno que sea "From", y es
que lo curioso es que estos metodos son abstractos.
.- �Que se supone que debo yo (y todos los que quieran implementar un
Message) incluir en la clase no abstracta que hereda de esta un atributo
From ?
.- si es asi,�de que tipo? (String, Address ...)
.- �el nombre del atributo ha de ir con la primetra letra en mayusculas?
.- si todas estas preguntas son afirmativas se me ocurre otra... �a quien se
le ocurrio esta genial idea? �sabia algo de encapsulacion y portabilidad?
A ver si alguien esta al corriente de esto y me puede
ayudar.
Gracias
Marcos Fernandez
Technical Details
Message-ID:
<75imfd$st0$1@talia.mad.ibernet.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1116f3,82a405cd8a19aeb5,start X-Google-Attributes: gid1116f3,public From: "Marcos Fernandez Menendez" <uov02127@correo.uniovi.es> Subject: Problema con la clase Message Date: 1998/12/20 Message-ID: <75imfd$st0$1@talia.mad.ibernet.es> X-Deja-AN: 424175649 Organization: Telefonica Transmision de Datos X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: es.comp.lenguajes.java