|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.topicmaps.utils.tmrap.RemoteTopicIndex
public class RemoteTopicIndex
EXPERIMENTAL: An implementation that looks up topics on remote servers using the TM RAP protocol.
Field Summary | |
---|---|
protected String |
editBaseuri
|
protected TopicMapStoreFactoryIF |
storefactory
|
protected String |
tmid
|
protected String |
viewBaseuri
|
static String |
VIRTUAL_URN
|
Constructor Summary | |
---|---|
RemoteTopicIndex(String editBaseuri,
String viewBaseuri)
|
|
RemoteTopicIndex(String editBaseuri,
String viewBaseuri,
TopicMapStoreFactoryIF factory)
|
|
RemoteTopicIndex(String editBaseuri,
String viewBaseuri,
TopicMapStoreFactoryIF factory,
String tmid)
|
Method Summary | |
---|---|
void |
close()
Lets go of any underlying resources used by the index. |
protected InputSource |
getInputSource(String method,
String params,
boolean compress)
|
Collection |
getTopicPages(Collection indicators,
Collection sources,
Collection subjects)
Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments. |
TopicPages |
getTopicPages2(Collection indicators,
Collection sources,
Collection subjects)
Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments. |
Collection |
getTopics(Collection indicators,
Collection sources,
Collection subjects)
Returns all topics the index knows about whose identity matches one the of the locators passed as arguments. |
static boolean |
isVirtualReference(String address)
|
void |
loadAssociationTypes(TopicMapIF topicmap)
|
void |
loadQuery(TopicMapIF topicmap,
String query)
|
Collection |
loadRelatedTopics(Collection indicators,
Collection sources,
Collection subjects,
boolean two_steps)
|
void |
loadTopicTypes(TopicMapIF topicmap)
|
static String |
resolveVirtualReference(String address,
String tmid)
|
void |
setStoreFactory(TopicMapStoreFactoryIF storefactory)
|
static String |
sourceTopicMapFromVirtualReference(String address)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String editBaseuri
protected String viewBaseuri
protected TopicMapStoreFactoryIF storefactory
protected String tmid
public static final String VIRTUAL_URN
Constructor Detail |
---|
public RemoteTopicIndex(String editBaseuri, String viewBaseuri)
public RemoteTopicIndex(String editBaseuri, String viewBaseuri, TopicMapStoreFactoryIF factory)
public RemoteTopicIndex(String editBaseuri, String viewBaseuri, TopicMapStoreFactoryIF factory, String tmid)
Method Detail |
---|
public Collection getTopics(Collection indicators, Collection sources, Collection subjects)
TopicIndexIF
getTopics
in interface TopicIndexIF
indicators
- A collection of subject identifiers as
LocatorIF objects.sources
- A collection of source locators as LocatorIF objects.subjects
- A colleciton of subject locators as LocatorIF objects.
public Collection loadRelatedTopics(Collection indicators, Collection sources, Collection subjects, boolean two_steps)
loadRelatedTopics
in interface TopicIndexIF
public Collection getTopicPages(Collection indicators, Collection sources, Collection subjects)
TopicIndexIF
getTopicPages
in interface TopicIndexIF
indicators
- A collection of subject identifiers as
LocatorIF objects.sources
- A collection of source locators as LocatorIF objects.subjects
- A colleciton of subject locators as LocatorIF objects.
public TopicPages getTopicPages2(Collection indicators, Collection sources, Collection subjects)
TopicIndexIF
getTopicPages2
in interface TopicIndexIF
indicators
- A collection of subject identifiers as
LocatorIF objects.sources
- A collection of source locators as LocatorIF objects.subjects
- A colleciton of subject locators as LocatorIF objects.
public void loadAssociationTypes(TopicMapIF topicmap) throws IOException
IOException
public void loadTopicTypes(TopicMapIF topicmap) throws IOException
IOException
public void loadQuery(TopicMapIF topicmap, String query) throws IOException
IOException
public void close()
TopicIndexIF
close
in interface TopicIndexIF
public void setStoreFactory(TopicMapStoreFactoryIF storefactory)
protected InputSource getInputSource(String method, String params, boolean compress) throws IOException
IOException
public static boolean isVirtualReference(String address)
public static String resolveVirtualReference(String address, String tmid)
public static String sourceTopicMapFromVirtualReference(String address)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |