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.
protected abstract  URL doCreateURL(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLFactory

public URLFactory()
Method Detail

doCreateURL

protected abstract URL doCreateURL(String url)
                            throws BadParameterException,
                                   NoSuccessException
Throws:
BadParameterException
NoSuccessException

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.


Copyright © 2014 Open Grid Forum. All rights reserved.