ch.odi.justblog.discovery
Class Rsd

java.lang.Object
  extended bych.odi.justblog.discovery.Rsd

public class Rsd
extends java.lang.Object

RSD is Really Simple Discoverability 1.0 as defined by http://archipelago.phrasewise.com/rsd. This class is responsible for reading a RSD file and providing it's information to the application.

Author:
oglueck

Constructor Summary
Rsd(java.io.InputStream xml, java.net.URL context)
          Reads and parses an RSD file.
 
Method Summary
 RsdApi[] getApis()
           
static java.lang.String getVersion()
          Returns the supported version of the RSD specs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rsd

public Rsd(java.io.InputStream xml,
           java.net.URL context)
    throws InvalidDocumentException
Reads and parses an RSD file.

Parameters:
xml - the RSD data
context - the context URL used to resolve relative URLs. This should be the URL of the RSD file usually.
Throws:
InvalidDocumentException
Method Detail

getVersion

public static java.lang.String getVersion()
Returns the supported version of the RSD specs.

Returns:
version string

getApis

public RsdApi[] getApis()


Copyright © 2005 Ortwin Glück. All Rights Reserved.