Class HttpGenerator


  • @Deprecated(since="2021-05-27")
    public class HttpGenerator
    extends java.lang.Object
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    HttpGenerator. Builds HTTP Messages.

    If the system property "org.eclipse.jetty.http.HttpGenerator.STRICT" is set to true, then the generator will strictly pass on the exact strings received from methods and header fields. Otherwise a fast case insensitive string lookup is used that may alter the case and white space of some methods/headers

    • Field Detail

      • __STRICT

        public static final boolean __STRICT
        Deprecated.
      • CONTINUE_100_INFO

        public static final MetaData.Response CONTINUE_100_INFO
        Deprecated.
      • PROGRESS_102_INFO

        public static final MetaData.Response PROGRESS_102_INFO
        Deprecated.
      • RESPONSE_500_INFO

        public static final MetaData.Response RESPONSE_500_INFO
        Deprecated.
    • Constructor Detail

      • HttpGenerator

        public HttpGenerator()
        Deprecated.
      • HttpGenerator

        public HttpGenerator​(boolean sendServerVersion,
                             boolean sendXPoweredBy)
        Deprecated.
    • Method Detail

      • setJettyVersion

        public static void setJettyVersion​(java.lang.String serverVersion)
        Deprecated.
      • reset

        public void reset()
        Deprecated.
      • getSendServerVersion

        @Deprecated
        public boolean getSendServerVersion()
        Deprecated.
      • setSendServerVersion

        @Deprecated
        public void setSendServerVersion​(boolean sendServerVersion)
        Deprecated.
      • isIdle

        public boolean isIdle()
        Deprecated.
      • isEnd

        public boolean isEnd()
        Deprecated.
      • isCommitted

        public boolean isCommitted()
        Deprecated.
      • isChunking

        public boolean isChunking()
        Deprecated.
      • isNoContent

        public boolean isNoContent()
        Deprecated.
      • setPersistent

        public void setPersistent​(boolean persistent)
        Deprecated.
      • isPersistent

        public boolean isPersistent()
        Deprecated.
        Returns:
        true if known to be persistent
      • isWritten

        public boolean isWritten()
        Deprecated.
      • getContentPrepared

        public long getContentPrepared()
        Deprecated.
      • abort

        public void abort()
        Deprecated.
      • generateRequest

        public HttpGenerator.Result generateRequest​(MetaData.Request info,
                                                    java.nio.ByteBuffer header,
                                                    java.nio.ByteBuffer chunk,
                                                    java.nio.ByteBuffer content,
                                                    boolean last)
                                             throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • generateResponse

        @Deprecated
        public HttpGenerator.Result generateResponse​(MetaData.Response info,
                                                     java.nio.ByteBuffer header,
                                                     java.nio.ByteBuffer chunk,
                                                     java.nio.ByteBuffer content,
                                                     boolean last)
                                              throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • generateResponse

        public HttpGenerator.Result generateResponse​(MetaData.Response info,
                                                     boolean head,
                                                     java.nio.ByteBuffer header,
                                                     java.nio.ByteBuffer chunk,
                                                     java.nio.ByteBuffer content,
                                                     boolean last)
                                              throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • getReasonBuffer

        public static byte[] getReasonBuffer​(int code)
        Deprecated.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • putTo

        public static void putTo​(HttpField field,
                                 java.nio.ByteBuffer bufferInFillMode)
        Deprecated.
      • putTo

        public static void putTo​(HttpFields fields,
                                 java.nio.ByteBuffer bufferInFillMode)
        Deprecated.