|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IServer
This interface should be implemented for new (and custom) online services. The IServer class holds all information for a specific server such as its supported search modes and regions and the external location (URL).
Method Summary | |
---|---|
int |
getModule()
The module to which this server belongs. |
java.lang.String |
getName()
Name of the server (must be unique) |
java.util.Collection<Region> |
getRegions()
The regions belonging to this server. |
java.util.Collection<SearchMode> |
getSearchModes()
The search modes belonging to this server. |
SearchTask |
getSearchTask(IOnlineSearchClient listener,
SearchMode mode,
Region region,
java.lang.String query,
DcObject client)
Retrieves an instance of the search task. |
java.util.Collection<Setting> |
getSettings()
Specific settings for this server. |
java.lang.String |
getUrl()
The URL of the main server. |
boolean |
isFullModeOnly()
|
Method Detail |
---|
int getModule()
DcModules
,
DcModule
java.util.Collection<Region> getRegions()
java.util.Collection<SearchMode> getSearchModes()
java.lang.String getName()
java.util.Collection<Setting> getSettings()
boolean isFullModeOnly()
java.lang.String getUrl()
SearchTask getSearchTask(IOnlineSearchClient listener, SearchMode mode, Region region, java.lang.String query, DcObject client)
listener
- The class which requested the search. This class will be informed of
errors and events.mode
- The selected search mode.region
- The selected region.query
- The query as specified by the user.SearchTask
,
SearchMode
,
Region
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |