Package com.codingchili.core.testing
Class EmptyRequest
java.lang.Object
com.codingchili.core.testing.EmptyRequest
- All Implemented Interfaces:
 Messageable,Request
An empty request for testing.
- 
Field Summary
Fields inherited from interface com.codingchili.core.listener.Request
TARGET_UNDEFINED - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaccept()Accepts the request indicating that it was processed successfully but that there is no response.io.vertx.core.json.JsonObjectdata()Get the raw data of the request as a json objectvoidWrite an error and code to the response.intmaxSize()defaults to #ListenerSettings.DEFAULT_MAX_REQUEST_BYTESroute()Get the route from the request, the route specifies with method that should be invoked.intsize()target()The target node of the request.inttimeout()Get the request timeout which indicates how long the sender is waiting until the request is considered to have timed out.token()Get the request token sent with the request.voidWrites an object to the connection that backs the current request. 
- 
Constructor Details
- 
EmptyRequest
public EmptyRequest() 
 - 
 - 
Method Details
- 
error
Description copied from interface:RequestWrite an error and code to the response. - 
write
Description copied from interface:MessageableWrites an object to the connection that backs the current request.- Specified by:
 writein interfaceMessageable- Parameters:
 object- the object to be written.
 - 
accept
public void accept()Description copied from interface:RequestAccepts the request indicating that it was processed successfully but that there is no response. - 
route
Description copied from interface:RequestGet the route from the request, the route specifies with method that should be invoked. - 
target
Description copied from interface:RequestThe target node of the request. The target specifies which service or which sub-service that the requested route resides in. - 
token
Description copied from interface:RequestGet the request token sent with the request. - 
connection
- Specified by:
 connectionin interfaceRequest- Returns:
 - the underlying connection of the request, may be called multiple times per request returning the same connection object.
 
 - 
data
public io.vertx.core.json.JsonObject data()Description copied from interface:RequestGet the raw data of the request as a json object - 
timeout
public int timeout()Description copied from interface:RequestGet the request timeout which indicates how long the sender is waiting until the request is considered to have timed out.defaults to #
ListenerSettings.DEFAULT_TIMEOUT - 
size
public int size() - 
maxSize
public int maxSize()Description copied from interface:Requestdefaults to #ListenerSettings.DEFAULT_MAX_REQUEST_BYTES 
 -