Package org.eclipse.jetty.http
Class HttpGenerator
java.lang.Object
org.eclipse.jetty.http.HttpGenerator
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 ClassesModifier and TypeClassDescriptionstatic enumDeprecated.static enumDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDeprecated.static final intDeprecated.static final MetaData.ResponseDeprecated.static final MetaData.ResponseDeprecated.static final MetaData.ResponseDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.HttpGenerator(boolean sendServerVersion, boolean sendXPoweredBy) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Deprecated.generateRequest(MetaData.Request info, ByteBuffer header, ByteBuffer chunk, ByteBuffer content, boolean last) Deprecated.generateResponse(MetaData.Response info, boolean head, ByteBuffer header, ByteBuffer chunk, ByteBuffer content, boolean last) Deprecated.generateResponse(MetaData.Response info, ByteBuffer header, ByteBuffer chunk, ByteBuffer content, boolean last) Deprecated.longDeprecated.static byte[]getReasonBuffer(int code) Deprecated.booleanDeprecated.getState()Deprecated.booleanDeprecated.booleanDeprecated.booleanisEnd()Deprecated.booleanisIdle()Deprecated.booleanDeprecated.booleanDeprecated.booleanisState(HttpGenerator.State state) Deprecated.booleanDeprecated.static voidputTo(HttpField field, ByteBuffer bufferInFillMode) Deprecated.static voidputTo(HttpFields fields, ByteBuffer bufferInFillMode) Deprecated.voidreset()Deprecated.static voidsetJettyVersion(String serverVersion) Deprecated.voidsetPersistent(boolean persistent) Deprecated.voidsetSendServerVersion(boolean sendServerVersion) Deprecated.toString()Deprecated.
-
Field Details
-
__STRICT
public static final boolean __STRICTDeprecated. -
CONTINUE_100_INFO
Deprecated. -
PROGRESS_102_INFO
Deprecated. -
RESPONSE_500_INFO
Deprecated. -
CHUNK_SIZE
public static final int CHUNK_SIZEDeprecated.- See Also:
-
-
Constructor Details
-
HttpGenerator
public HttpGenerator()Deprecated. -
HttpGenerator
public HttpGenerator(boolean sendServerVersion, boolean sendXPoweredBy) Deprecated.
-
-
Method Details
-
setJettyVersion
Deprecated. -
reset
public void reset()Deprecated. -
getSendServerVersion
Deprecated. -
setSendServerVersion
Deprecated. -
getState
Deprecated. -
isState
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, ByteBuffer header, ByteBuffer chunk, ByteBuffer content, boolean last) throws IOException Deprecated.- Throws:
IOException
-
generateResponse
@Deprecated public HttpGenerator.Result generateResponse(MetaData.Response info, ByteBuffer header, ByteBuffer chunk, ByteBuffer content, boolean last) throws IOException Deprecated.- Throws:
IOException
-
generateResponse
public HttpGenerator.Result generateResponse(MetaData.Response info, boolean head, ByteBuffer header, ByteBuffer chunk, ByteBuffer content, boolean last) throws IOException Deprecated.- Throws:
IOException
-
getReasonBuffer
public static byte[] getReasonBuffer(int code) Deprecated. -
toString
Deprecated. -
putTo
Deprecated. -
putTo
Deprecated.
-