org.gcube.common.clients.builders
Interface StatefulBuilderAPI.Builder<A,P>

Type Parameters:
P - the type of service proxies
All Known Implementing Classes:
AbstractStatefulBuilder
Enclosing class:
StatefulBuilderAPI

public static interface StatefulBuilderAPI.Builder<A,P>

The first clause of the DSL.

Author:
Fabio Simeoni

Method Summary
 StatefulBuilderAPI.SecondClause<P> at(String key, String host, int port)
          Configures the address of a given service instance.
 StatefulBuilderAPI.SecondClause<P> at(String key, URI url)
          Configures the address of a given service instance.
 StatefulBuilderAPI.SecondClause<P> at(String key, URL url)
          Configures the address of a given service instance.
 StatefulBuilderAPI.SecondClause<P> at(W3CEndpointReference address)
          Configures the address of a given service instance.
 StatefulBuilderAPI.SecondClause<P> matching(Query<A> query)
          Configures a query for service instances.
 

Method Detail

matching

StatefulBuilderAPI.SecondClause<P> matching(Query<A> query)
Configures a query for service instances.

Parameters:
query - the query
Returns:
further configuration options

at

StatefulBuilderAPI.SecondClause<P> at(W3CEndpointReference address)
                                      throws IllegalArgumentException
Configures the address of a given service instance.

Parameters:
address - the address
Returns:
further configuration options
Throws:
IllegalArgumentException - if the address is invalid

at

StatefulBuilderAPI.SecondClause<P> at(String key,
                                      String host,
                                      int port)
                                      throws IllegalArgumentException
Configures the address of a given service instance.

Parameters:
the - key of the instance
host - the host of the corresponding service endpoint
port - the port of the corresponding service endpoint
Returns:
further configuration options
Throws:
IllegalArgumentException - if the address is invalid

at

StatefulBuilderAPI.SecondClause<P> at(String key,
                                      URL url)
                                      throws IllegalArgumentException
Configures the address of a given service instance.

Parameters:
the - key of the instance
address - the address of the corresponding service endpoint
Returns:
further configuration options
Throws:
IllegalArgumentException - if the address is invalid

at

StatefulBuilderAPI.SecondClause<P> at(String key,
                                      URI url)
                                      throws IllegalArgumentException
Configures the address of a given service instance.

Parameters:
the - key of the instance
address - the address of the corresponding service endpoint
Returns:
further configuration options
Throws:
IllegalArgumentException - if the address is invalid


Copyright © 2012. All Rights Reserved.