JsonServiceClient class

Implements

Constructors

JsonServiceClient([String baseUrl = "/" ])

Properties

baseUrl ↔ String
read / write
bearerToken ↔ String
read / write
client ↔ HttpClient
read / write
cookies ↔ List<Cookie>
read / write
exceptionFilter ResponseExceptionFilter
read / write
headers ↔ Map<String, String>
read / write
onAuthenticationRequired AsyncCallbackFunction
read / write
oneWayBaseUrl ↔ String
read / write
password ↔ String
read / write
refreshToken ↔ String
read / write
refreshTokenUri ↔ String
read / write
replyBaseUrl ↔ String
read / write
requestFilter RequestFilter
read / write
responseFilter ResponseFilter
read / write
urlFilter UrlFilter
read / write
userName ↔ String
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createRequest(SendContext info) → Future<HttpClientRequest>
createResponse<T>(HttpClientResponse res, SendContext info) → Future<T>
createUrlFromDto<T>(String method, dynamic request) → String
delete<T>(IReturn<T> request, { Map<String, dynamic> args }) → Future<T>
deleteAs<T>(String path, { Map<String, dynamic> args, T responseAs, RequestFilter requestFilter, ResponseFilter responseFilter }) → Future<T>
deleteUrl(String path, { Map<String, dynamic> args }) → Future<Map<String, dynamic>>
get<T>(IReturn<T> request, { Map<String, dynamic> args }) → Future<T>
getAs<T>(String path, { Map<String, dynamic> args, T responseAs, RequestFilter requestFilter, ResponseFilter responseFilter }) → Future<T>
getUrl(String path, { Map<String, dynamic> args }) → Future<Map<String, dynamic>>
handleError(HttpClientResponse holdRes, Exception e, [ WebServiceExceptionType type ]) → Future
mergeCookies(List<Cookie> cookies) → void
patch<T>(IReturn<T> request, { dynamic body, Map<String, dynamic> args }) → Future<T>
patchAs<T>(String path, dynamic body, { Map<String, dynamic> args, T responseAs, RequestFilter requestFilter, ResponseFilter responseFilter }) → Future<T>
patchToUrl(String path, dynamic body, { Map<String, dynamic> args }) → Future<Map<String, dynamic>>
post<T>(IReturn<T> request, { dynamic body, Map<String, dynamic> args }) → Future<T>
postAs<T>(String path, dynamic body, { Map<String, dynamic> args, T responseAs, RequestFilter requestFilter, ResponseFilter responseFilter }) → Future<T>
postToUrl(String path, dynamic body, { Map<String, dynamic> args }) → Future<Map<String, dynamic>>
put<T>(IReturn<T> request, { dynamic body, Map<String, dynamic> args }) → Future<T>
putAs<T>(String path, dynamic body, { Map<String, dynamic> args, T responseAs, RequestFilter requestFilter, ResponseFilter responseFilter }) → Future<T>
putToUrl(String path, dynamic body, { Map<String, dynamic> args }) → Future<Map<String, dynamic>>
raiseError(HttpClientResponse res, Exception error) → dynamic
send<T>(IReturn<T> request, { String method, dynamic body, Map<String, dynamic> args, T responseAs, RequestFilter requestFilter, ResponseFilter responseFilter }) → Future<T>
sendAll<T>(Iterable<IReturn<T>> requests, { RequestFilter requestFilter, ResponseFilter responseFilter }) → Future<List<T>>
sendAllOneWay<T>(Iterable<IReturn<T>> requests, { RequestFilter requestFilter, ResponseFilter responseFilter }) → Future<void>
sendRequest<T>(SendContext info) → Future<T>
setCredentials(String userName, String password) → void
toAbsoluteUrl(String relativeOrAbsoluteUrl) → String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Properties

globalExceptionFilter ResponseExceptionFilter
read / write
globalRequestFilter RequestFilter
read / write
globalResponseFilter ResponseFilter
read / write