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

java.lang.Object
  extended by org.gcube.common.ghn.client.proxy.Proxy
All Implemented Interfaces:
org.gcube.common.ghn.client.ClientService

public class Proxy
extends Object
implements org.gcube.common.ghn.client.ClientService

An embedded proxy for HTTP calls.

Author:
Fabio Simeoni

Constructor Summary
Proxy()
          Creates an instance with default settings.
Proxy(ProxyConfiguration configuration)
          Creates an instance with a given configuration.
 
Method Summary
 ProxyConfiguration configuration()
          Returns the ProxyConfiguration
 boolean isRunning()
          Returns true if the proxy is running.
 CallManager manager()
          Returns the CallManager.
 String name()
           
 void start()
          Starts the proxy.
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Proxy

public Proxy()
Creates an instance with default settings.


Proxy

public Proxy(ProxyConfiguration configuration)
Creates an instance with a given configuration.

Parameters:
configuration - the configuration
Method Detail

name

public String name()
Specified by:
name in interface org.gcube.common.ghn.client.ClientService

manager

public CallManager manager()
Returns the CallManager.

Returns:
the manager.

configuration

public ProxyConfiguration configuration()
Returns the ProxyConfiguration

Returns:
the configuration

start

public void start()
           throws RuntimeException
Starts the proxy.

Specified by:
start in interface org.gcube.common.ghn.client.ClientService
Throws:
RuntimeException

isRunning

public boolean isRunning()
Returns true if the proxy is running.

Returns:
true if the proxy is running.

stop

public void stop()
Specified by:
stop in interface org.gcube.common.ghn.client.ClientService


Copyright © 2012. All Rights Reserved.