public class SearchQuery
extends java.lang.Object
Constructor and Description |
---|
SearchQuery() |
SearchQuery(java.util.Date after) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAfter() |
java.util.Date |
getBefore() |
java.lang.String |
getBody() |
java.lang.String |
getFrom() |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
java.lang.String |
getKeyword()
to retrieve messages with a specified keyword flag set
|
java.lang.Integer |
getRangeMax() |
java.lang.Integer |
getRangeMin() |
java.lang.String |
getSubject() |
java.lang.String |
getTo() |
void |
headerMatch(java.lang.String header,
java.lang.String value) |
boolean |
isUnseenOnly() |
boolean |
isUseOr() |
void |
setAfter(java.util.Date after) |
void |
setBefore(java.util.Date before) |
void |
setBody(java.lang.String body) |
void |
setFrom(java.lang.String from) |
void |
setKeyword(java.lang.String keyword)
to retrieve messages with a specified keyword flag set
|
void |
setRangeMax(java.lang.Integer rangeMax) |
void |
setRangeMin(java.lang.Integer rangeMin) |
void |
setSubject(java.lang.String subject) |
void |
setTo(java.lang.String to) |
void |
setUnseenOnly(boolean unseenOnly) |
void |
setUseOr(boolean useOr) |
public SearchQuery()
public SearchQuery(java.util.Date after)
after
- Messages whose internal date (disregarding time and timezone)
is within or later than the specified date.public java.util.Date getAfter()
public void setAfter(java.util.Date after)
public boolean isUnseenOnly()
public void setUnseenOnly(boolean unseenOnly)
public java.lang.String getFrom()
public void setFrom(java.lang.String from)
public java.lang.String getTo()
public void setTo(java.lang.String to)
public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
public java.lang.String getBody()
public void setBody(java.lang.String body)
public boolean isUseOr()
public void setUseOr(boolean useOr)
public java.lang.Integer getRangeMin()
public void setRangeMin(java.lang.Integer rangeMin)
public java.lang.Integer getRangeMax()
public void setRangeMax(java.lang.Integer rangeMax)
public java.util.Date getBefore()
public void setBefore(java.util.Date before)
public void headerMatch(java.lang.String header, java.lang.String value)
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public java.lang.String getKeyword()
keyword
- public void setKeyword(java.lang.String keyword)
keyword
- Copyright © 2021. All Rights Reserved.