private void reply(final String response, final boolean error,
            final String errorMessage, final String stackTrace,
            final String statusCode, final int statusCodeInt,
            Map<String, List<String>> responseHeaders) {

        if (!sentReply) {
            // must update sentReply first to avoid duplicated msg.
            sentReply = true;

            final ResponseOnSingeRequest res = new ResponseOnSingeRequest(
                    response, error, errorMessage, stackTrace, statusCode,
                    statusCodeInt, PcDateUtils.getNowDateTimeStrStandard(),
                    responseHeaders);
            if (!getContext().system().deadLetters().equals(sender)) {
                sender.tell(res, getSelf());
            }
            if (getContext() != null) {
                getContext().stop(getSelf());
            }
        }

    }
private void reply ( final String response , final boolean error , final String errorMessage , final String stackTrace , final String statusCode , final int statusCodeInt , Map < String , List < String > > responseHeaders ) { if ( ! sentReply ) { sentReply = true ; final ResponseOnSingeRequest res = new ResponseOnSingeRequest ( response , error , errorMessage , stackTrace , statusCode , statusCodeInt , PcDateUtils . getNowDateTimeStrStandard ( ) , responseHeaders ) ; if ( ! getContext ( ) . system ( ) . deadLetters ( ) . equals ( sender ) ) { sender . tell ( res , getSelf ( ) ) ; } if ( getContext ( ) != null ) { getContext ( ) . stop ( getSelf ( ) ) ; } } }
Reply.

@param response
the response
@param error
the error
@param errorMessage
the error message
@param stackTrace
the stack trace
@param statusCode
the status code
@param statusCodeInt
the status code int
@param responseHeaders
the response headers