org.ogf.saga.url
Class URLFactory

java.lang.Object
  extended by org.ogf.saga.url.URLFactory

public abstract class URLFactory
extends Object

Factory for URLs.


Constructor Summary
URLFactory()
           
 
Method Summary
static URL createURL(String url)
          Creates an URL object from the specified string.
static URL createURL(String sagaFactoryClassname, String url)
          Creates an URL object from the specified string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLFactory

public URLFactory()
Method Detail

createURL

public static URL createURL(String url)
                     throws BadParameterException,
                            NoSuccessException
Creates an URL object from the specified string.

Parameters:
url - the URL as a string.
Throws:
BadParameterException - is thrown when there is a syntax error in the parameter.
NoSuccessException - is thrown if the implementation cannot create valid default values based on the available information.

createURL

public static URL createURL(String sagaFactoryClassname,
                            String url)
                     throws BadParameterException,
                            NoSuccessException
Creates an URL object from the specified string.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
url - the URL as a string.
Throws:
BadParameterException - is thrown when there is a syntax error in the parameter.
NoSuccessException - is thrown if the implementation cannot create valid default values based on the available information.


The SAGA Java language bindings, version-1.1.1