|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgd.BaseJGDQuery
public abstract class BaseJGDQuery
Field Summary | |
---|---|
protected java.lang.String |
desktopURL
Base URL for GDS access |
protected java.lang.String |
fileType
File type for GDS. |
static int |
FLAG_FILTER_BY_ALL
Flags constants : filter by all |
static int |
FLAG_FILTER_BY_CHATS
Flags constants : filter by chats |
static int |
FLAG_FILTER_BY_FILES
Flags constants : filter by files |
static int |
FLAG_FILTER_BY_MAILS
Flags constants : filter by mails |
static int |
FLAG_FILTER_BY_WEB
Flags constants : filter by web |
static int |
FLAG_SORTED_BY_DATE
Flags constants : sorted by date (default - if not given) |
static int |
FLAG_SORTED_BY_RELEVANCE
Flags constants : sorted by relevance |
protected java.lang.Integer |
flags
flags used in GDS for filtering search results. |
protected java.lang.Integer |
num
maximum number of results you'd like returned, to your query. |
private static int |
PAGE_SIZE
|
protected java.lang.String |
queryString
Query string |
protected Results |
results
Last results |
protected java.lang.Integer |
start
position you want the results to start from. |
Constructor Summary | |
---|---|
BaseJGDQuery(java.lang.String queryString)
Constructor of a query |
Method Summary | |
---|---|
private void |
addFlag(int flag)
Add a binary flag to the flags of query |
abstract IJGDResults |
execute()
|
abstract java.lang.String |
executeXML()
|
abstract java.lang.String |
getDesktopURL()
|
java.lang.String |
getFileType()
File type for GDS. |
java.lang.Integer |
getFlags()
flags used in GDS for filtering search results. |
Results |
getLastResult()
Last results. |
java.lang.Integer |
getNum()
maximum number of results you'd like returned, to your query. |
java.lang.String |
getQueryString()
Query string |
java.lang.Integer |
getStart()
position you want the results to start from. |
abstract java.lang.String |
getURL()
|
private void |
removeFilterFlags()
Remove all filter flags |
private void |
removeFlag(int flag)
Remove a binary flag from the flags of query |
protected void |
resetFlags()
Reset a initial flags value |
abstract void |
setDesktopURL(java.lang.String desktopURL)
|
void |
setFileType(java.lang.String fileType)
File type for GDS. |
void |
setFilterByAll()
Filter by all, this is, reset any filter. |
void |
setFilterByChats()
Filter by chats |
void |
setFilterByFiles()
Filter by files |
void |
setFilterByMails()
Filter by mails |
void |
setFilterByWeb()
Filter by web history |
void |
setFlags(java.lang.Integer flags)
flags used in GDS for filtering search results. |
void |
setNum(java.lang.Integer integer)
maximum number of results you'd like returned, to your query. |
void |
setQueryString(java.lang.String string)
Query string |
void |
setSortedByDate()
Sorted By Date |
void |
setSortedByRelevance()
Sorted By Relevance |
void |
setStart(java.lang.Integer integer)
position you want the results to start from. |
abstract void |
writeLastResultInXML(java.io.OutputStream o)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FLAG_SORTED_BY_DATE
public static final int FLAG_SORTED_BY_RELEVANCE
public static final int FLAG_FILTER_BY_ALL
public static final int FLAG_FILTER_BY_WEB
public static final int FLAG_FILTER_BY_FILES
public static final int FLAG_FILTER_BY_CHATS
public static final int FLAG_FILTER_BY_MAILS
private static final int PAGE_SIZE
protected java.lang.String queryString
protected java.lang.Integer num
protected java.lang.Integer start
protected java.lang.Integer flags
protected Results results
protected java.lang.String desktopURL
protected java.lang.String fileType
Constructor Detail |
---|
public BaseJGDQuery(java.lang.String queryString) throws JGDError
queryString
- Query string for search
JGDError
- Error in init queryMethod Detail |
---|
public abstract void setDesktopURL(java.lang.String desktopURL)
public abstract java.lang.String getDesktopURL()
public abstract java.lang.String executeXML() throws JGDError
JGDError
public abstract void writeLastResultInXML(java.io.OutputStream o) throws JGDError
JGDError
public abstract java.lang.String getURL() throws JGDError
JGDError
public abstract IJGDResults execute() throws JGDError
execute
in interface IJGDQuery
JGDError
public java.lang.Integer getNum()
public java.lang.String getQueryString()
public java.lang.Integer getStart()
public void setNum(java.lang.Integer integer)
IJGDQuery
setNum
in interface IJGDQuery
public void setQueryString(java.lang.String string)
IJGDQuery
setQueryString
in interface IJGDQuery
public void setStart(java.lang.Integer integer)
IJGDQuery
setStart
in interface IJGDQuery
public void setFlags(java.lang.Integer flags)
public java.lang.Integer getFlags()
public Results getLastResult()
public java.lang.String getFileType()
public void setFileType(java.lang.String fileType)
public void setSortedByRelevance()
public void setSortedByDate()
public void setFilterByAll()
public void setFilterByWeb()
public void setFilterByFiles()
public void setFilterByChats()
public void setFilterByMails()
private void addFlag(int flag)
flag
- Binary flagprivate void removeFlag(int flag)
flag
- Binary flagprotected void resetFlags()
private void removeFilterFlags()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |