문제

On a JavaMail POP3Message there's a method to get all header lines which returns an Enumeration of name and value. I know I can traverse this and check if a specific header name exists but am thinking there may be a better way to do that but can't find it. Is there any faster/better alternative solution than having to traverse everything from Jruby?

도움이 되었습니까?

해결책

If you know which header you're looking for, use one of the MimeMessage getHeader methods.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top