net.ontopia.topicmaps.nav2.portlets.pojos
Class TMRAP
java.lang.Object
net.ontopia.topicmaps.nav2.portlets.pojos.TMRAP
public class TMRAP
- extends java.lang.Object
PUBLIC: A component for including links to relevant pages from
other web sites via TMRAP.
Constructor Summary |
TMRAP(java.util.Collection servers)
PUBLIC: Creates the component and configures it with a set of
servers to query. |
Method Summary |
java.util.Collection |
getAllPages(java.util.Collection model)
|
java.util.Map |
getPageMap(java.util.Collection model)
|
java.util.Collection |
query(java.util.Collection psis)
PUBLIC: Sends a query, returning a model of the result. |
java.util.Collection |
query(TopicIF topic)
PUBLIC: Sends a query, returning a model of the result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TMRAP
public TMRAP(java.util.Collection servers)
- PUBLIC: Creates the component and configures it with a set of
servers to query.
- Parameters:
servers
- a collection of TMRAP endpoint URIs as strings
query
public java.util.Collection query(TopicIF topic)
throws java.io.IOException,
InvalidQueryException
- PUBLIC: Sends a query, returning a model of the result.
- Throws:
java.io.IOException
InvalidQueryException
query
public java.util.Collection query(java.util.Collection psis)
throws java.io.IOException,
InvalidQueryException
- PUBLIC: Sends a query, returning a model of the result.
- Parameters:
psis
- a collection of PSIs as strings
- Returns:
- a list of Server objects
- Throws:
java.io.IOException
InvalidQueryException
getAllPages
public java.util.Collection getAllPages(java.util.Collection model)
getPageMap
public java.util.Map getPageMap(java.util.Collection model)
Copyright © 2000-2012 Ontopia.