org.sonar.wsclient.connectors
Class Connector

java.lang.Object
  extended by org.sonar.wsclient.connectors.Connector
Direct Known Subclasses:
HttpClient3Connector, HttpClient4Connector

public abstract class Connector
extends Object

Since:
2.1

Field Summary
protected static int TIMEOUT_MS
           
 
Constructor Summary
Connector()
           
 
Method Summary
abstract  String execute(CreateQuery query)
           
abstract  String execute(DeleteQuery query)
           
abstract  String execute(Query query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIMEOUT_MS

protected static final int TIMEOUT_MS
See Also:
Constant Field Values
Constructor Detail

Connector

public Connector()
Method Detail

execute

public abstract String execute(Query query)
Returns:
JSON response or null if 404 NOT FOUND error
Throws:
ConnectionException - if connection error or HTTP status not in (200, 404)

execute

public abstract String execute(CreateQuery query)
Returns:
JSON response or null if 404 NOT FOUND error
Since:
2.2

execute

public abstract String execute(DeleteQuery query)
Returns:
JSON response or null if 404 NOT FOUND error
Since:
2.2


Copyright © 2009-2010 SonarSource. All Rights Reserved.