|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkr.co.hit.live.mail.MailAttachment
public class MailAttachment
첨부파일을 명세한 클래스
EmailAttachment| Constructor Summary | |
|---|---|
MailAttachment()
기본 생성자로 메일 첨부파일 개체를 생성한다. |
|
MailAttachment(String path,
String name)
첨부될 파일의 경로와 별칭으로 첨부파일 개체를 생성한다. |
|
| Method Summary | |
|---|---|
org.apache.commons.mail.EmailAttachment |
getAttachment()
EmailAttachment 개체를 반환한다. |
String |
getCharset()
현재 설정된 문자셋을 얻어온다. default는 "EUC_KR"이다. |
String |
getDisposition()
설정된 disposition 값을 얻어온다. |
String |
getName()
설정된 첨부파일의 별칭을 얻어온다. |
String |
getPath()
설정된 첨부 파일의 절대경로를 얻어온다. |
URL |
getURL()
설정된 첨부 파일의 URL을 얻어온다. |
void |
setCharset(String charset)
문자셋을 설정한다. default는 "EUC-KR"이다. |
void |
setDisposition(String disposition)
개체의 disposition을 설정한다. |
void |
setName(String name)
첨부파일의 별칭을 설정한다. |
void |
setPath(String path)
첨부할 파일의 절대경로를 입력한다. |
void |
setURL(URL url)
첨부할 파일의 URL을 설정한다. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailAttachment()
기본 생성자로 메일 첨부파일 개체를 생성한다.
public MailAttachment(String path,
String name)
throws LiveException
첨부될 파일의 경로와 별칭으로 첨부파일 개체를 생성한다.
첨부될 파일의 경로는 c:\file\added.jpg 처름 실제 파일이름을 포함하는 full path이다
path - String 첨부될 파일의 실제 위치(파일이름 포함)name - String 첨부될 파일의 별칭
LiveException - 첨부파일 별칭의 encoding 방식이 올바르지 않을 경우 발생| Method Detail |
|---|
public void setCharset(String charset)
문자셋을 설정한다. default는 "EUC-KR"이다.
Charset 참고
charset - String 설정할 문자셋public String getCharset()
현재 설정된 문자셋을 얻어온다. default는 "EUC_KR"이다.
String 현재 설정된 문자셋public void setPath(String path)
첨부할 파일의 절대경로를 입력한다.
첨부될 파일의 경로는 c:\file\added.jpg 처름 실제 파일이름을 포함하는 full path이다
path - String 첨부될 파일의 실제 위치(파일이름 포함)public String getPath()
설정된 첨부 파일의 절대경로를 얻어온다.
String 설정된 첨부파일의 절대경로public void setURL(URL url)
첨부할 파일의 URL을 설정한다.
url - URL 첨부할 파일이 위치한 URLpublic URL getURL()
설정된 첨부 파일의 URL을 얻어온다.
URL 설정된 첨부파일의 URL
public void setName(String name)
throws LiveException
첨부파일의 별칭을 설정한다.
name - String 첨부파일의 별칭으로 받는 이에게 첨부파일이름으로 보여진다.
LiveException - 설정된 encoding 방식이 올바르지 않으면 발생한다. 기본 encoding 방식은 "EUC-KR"이다public String getName()
설정된 첨부파일의 별칭을 얻어온다.
String 설정된 첨부파일의 별칭public void setDisposition(String disposition)
개체의 disposition을 설정한다.
기본값은 javax.mail.Part.ATTACHMENT 이다
disposition - String 원하는 dispositionpublic String getDisposition()
설정된 disposition 값을 얻어온다.
기본값은 javax.mail.Part.ATTACHMENT 이다
String 설정된 disposition
public org.apache.commons.mail.EmailAttachment getAttachment()
throws LiveException
EmailAttachment 개체를 반환한다.
EmailAttachment
LiveException - MailAttachment 개체를 완전하게 설정하지 않았을 경우
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||