org.gcube.common.ghn.client.proxy
Class Utils

java.lang.Object
  extended by org.gcube.common.ghn.client.proxy.Utils

public class Utils
extends Object

Library utils.

Author:
Fabio Simeoni

Constructor Summary
Utils()
           
 
Method Summary
static URL addScope(URL url)
          Rewrites a URL with the current scope.
static URL removeScope(URL url)
          Rewrites a URL without the current scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

addScope

public static URL addScope(URL url)
                    throws IllegalStateException
Rewrites a URL with the current scope.

Parameters:
url - the url
Returns:
the scoped url
Throws:
IllegalStateException - if there is no current scope

removeScope

public static URL removeScope(URL url)
                       throws IllegalStateException
Rewrites a URL without the current scope.

Parameters:
url - the url
Returns:
the unscoped url
Throws:
IllegalStateException


Copyright © 2012. All Rights Reserved.