Class ServerStreamStringIteratorRest

    • Constructor Detail

      • ServerStreamStringIteratorRest

        public ServerStreamStringIteratorRest​(ServerStreamStringWebService service,
                                              de.aristaflow.adept2.base.communication.rest.RequestHandler reqHandler,
                                              de.aristaflow.adept2.base.communication.rest.ResponseHandler respHandler,
                                              de.aristaflow.adept2.base.communication.rest.ExceptionHandler excpHandler,
                                              de.aristaflow.adept2.base.communication.rest.ServiceResourceConfig srConf,
                                              Supplier<com.fasterxml.jackson.databind.ObjectMapper> objectMapper,
                                              UnaryOperator<Exception> headerDataExcpAdapter)
    • Method Detail

      • initIteratorAndRespStatus

        public InitialStringRemoteIteratorData initIteratorAndRespStatus​(InitialStringRemoteIteratorData isrid,
                                                                         Long aliveTime)
        Initialises the string remote iterator of the designated string remote iterator data by setting the designated explicit alive time if required and the response status to HttpURLConnection.HTTP_CREATED. Both only applies in case the string remote iterator data is not null, that is, there is no data, and the remote iterator has not been AbstractRemoteIteratorData.closed closed implicitly, e. g. after all data has been transfered.
        Parameters:
        isrid - The string remote iterator data for which to initially set an explicit alive time. If this is null, no alive time will be set explicitly.
        aliveTime - The alive time which to explicitly set for the designated string remote iterator data. If this is null, the implicit alive time will be used, that is, no extension will be applied.
        Returns:
        The designated string remote iterator data.