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 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 client who made the initial originating request.The environment the request is running under.Unique text used to correlate requests and responses.inthashCode()voidsetAdditionalProperty(String name, Object value) voidsetClientId(String clientId) The client who made the initial originating request.voidsetProfileType(BaseRequest.ProfileType profileType) The environment the request is running under.voidsetTransactionId(String transactionId) Unique text used to correlate requests and responses.toString()
-
Constructor Details
-
BaseRequest
public BaseRequest()No args constructor for use in serialization -
BaseRequest
- Parameters:
clientId- The client who made the initial originating request.profileType- The environment the request is running under.transactionId- Unique text used to correlate requests and responses.
-
-
Method Details
-
builder
-
getClientId
The client who made the initial originating request. (Required) -
setClientId
The client who made the initial originating request. (Required) -
getTransactionId
Unique text used to correlate requests and responses. (Required) -
setTransactionId
Unique text used to correlate requests and responses. (Required) -
getProfileType
The environment the request is running under. (Required) -
setProfileType
The environment the request is running under. (Required) -
getAdditionalProperties
-
setAdditionalProperty
-
toString
-
hashCode
public int hashCode() -
equals
-