Package org.eclipse.jetty.http
Class HttpGenerator
- java.lang.Object
-
- org.eclipse.jetty.http.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpGenerator.Result
Deprecated.static class
HttpGenerator.State
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static boolean
__STRICT
Deprecated.static int
CHUNK_SIZE
Deprecated.static MetaData.Response
CONTINUE_100_INFO
Deprecated.static MetaData.Response
PROGRESS_102_INFO
Deprecated.static MetaData.Response
RESPONSE_500_INFO
Deprecated.
-
Constructor Summary
Constructors Constructor Description HttpGenerator()
Deprecated.HttpGenerator(boolean sendServerVersion, boolean sendXPoweredBy)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
abort()
Deprecated.HttpGenerator.Result
generateRequest(MetaData.Request info, java.nio.ByteBuffer header, java.nio.ByteBuffer chunk, java.nio.ByteBuffer content, boolean last)
Deprecated.HttpGenerator.Result
generateResponse(MetaData.Response info, boolean head, java.nio.ByteBuffer header, java.nio.ByteBuffer chunk, java.nio.ByteBuffer content, boolean last)
Deprecated.HttpGenerator.Result
generateResponse(MetaData.Response info, java.nio.ByteBuffer header, java.nio.ByteBuffer chunk, java.nio.ByteBuffer content, boolean last)
Deprecated.long
getContentPrepared()
Deprecated.static byte[]
getReasonBuffer(int code)
Deprecated.boolean
getSendServerVersion()
Deprecated.HttpGenerator.State
getState()
Deprecated.boolean
isChunking()
Deprecated.boolean
isCommitted()
Deprecated.boolean
isEnd()
Deprecated.boolean
isIdle()
Deprecated.boolean
isNoContent()
Deprecated.boolean
isPersistent()
Deprecated.boolean
isState(HttpGenerator.State state)
Deprecated.boolean
isWritten()
Deprecated.static void
putTo(HttpField field, java.nio.ByteBuffer bufferInFillMode)
Deprecated.static void
putTo(HttpFields fields, java.nio.ByteBuffer bufferInFillMode)
Deprecated.void
reset()
Deprecated.static void
setJettyVersion(java.lang.String serverVersion)
Deprecated.void
setPersistent(boolean persistent)
Deprecated.void
setSendServerVersion(boolean sendServerVersion)
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
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.
-
CHUNK_SIZE
public static final int CHUNK_SIZE
Deprecated.- See Also:
- Constant Field Values
-
-
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.
-
getState
public HttpGenerator.State getState()
Deprecated.
-
isState
public boolean isState(HttpGenerator.State state)
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 classjava.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.
-
-