Class RequestMessage
java.lang.Object
net.sourceforge.jbizmo.commons.jms.RequestMessage
- All Implemented Interfaces:
Serializable
Container object that holds all data of JMS request message
Copyright 2023 (C) by Martin Ganserer
- Version:
- 1.0.0
- Author:
- Martin Ganserer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the nextBooleanparameterbooleanGet the next boolean parametercharGet the next char parameterGet the nextDoubleparameterdoubleGet the next double parameterGet the nextFloatparameterfloatGet the next float parameterGet the nextIntegerparameterintGet the next int parameterGet the nextLongparameterlongGet the next long parameterGet the next parameter<T> TgetNextParameter(Class<T> type) Get the next parameterGet the nextStringparameterGet the nextUUIDparameterwithParameter(Serializable value) Add a parameter to the request
-
Constructor Details
-
RequestMessage
Constructor- Parameters:
operationID- the ID of the operation
-
-
Method Details
-
getOperationID
- Returns:
- the ID of the operation
-
withParameter
Add a parameter to the request- Parameters:
value- the parameter value- Returns:
- the actual object
-
getNextParameter
Get the next parameter- Returns:
- the value of the next parameter
- Throws:
IndexOutOfBoundsException- if no further parameter exists
-
getNextParameter
Get the next parameter- Parameters:
type- the expected type- Returns:
- the value of the next parameter
- Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter has an unexpected type
-
getNextIntParameter
public int getNextIntParameter()Get the next int parameter- Returns:
- the value of the next int parameter
- Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is no int
-
getNextIntegerParameter
Get the nextIntegerparameter- Returns:
- the value of the next
Integerparameter - Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is noInteger
-
getNextLongParameter
public long getNextLongParameter()Get the next long parameter- Returns:
- the value of the next long parameter
- Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is no long
-
getNextLongObjectParameter
Get the nextLongparameter- Returns:
- the value of the next
Longparameter - Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is noLong
-
getNextBoolParameter
public boolean getNextBoolParameter()Get the next boolean parameter- Returns:
- the value of the next boolean parameter
- Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is no boolean
-
getNextBooleanParameter
Get the nextBooleanparameter- Returns:
- the value of the next
Booleanparameter - Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is noBoolean
-
getNextFloatParameter
public float getNextFloatParameter()Get the next float parameter- Returns:
- the value of the next float parameter
- Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is no float
-
getNextFloatObjectParameter
Get the nextFloatparameter- Returns:
- the value of the next
Floatparameter - Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is noFloat
-
getNextDoubleParameter
public double getNextDoubleParameter()Get the next double parameter- Returns:
- the value of the next double parameter
- Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is no double
-
getNextDoubleObjectParameter
Get the nextDoubleparameter- Returns:
- the value of the next
Doubleparameter - Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is noDouble
-
getNextStringParameter
Get the nextStringparameter- Returns:
- the value of the next
Stringparameter - Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is noString
-
getNextUUIDParameter
Get the nextUUIDparameter- Returns:
- the value of the next
UUIDparameter - Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is noUUID
-
getNextCharParameter
public char getNextCharParameter()Get the next char parameter- Returns:
- the value of the next char parameter
- Throws:
IndexOutOfBoundsException- if no further parameter existsClassCastException- if the parameter is no char
-