Class OmsServiceErrorCodeResponse

java.lang.Object
com.skava.core.validation.OutputModel
com.skava.core.ResponseModel
com.skava.oms.model.response.OmsServiceErrorCodeResponse
All Implemented Interfaces:
Serializable

public class OmsServiceErrorCodeResponse extends com.skava.core.ResponseModel
This class defines the OmsService Response to handle the collection request.
Author:
Infosys Equinox
See Also:
  • Field Details

  • Constructor Details

    • OmsServiceErrorCodeResponse

      public OmsServiceErrorCodeResponse(ResponseCode responseCode, String message, ValidationErrorModel validationErrors)
    • OmsServiceErrorCodeResponse

      public OmsServiceErrorCodeResponse(String code, org.springframework.http.HttpStatus status, String message, ValidationErrorModel validationErrors)
      Oms Service Response contains code status message and reason for entity values.
      Parameters:
      code - error code to be given
      status - status to be changed
      message - error message
      validationErrors - validation errors
    • OmsServiceErrorCodeResponse

      public OmsServiceErrorCodeResponse(String code, org.springframework.http.HttpStatus status, CommonPluginProcessorResponse pluginResponse, String message)
      Oms Service Response contains code status message and reason for entity values.
      Parameters:
      code - error code to be given
      status - status to be changed
      pluginResponse - plugin related response will be given.
      message - error message
  • Method Details

    • getAsResponseEntity

      public org.springframework.http.ResponseEntity<Object> getAsResponseEntity(org.springframework.context.MessageSource messageSource, Object[] parameters)
      Parameters:
      messageSource - object of MessageSource
      parameters - array of Object
      Returns:
      ResponseEntity