Class ResponseProducerImpl

    • Constructor Detail

      • ResponseProducerImpl

        public ResponseProducerImpl()
    • Method Detail

      • withForwardConnectionException

        public <T extends ResponseProducerImpl> T withForwardConnectionException​(java.lang.Boolean b)
      • forwardConnectionException

        protected boolean forwardConnectionException()
      • flushBuffers

        protected boolean flushBuffers()
      • withFlushBuffer

        public <T extends ResponseProducerImpl> T withFlushBuffer​(java.lang.Boolean b)
      • withSendPayload

        public <T extends ResponseProducerImpl> T withSendPayload​(java.lang.Boolean b)
      • sendPayload

        protected boolean sendPayload()
      • getStatusProvider

        @NonNull
        public @NonNull HttpStatusProvider getStatusProvider()
        The HTTP Status.
      • setStatusProvider

        public void setStatusProvider​(@NonNull
                                      @NonNull HttpStatusProvider statusProvider)
        The HTTP Status.
      • getResponseHeaderProvider

        @NonNull
        public @NonNull ResponseHeaderProvider<javax.servlet.http.HttpServletResponse> getResponseHeaderProvider()
        Additional HTTP headers that will be sent as part of the response.
      • setResponseHeaderProvider

        public void setResponseHeaderProvider​(@NonNull
                                              @NonNull ResponseHeaderProvider<javax.servlet.http.HttpServletResponse> responseHeaderProvider)
        Additional HTTP headers that will be sent as part of the response.
      • getContentTypeProvider

        @NonNull
        public @NonNull ContentTypeProvider getContentTypeProvider()
        The Content-Type to send with the response.
      • setContentTypeProvider

        public void setContentTypeProvider​(@NonNull
                                           @NonNull ContentTypeProvider contentTypeProvider)
        The Content-Type to send with the response.
      • getSendPayload

        public java.lang.Boolean getSendPayload()
        Send the current payload as part of the response.

        Defaults to true if not explicitly configured.

      • setSendPayload

        public void setSendPayload​(java.lang.Boolean sendPayload)
        Send the current payload as part of the response.

        Defaults to true if not explicitly configured.

      • getForwardConnectionException

        public java.lang.Boolean getForwardConnectionException()
        Throw an exception if producing the response fails.

        When producing the reply to a client; it may be that they have already terminated the connection. By default client disconnections will not generate a ServiceException so normal processing continues. Set this to be true if you want error handling to be triggered in this situation. This defaults to false unless explicitly configured.

      • setForwardConnectionException

        public void setForwardConnectionException​(java.lang.Boolean forwardConnectionException)
        Throw an exception if producing the response fails.

        When producing the reply to a client; it may be that they have already terminated the connection. By default client disconnections will not generate a ServiceException so normal processing continues. Set this to be true if you want error handling to be triggered in this situation. This defaults to false unless explicitly configured.

      • getFlushBuffer

        public java.lang.Boolean getFlushBuffer()
      • setFlushBuffer

        public void setFlushBuffer​(java.lang.Boolean flushBuffer)