org.gcube.data.tr.requests
Class AbstractRequest

java.lang.Object
  extended by org.gcube.data.tr.requests.AbstractRequest
All Implemented Interfaces:
Request
Direct Known Subclasses:
BindSource

public abstract class AbstractRequest
extends Object
implements Request

Partial Request implementation.

Author:
Fabio Simeoni

Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 Mode mode()
          Returns the access mode to the collection.
 org.gcube.data.tm.stubs.SourceBinding send()
          Sends the request to some suitable instance of the hosting service.
 org.gcube.data.tm.stubs.SourceBinding send(org.gcube.common.clients.gcore.StatefulQuery query)
          Sends the request to a hosting service returned by a given query.
 org.gcube.data.tm.stubs.SourceBinding send(URL url)
          Sends the request to a hosting service at a given endpoint.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

mode

public Mode mode()
Returns the access mode to the collection.

Returns:
the mode

send

public org.gcube.data.tm.stubs.SourceBinding send()
                                           throws Exception
Description copied from interface: Request
Sends the request to some suitable instance of the hosting service.

Specified by:
send in interface Request
Returns:
the request outcome
Throws:
Exception - if the request fails
org.gcube.common.clients.DiscoveryException - if there are no T-Binder services with the plugin

send

public org.gcube.data.tm.stubs.SourceBinding send(org.gcube.common.clients.gcore.StatefulQuery query)
                                           throws Exception
Description copied from interface: Request
Sends the request to a hosting service returned by a given query.

Specified by:
send in interface Request
Parameters:
query - the query
Returns:
the request outcome
Throws:
Exception - if the request fails
org.gcube.common.clients.DiscoveryException - if there are no T-Binder services that satisfy the query

send

public org.gcube.data.tm.stubs.SourceBinding send(URL url)
                                           throws Exception
Description copied from interface: Request
Sends the request to a hosting service at a given endpoint.

Specified by:
send in interface Request
Parameters:
url - the endpoint
Returns:
the request outcome
Throws:
Exception - if the request fails

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.