Interface OperationModelContext<RequestType extends EventStreamJsonMessage,​ResponseType extends EventStreamJsonMessage,​StreamingRequestType extends EventStreamJsonMessage,​StreamingResponseType extends EventStreamJsonMessage>

    • Method Detail

      • getServiceModel

        EventStreamRPCServiceModel getServiceModel()
        Returns the service model which can look up all/any Java error class types if an operation throws it so the handling has a chance
        Returns:
        the service model which can look up all/any Java error class types if an operation throws it so the handling has a chance
      • getOperationName

        String getOperationName()
        Returns the canonical operation name associated with this context across any client language. Namespace included Example: aws.greengrass#SubscribeToTopic
        Returns:
        the canonical operation name associated with this context across any client language.
      • getRequestTypeClass

        Class<RequestType> getRequestTypeClass()
        Returns the initial-request java class type
        Returns:
        the initial-request java class type
      • getRequestApplicationModelType

        String getRequestApplicationModelType()
        Returns the application model type string for the initial-request object
        Returns:
        the application model type string for the initial-request object
      • getResponseTypeClass

        Class<ResponseType> getResponseTypeClass()
        Returns the initial-response java class type
        Returns:
        the initial-response java class type
      • getResponseApplicationModelType

        String getResponseApplicationModelType()
        Returns the application model type string for the initial response object
        Returns:
        the application model type string for the initial response object
      • getStreamingRequestTypeClass

        Optional<Class<StreamingRequestType>> getStreamingRequestTypeClass()
        Returns the streaming-request java class type
        Returns:
        the streaming-request java class type
      • getStreamingRequestApplicationModelType

        Optional<String> getStreamingRequestApplicationModelType()
        Returns the application model type of
        Returns:
        the application model type of
      • getStreamingResponseTypeClass

        Optional<Class<StreamingResponseType>> getStreamingResponseTypeClass()
        Returns the streaming-response java class type
        Returns:
        the streaming-response java class type
      • getStreamingResponseApplicationModelType

        Optional<String> getStreamingResponseApplicationModelType()
        Returns the streaming response application model string
        Returns:
        the streaming response application model string
      • isStreamingOperation

        default boolean isStreamingOperation()
        Returns true if there is a streaming request or response associated with the operation or both
        Returns:
        true if there is a streaming request or response associated with the operation or both