|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 java.lang.String |
editBaseuri
|
protected TopicMapStoreFactoryIF |
storefactory
|
protected java.lang.String |
tmid
|
protected java.lang.String |
viewBaseuri
|
static java.lang.String |
VIRTUAL_URN
|
Constructor Summary | |
---|---|
RemoteTopicIndex(java.lang.String editBaseuri,
java.lang.String viewBaseuri)
|
|
RemoteTopicIndex(java.lang.String editBaseuri,
java.lang.String viewBaseuri,
TopicMapStoreFactoryIF factory)
|
|
RemoteTopicIndex(java.lang.String editBaseuri,
java.lang.String viewBaseuri,
TopicMapStoreFactoryIF factory,
java.lang.String tmid)
|
Method Summary | |
---|---|
void |
close()
Lets go of any underlying resources used by the index. |
protected org.xml.sax.InputSource |
getInputSource(java.lang.String method,
java.lang.String params,
boolean compress)
|
java.util.Collection |
getTopicPages(java.util.Collection indicators,
java.util.Collection sources,
java.util.Collection subjects)
Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments. |
TopicPages |
getTopicPages2(java.util.Collection indicators,
java.util.Collection sources,
java.util.Collection subjects)
Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments. |
java.util.Collection |
getTopics(java.util.Collection indicators,
java.util.Collection sources,
java.util.Collection subjects)
Returns all topics the index knows about whose identity matches one the of the locators passed as arguments. |
static boolean |
isVirtualReference(java.lang.String address)
|
void |
loadAssociationTypes(TopicMapIF topicmap)
|
void |
loadQuery(TopicMapIF topicmap,
java.lang.String query)
|
java.util.Collection |
loadRelatedTopics(java.util.Collection indicators,
java.util.Collection sources,
java.util.Collection subjects,
boolean two_steps)
|
void |
loadTopicTypes(TopicMapIF topicmap)
|
static java.lang.String |
resolveVirtualReference(java.lang.String address,
java.lang.String tmid)
|
void |
setStoreFactory(TopicMapStoreFactoryIF storefactory)
|
static java.lang.String |
sourceTopicMapFromVirtualReference(java.lang.String address)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String editBaseuri
protected java.lang.String viewBaseuri
protected TopicMapStoreFactoryIF storefactory
protected java.lang.String tmid
public static final java.lang.String VIRTUAL_URN
Constructor Detail |
---|
public RemoteTopicIndex(java.lang.String editBaseuri, java.lang.String viewBaseuri)
public RemoteTopicIndex(java.lang.String editBaseuri, java.lang.String viewBaseuri, TopicMapStoreFactoryIF factory)
public RemoteTopicIndex(java.lang.String editBaseuri, java.lang.String viewBaseuri, TopicMapStoreFactoryIF factory, java.lang.String tmid)
Method Detail |
---|
public java.util.Collection getTopics(java.util.Collection indicators, java.util.Collection sources, java.util.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 java.util.Collection loadRelatedTopics(java.util.Collection indicators, java.util.Collection sources, java.util.Collection subjects, boolean two_steps)
loadRelatedTopics
in interface TopicIndexIF
public java.util.Collection getTopicPages(java.util.Collection indicators, java.util.Collection sources, java.util.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(java.util.Collection indicators, java.util.Collection sources, java.util.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 java.io.IOException
java.io.IOException
public void loadTopicTypes(TopicMapIF topicmap) throws java.io.IOException
java.io.IOException
public void loadQuery(TopicMapIF topicmap, java.lang.String query) throws java.io.IOException
java.io.IOException
public void close()
TopicIndexIF
close
in interface TopicIndexIF
public void setStoreFactory(TopicMapStoreFactoryIF storefactory)
protected org.xml.sax.InputSource getInputSource(java.lang.String method, java.lang.String params, boolean compress) throws java.io.IOException
java.io.IOException
public static boolean isVirtualReference(java.lang.String address)
public static java.lang.String resolveVirtualReference(java.lang.String address, java.lang.String tmid)
public static java.lang.String sourceTopicMapFromVirtualReference(java.lang.String address)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |