Class TMRAP
- java.lang.Object
-
- net.ontopia.topicmaps.nav2.portlets.pojos.TMRAP
-
public class TMRAP extends Object
PUBLIC: A component for including links to relevant pages from other web sites via TMRAP.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TMRAP.Page
class
TMRAP.Server
class
TMRAP.TopicMap
-
Constructor Summary
Constructors Constructor Description TMRAP(Collection servers)
PUBLIC: Creates the component and configures it with a set of servers to query.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection
getAllPages(Collection model)
Map
getPageMap(Collection model)
Collection
query(Collection psis)
PUBLIC: Sends a query, returning a model of the result.Collection
query(TopicIF topic)
PUBLIC: Sends a query, returning a model of the result.
-
-
-
Constructor Detail
-
TMRAP
public TMRAP(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
-
-
Method Detail
-
query
public Collection query(TopicIF topic) throws IOException, InvalidQueryException
PUBLIC: Sends a query, returning a model of the result.- Throws:
IOException
InvalidQueryException
-
query
public Collection query(Collection psis) throws 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:
IOException
InvalidQueryException
-
getAllPages
public Collection getAllPages(Collection model)
-
getPageMap
public Map getPageMap(Collection model)
-
-