Package de.dlr.proseo.ui.gui
Class OrderInfo
java.lang.Object
de.dlr.proseo.ui.gui.OrderInfo
A collector for information on orders, namely order status, order id, and an error message
- Author:
- Ernst Melchinger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the error messageReturns the order idorg.springframework.http.HttpStatusReturns the HTTP statusvoidsetMessage(String message) Sets the error messagevoidsetOrderId(String orderId) Sets the order idvoidsetStatus(org.springframework.http.HttpStatus status) Sets the order's status
-
Field Details
-
Constructor Details
-
OrderInfo
A constructor which sets the order's status, id and error message- Parameters:
status- the order status to setorderId- the order id to setmessage- the error message to set
-
-
Method Details
-
getStatus
public org.springframework.http.HttpStatus getStatus()Returns the HTTP status- Returns:
- the HTTP status
-
getMessage
Returns the error message- Returns:
- the error message
-
getOrderId
Returns the order id- Returns:
- the orderId
-
setOrderId
Sets the order id- Parameters:
orderId- the orderId to set
-
setStatus
public void setStatus(org.springframework.http.HttpStatus status) Sets the order's status- Parameters:
status- the status to set
-
setMessage
Sets the error message- Parameters:
message- the message to set
-