Package com.lucidworks.js.api.client
Class CallSpec
java.lang.Object
com.lucidworks.js.api.client.CallSpec
Part of JavaScript API
You can use in a way:
function (request, response, ctx) {
var spec = callFactory.builder('get', 'service: //admin/something');
spec.entity='body';
resp = JSON.parse(spec.exchange()['entity']);
ctx.setProperty('status', resp.status);
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexchange()getUri()voidvoidsetHeaders(Map<String, String> headers) voidvoidsetQueryParams(Map<String, String> queryParams) void
-
Constructor Details
-
CallSpec
-
-
Method Details
-
exchange
- Throws:
Exception
-
setUri
-
getUri
-
getMethod
-
setMethod
-
getQueryParams
-
setQueryParams
-
getHeaders
-
setHeaders
-
getEntity
-
setEntity
-