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 classTMRAP.PageclassTMRAP.ServerclassTMRAP.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 CollectiongetAllPages(Collection model)MapgetPageMap(Collection model)Collectionquery(Collection psis)PUBLIC: Sends a query, returning a model of the result.Collectionquery(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:
IOExceptionInvalidQueryException
-
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:
IOExceptionInvalidQueryException
-
getAllPages
public Collection getAllPages(Collection model)
-
getPageMap
public Map getPageMap(Collection model)
-
-