Package com.rubensgomes.reqresp
Class BaseRequest
java.lang.Object
com.rubensgomes.reqresp.BaseRequest
Base Request Object
A base type that should be part of all microservice requests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic enumThe environment profile the request is running under. -
Constructor Summary
ConstructorsConstructorDescriptionNo args constructor for use in serializationBaseRequest(String clientId, String transactionId, BaseRequest.ProfileType profileType) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanThe application client Id.The environment profile the request is running under.A unique text usually created at the end point of the system (e.g., north bound API end point.) This transactionId serves to correlate all the requests/responses within the system to that transaction Id.inthashCode()voidsetAdditionalProperty(String name, Object value) voidsetClientId(String clientId) The application client Id.voidsetProfileType(BaseRequest.ProfileType profileType) The environment profile the request is running under.voidsetTransactionId(String transactionId) A unique text usually created at the end point of the system (e.g., north bound API end point.) This transactionId serves to correlate all the requests/responses within the system to that transaction Id.toString()
-
Constructor Details
-
BaseRequest
public BaseRequest()No args constructor for use in serialization -
BaseRequest
- Parameters:
clientId- The application client Id. Notice that this is not the ID of the consumer, but of actual client (e.g., webapp or mobileapp) that initiated the original request.profileType- The environment profile the request is running under. This provie helps to configure properties such as end point addresses that might be different depending on the profile.transactionId- A unique text usually created at the end point of the system (e.g., north bound API end point.) This transactionId serves to correlate all the requests/responses within the system to that transaction Id.
-
-
Method Details
-
builder
-
getClientId
The application client Id. Notice that this is not the ID of the consumer, but of actual client (e.g., webapp or mobileapp) that initiated the original request. (Required) -
setClientId
The application client Id. Notice that this is not the ID of the consumer, but of actual client (e.g., webapp or mobileapp) that initiated the original request. (Required) -
getTransactionId
A unique text usually created at the end point of the system (e.g., north bound API end point.) This transactionId serves to correlate all the requests/responses within the system to that transaction Id. (Required) -
setTransactionId
A unique text usually created at the end point of the system (e.g., north bound API end point.) This transactionId serves to correlate all the requests/responses within the system to that transaction Id. (Required) -
getProfileType
The environment profile the request is running under. This provie helps to configure properties such as end point addresses that might be different depending on the profile. (Required) -
setProfileType
The environment profile the request is running under. This provie helps to configure properties such as end point addresses that might be different depending on the profile. (Required) -
getAdditionalProperties
-
setAdditionalProperty
-
toString
-
hashCode
public int hashCode() -
equals
-