ch.odi.justblog.discovery
Class Discovery

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

public class Discovery
extends java.lang.Object

Discovers the weblog API from the meta information on the Blog.

Author:
oglueck

Field Summary
static java.lang.String RSD_MIME_TYPE
           
 
Constructor Summary
Discovery(java.net.URL url)
          Creates a new discovery object for the specified URL.
 
Method Summary
 RsdApi autoSelect()
          Automatically selects an API that is supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RSD_MIME_TYPE

public static final java.lang.String RSD_MIME_TYPE
See Also:
Constant Field Values
Constructor Detail

Discovery

public Discovery(java.net.URL url)
          throws DiscoveryException
Creates a new discovery object for the specified URL. The URL must point to a HTML document that contains a link element of type application/rsd+xml.

Throws:
DiscoveryException
Method Detail

autoSelect

public RsdApi autoSelect()
Automatically selects an API that is supported. Will try the preferred ones first.

Returns:
null if no supported API is found


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