Problem : Usage of Message.getAllHeaders
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Wolverine_X
Posted On:   Tuesday, February 25, 2003 02:55 AM

When i use Message.getAllHeaders() to retrieve all the headers associated with a message and cast it String,i get ClassCastException and If i print it as it is ,then same line is printed Header count times ? Why and how can i solve it ?

Re: Problem : Usage of Message.getAllHeaders

Posted By:   Benoit_Quintin  
Posted On:   Tuesday, February 25, 2003 10:38 AM

From the _published_ API :

java.util.Enumeration getAllHeaders()
Return all the headers from this part as an Enumeration of Header objects.

ever tried casting an Enumeration to a String, well, you just did!
About | Sitemap | Contact