Package | Description |
---|---|
co.ecg.alpaca.toolkit.generated | |
co.ecg.alpaca.toolkit.messaging.request | |
co.ecg.alpaca.toolkit.messaging.response | |
co.ecg.alpaca.toolkit.model |
Modifier and Type | Method and Description |
---|---|
<E extends Response> |
AccessDevice.populate() |
Modifier and Type | Method and Description |
---|---|
void |
RequestBundle.addRequest(Request<?> request)
Adds a new request to the bundle
|
protected void |
Request.appendChild(Element e)
Add an XML element child to this command.
|
protected void |
Request.appendChild(String tagName)
Append an empty tag to a command; this creates an element with no
content.
|
protected void |
Request.appendChild(String tagName,
String value)
Creates and appends a text element with the given name and value to the
command element.
|
ResponseBundle |
RequestBundle.fire()
This generates a Response object from a Request.
|
ResponseBundle |
RequestBundle.fire(OCSClient ocsClient,
boolean readFromCache)
This generates a Response object from a Request.
|
protected void |
Request.formRequest()
This method is used to append elements to a request before it is sent
|
static <E> E |
RequestHelper.mapObjects(E output,
Object input)
Maps two objects by copying 'get' and 'is' methods to matching 'set' methods.
|
static <R extends Request<?>,O extends BroadWorksObject> |
RequestHelper.mapObjectToRequest(R request,
O object)
Method to map the fields of a BroadWorksObject onto a given request.
|
static <R extends Response,T extends BroadWorksObject> |
RequestHelper.requestPerObjectProducer(BroadWorksServer bws,
List<T> objects,
Class typeParameterClass,
Class<? extends Request<R>> request,
BiConsumer<T,R> consumer)
Performs a
Request using the provided BroadWorksServer across a list of BroadWorksObject
taking the request as a single argument. |
static <S extends Request<R>,R extends Response,T extends BroadWorksObject> |
RequestHelper.requestPerObjectProducer(BroadWorksServer bws,
List<T> objects,
Class typeParameterClass,
Class<S> request,
UnaryOperator<S> operator,
BiConsumer<T,R> consumer)
Performs a
Request using the provided BroadWorksServer across a list of BroadWorksObject
taking the request as a single argument. |
Modifier and Type | Method and Description |
---|---|
boolean |
ResponseBundle.containsError()
Returns true if the RequestBundle contains an error response
|
boolean |
Response.isCommandType(String type)
Determine whether this response has a command (element) "xsi:type"
(attribute) value of "c:" + commandType or literally commandType.
|
Modifier and Type | Method and Description |
---|---|
protected <R extends Response,Q extends Request<R>,O> |
BroadWorksService.mapRequestAndFire(O object,
Q request,
Object mappingObject,
Consumer<R> responseConsumer)
Convenience method to map a request to a response and add it to the request bundler
|
protected <R extends Response,Q extends Request<R>,O> |
BroadWorksService.mapRequestAndFire(O object,
Q request,
Object mappingObject,
Consumer<R> responseConsumer,
Consumer<Q> requestConsumer)
Convenience method to map a request to a response and add it to the request bundler
|
protected <R extends Response,O> |
BroadWorksService.mapRequestAndFire(O object,
Request<R> request,
Object mappingObject)
Convenience method to map a request to a response and add it to the request bundler
|
abstract <E extends Response> |
BroadWorksObject.populate() |
Copyright © 2016 ECG. All rights reserved.