Class ServerGenerator


  • public class ServerGenerator
    extends Generator
    • Field Detail

      • STATUS

        private static final byte[] STATUS
      • COLON

        private static final byte[] COLON
      • EOL

        private static final byte[] EOL
      • sendStatus200

        private final boolean sendStatus200
    • Constructor Detail

      • ServerGenerator

        public ServerGenerator​(ByteBufferPool byteBufferPool)
      • ServerGenerator

        public ServerGenerator​(ByteBufferPool byteBufferPool,
                               boolean sendStatus200)
    • Method Detail

      • generateResponseContent

        public Generator.Result generateResponseContent​(int request,
                                                        java.nio.ByteBuffer content,
                                                        boolean lastContent,
                                                        boolean aborted,
                                                        Callback callback)
      • generateEndRequest

        private java.nio.ByteBuffer generateEndRequest​(int request,
                                                       boolean aborted)