public class DayRangeMailFetcher extends DateRangeMailFetcher
AbstractMailFetcher.Process
FOLDER_INBOX, FOLDER_SENT
Constructor and Description |
---|
DayRangeMailFetcher(java.lang.String mailHost,
java.lang.String userId,
java.lang.String password,
java.util.Properties mailProps,
int fetchStartDayBefore,
int fetchEndDayBefore)
DayRangeMailFetcher 객체 생성.
|
Modifier and Type | Method and Description |
---|---|
int |
getFetchEndDayBefore()
메일 가져올 현재일 기준 마지막 전일 수를 얻는다.
|
int |
getFetchStartDayBefore()
메일 가져올 현재일 기준 시작 전일 수를 얻는다.
|
protected void |
prepareFetching()
메일을 가져오기 전에 가져올 날짜 범위를 조절해야 한다.
|
void |
setFetchEndDayBefore(int fetchEndDayBefore)
메일 가져올 현재일 기준 마지막 전일 수를 설정한다.
|
void |
setFetchStartDayBefore(int fetchStartDayBefore)
메일 가져올 현재일 기준 시작 전일 수를 설정한다.
|
getFetchEndDate, getFetchStartDate, isTarget, setFetchEndDate, setFetchStartDate
fetch, fetch, finalizingFetching, setDebug
public DayRangeMailFetcher(java.lang.String mailHost, java.lang.String userId, java.lang.String password, java.util.Properties mailProps, int fetchStartDayBefore, int fetchEndDayBefore)
mailHost
- 연결할 메일 주소.userId
- 메일 계정 ID.password
- 메일 계정 비멸번호.mailProps
- 메일 접속을 위한 속성.fetchStartDayBefore
- 메일을 가져올 현재일 기준 전 시작 일 수. 예) 3일전부터이면 3.fetchEndDayBefore
- 메일을 가져올 현재일 기준 전 마지막 일 수. 예) 1일전부터이면 1.public int getFetchStartDayBefore()
public void setFetchStartDayBefore(int fetchStartDayBefore)
fetchStartDayBefore
- 설정할 메일 가져올 현재일 기준 시작 전일 수.public int getFetchEndDayBefore()
public void setFetchEndDayBefore(int fetchEndDayBefore)
fetchStartDayBefore
- 설정할 메일 가져올 현재일 기준 마지막 전일 수.protected void prepareFetching()
prepareFetching
in class AbstractMailFetcher
AbstractMailFetcher.prepareFetching()