public class RequestBundle extends Object implements Runnable
Constructor and Description |
---|
RequestBundle(BroadWorksServer bws) |
Modifier and Type | Method and Description |
---|---|
void |
addRequest(Request<?> request)
Adds a new request to the bundle
|
void |
asyncFire(ResponseBundleHandler handler)
Fires the request bundle on it's own thread and returns the
ResponseBundle to the provided handler.
|
ResponseBundle |
fire()
This generates a Response object from a Request.
|
ResponseBundle |
fire(boolean readFromCache)
This generates a Response object from a Request.
|
BroadWorksServer |
getBroadWorksServer() |
BroadWorksServer |
getBroadWorksServerForRequest() |
List<Request<?>> |
getRequestBundle() |
boolean |
isFull()
Checks if the Request Bundle can hold any more elements
|
boolean |
isValid()
Returns True if the Request has no constraint violations
|
void |
run()
Method to handle the RequestBundle when firing on a distinct thread.
|
void |
setBroadWorksServer(BroadWorksServer bws) |
String |
toString()
The RequestBundle as transformed into the expected XML message
|
Set<javax.validation.ConstraintViolation<Request<?>>> |
validate()
Returns the list of Constraint Violations for the Request
|
public RequestBundle(BroadWorksServer bws)
public void addRequest(Request<?> request) throws RequestException
request
- The Request to be added.RequestException
public void asyncFire(ResponseBundleHandler handler) throws RequestException
handler
- The handler to return the ResponseBundle toward following
execution completion.RequestException
public ResponseBundle fire() throws RequestException
RequestException
public ResponseBundle fire(boolean readFromCache) throws RequestException
readFromCache
- RequestException
public BroadWorksServer getBroadWorksServer()
public void setBroadWorksServer(BroadWorksServer bws)
public BroadWorksServer getBroadWorksServerForRequest()
public boolean isFull()
public boolean isValid()
public void run()
public String toString()
Copyright © 2016 ECG. All rights reserved.