net.ontopia.topicmaps.nav2.portlets.pojos
Class TMRAP

java.lang.Object
  extended by 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
 class TMRAP.Page
           
 class TMRAP.Server
           
 class TMRAP.TopicMap
           
 
Constructor Summary
TMRAP(Collection servers)
          PUBLIC: Creates the component and configures it with a set of servers to query.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)


Copyright © 2000-2012 Ontopia.