public class HttpProvider extends java.lang.Object implements ServiceProvider
| Constructor and Description |
|---|
HttpProvider(ConnectionString conn) |
HttpProvider(HttpClient client) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
available() |
boolean |
check() |
void |
close() |
boolean |
disable() |
boolean |
enable() |
java.util.concurrent.atomic.AtomicInteger |
getFailures() |
Response |
invoke(Request request) |
java.lang.String |
toString() |
public HttpProvider(ConnectionString conn)
public HttpProvider(HttpClient client)
public Response invoke(Request request) throws java.lang.Exception
java.lang.Exceptionpublic java.util.concurrent.atomic.AtomicInteger getFailures()
public boolean available()
available in interface ServiceProviderpublic boolean check()
throws java.lang.Exception
check in interface ServiceProviderjava.lang.Exceptionpublic boolean enable()
enable in interface ServiceProviderpublic boolean disable()
disable in interface ServiceProviderpublic void close()
close in interface ServiceProviderpublic java.lang.String toString()
toString in class java.lang.Object