org.opentox.toxotis.client
Class ClientFactory

java.lang.Object
  extended by org.opentox.toxotis.client.ClientFactory

public class ClientFactory
extends Object

Factory for creating clients.

Author:
Pantelis Sopasakis, Charalampos Chomenides

Constructor Summary
ClientFactory()
           
 
Method Summary
static IGetClient createGetClient(VRI actionUri)
          Create a Get-client as an instance of IGetClient providing it's URI.
static IPostClient createPostClient(VRI actionUri)
          Create a POST-client as an instance of IPostClient providing it's URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientFactory

public ClientFactory()
Method Detail

createGetClient

public static IGetClient createGetClient(VRI actionUri)
Create a Get-client as an instance of IGetClient providing it's URI. Either an HTTP or an HTTPS client is created according to the protocol of the provided URI.

Parameters:
actionUri - The URI on which the client addresses the request.
Returns:
Instance of a GET-client.

createPostClient

public static IPostClient createPostClient(VRI actionUri)
Create a POST-client as an instance of IPostClient providing it's URI. Either an HTTP or an HTTPS client is created according to the protocol of the provided URI.

Parameters:
actionUri - The URI on which the client addresses the request.
Returns:
Instance of a POST-client.


Copyright © 2011-2012 OpenTox. All Rights Reserved.