Line data Source code
1 : /*
2 : * Packge : Wilt
3 : * Author : S. Hamblett <steve.hamblett@linux.com>
4 : * Date : 04/06/2013
5 : * Copyright : S.Hamblett@OSCF
6 : *
7 : * Provides a common interface for Wilt to connect over HTTP,
8 : * allowing for different HTTP adapters to be used.
9 : */
10 :
11 : part of wilt;
12 :
13 : abstract class WiltHTTPAdapter {
14 0 : WiltHTTPAdapter();
15 :
16 : /// Processes the HTTP request returning the HTTP response as
17 : /// a JSON Object
18 : Future<jsonobject.JsonObject> httpRequest(String method, String url,
19 : [String data = null, Map headers = null]);
20 :
21 : /// Specialised get for change notifications
22 : Future<String> getString(String url);
23 :
24 : /// Authentication parameters for change notification
25 : void notificationAuthParams(String user, String password, String authType);
26 : }
|