Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractHTTPClientStream - Class in org.omegazero.http.util
-
A
HTTPClientStreamwith several basic methods implemented. - AbstractHTTPClientStream(HTTPRequest, HTTPClient) - Constructor for class org.omegazero.http.util.AbstractHTTPClientStream
-
Creates a new
AbstractHTTPClientStream. - AbstractHTTPMessageStream - Class in org.omegazero.http.util
-
A
HTTPMessageStreamwith several basic methods implemented. - AbstractHTTPMessageStream(HTTPRequest) - Constructor for class org.omegazero.http.util.AbstractHTTPMessageStream
-
Creates a new
AbstractHTTPMessageStream. - AbstractHTTPServerStream - Class in org.omegazero.http.util
-
A
HTTPServerStreamwith several basic methods implemented. - AbstractHTTPServerStream(HTTPRequest, HTTPServer) - Constructor for class org.omegazero.http.util.AbstractHTTPServerStream
-
Creates a new
AbstractHTTPServerStream. - accept(T) - Method in interface org.omegazero.http.h2.util.StreamCallback
-
Deprecated.The callback method.
- addData(byte[]) - Method in class org.omegazero.http.h1.MessageBodyDechunker
-
Parses the given data.
- addHeader(String, String) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Adds a new header with the given key (name) and value to the end of the header list.
- addHeader(String, String, int) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Adds a new header with the given key (name) and value at the given index.
- addHeaders(HTTPMessage, StringBuilder) - Method in class org.omegazero.http.h1.HTTP1MessageTransmitter
-
Adds any headers that are not part of the default
HTTPMessageheader map. - addNeverIndex(String) - Method in class org.omegazero.http.h2.hpack.HPackContext.Session
- appendHeader(StringBuilder, String, String) - Static method in class org.omegazero.http.h1.HTTP1MessageTransmitter
-
Appends a HTTP/1-style header to the given
StringBuilder. - appendHeader(String, String) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Appends the given value to an existing header with the given key (name), separated by
", ", or sets a header with the given value if no such header exists. - appendHeader(String, String, String) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Appends the given value to an existing header with the given key (name), separated by separator, or sets a header with the given value if no such header exists.
- appendHeader(String, String, String, int) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Appends the given value to an existing header with the given key (name), separated by separator, or sets a header with the given value if no such header exists.
- ATTACHMENT_KEY_STREAM_ID - Static variable in class org.omegazero.http.h2.streams.MessageStream
- authority - Variable in class org.omegazero.http.common.HTTPRequest
-
The HTTP request authority.
B
- bufReserveAdditional(int) - Method in class org.omegazero.http.h2.hpack.HPackContext.EncoderContext
- bytesInRange(byte[], int, int, int, int) - Static method in class org.omegazero.http.util.HTTPValidator
-
Checks that all bytes in the given byte array in the specified range starting at offset are within the given range of allowed values (min to max, inclusive).
C
- callOnError(Exception) - Method in class org.omegazero.http.util.AbstractHTTPMessageStream
-
Calls the
onErrorcallback. - callOnRequestData(HTTPRequestData) - Method in class org.omegazero.http.util.AbstractHTTPServerStream
-
Calls the
onRequestDatacallback. - callOnRequestEnded(HTTPMessageTrailers) - Method in class org.omegazero.http.util.AbstractHTTPServerStream
-
Calls the
onRequestEndedcallback. - callOnResponseData(HTTPResponseData) - Method in class org.omegazero.http.util.AbstractHTTPClientStream
-
Calls the
onResponseDatacallback. - callOnResponseEnded(HTTPMessageTrailers) - Method in class org.omegazero.http.util.AbstractHTTPClientStream
- callOnServerPush(HTTPClientStream) - Method in class org.omegazero.http.util.AbstractHTTPClientStream
-
Calls the
onServerPushcallback. - callOnWritable() - Method in class org.omegazero.http.util.AbstractHTTPMessageStream
-
Calls the
onWritablecallback. - CANCEL - Enum constant in enum class org.omegazero.http.common.MessageStreamClosedException.CloseReason
- checkLocalCreateStream() - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Checks whether a new
MessageStreamcan be initiated locally according to the remote MAX_CONCURRENT_STREAMS setting. - checkLocked() - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
May be implemented by subclasses to prevent changing header data in certain situations.
- checkLocked() - Method in class org.omegazero.http.common.HTTPMessage
- checkRemoteCreateStream() - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Checks whether the remote endpoint may cause a new stream to be created according to the local MAX_CONCURRENT_STREAMS setting.
- chunkedTransfer - Variable in class org.omegazero.http.common.HTTPMessage
-
Whether the data for this
HTTPMessageis transferred in chunks instead of a blob with a predetermined size. - client - Variable in class org.omegazero.http.util.AbstractHTTPClientStream
- close() - Method in class org.omegazero.http.h2.HTTP2Client
-
Closes this client.
- close() - Method in class org.omegazero.http.netutil.SocketConnectionWritable
- close() - Method in interface org.omegazero.http.util.HTTPClient
-
Terminates this
HTTPClientat any time, causing the connection to be terminated. - close() - Method in interface org.omegazero.http.util.HTTPMessageStream
- close() - Method in interface org.omegazero.http.util.HTTPServer
-
Terminates this
HTTPServerat any time, causing no further callbacks to be called and the connection to be terminated. - close() - Method in interface org.omegazero.http.util.WritableSocket
-
Closes this
WritableSocket. - close(MessageStreamClosedException.CloseReason) - Method in interface org.omegazero.http.util.HTTPMessageStream
-
Terminates this
HTTPMessageStreamat any time, causing no further callbacks to be called and the transaction with the peer to end abnormally. - closed - Variable in class org.omegazero.http.util.AbstractHTTPMessageStream
- closeWaitStreams - Variable in class org.omegazero.http.h2.HTTP2Endpoint
-
Deprecated.
- closeWaitTimeout - Variable in class org.omegazero.http.h2.HTTP2Endpoint
-
The time in nanoseconds after which closed streams in
HTTP2Endpoint.closeWaitTimeoutare removed fromHTTP2Endpoint.streams. - connection - Variable in class org.omegazero.http.h2.HTTP2Endpoint
-
The underlying connection.
- connection - Variable in class org.omegazero.http.h2.streams.HTTP2Stream
- consumeLocalConnectionWindow(int) - Method in class org.omegazero.http.h2.streams.ControlStream
-
Reduces the local connection window by the given size because a flow-controlled packet was received.
- consumeReceiverConnectionWindow(int) - Method in class org.omegazero.http.h2.streams.ControlStream
-
Reduces the remote's connection window by the given size because a flow-controlled packet is being sent.
- ControlStream - Class in org.omegazero.http.h2.streams
-
Represents the connection
HTTP2Streamwhere frames are exchanged that affect the entire HTTP/2 connection (stream with ID equal to 0). - ControlStream(WritableSocket, HTTP2Settings) - Constructor for class org.omegazero.http.h2.streams.ControlStream
-
Creates a
ControlStreaminstance. - createdTime - Variable in class org.omegazero.http.common.HTTPMessage
- createRequestStream() - Method in class org.omegazero.http.h2.HTTP2Client
-
Creates a new
MessageStreamto send a request with.
D
- data - Variable in class org.omegazero.http.common.HTTPMessageData
- decode(byte[]) - Static method in class org.omegazero.http.h2.hpack.HPackHuffmanCoding
-
Decodes the given Huffman-encoded data according to RFC 7541, section 5.2.
- decodeHeaderBlock(byte[]) - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Decodes the given full header block data according to RFC 7541.
- DEFAULT - Static variable in interface org.omegazero.http.gen.HTTPRequestSupplier
- DEFAULT - Static variable in interface org.omegazero.http.gen.HTTPResponseSupplier
- DEFAULT_MAX_HEADER_SIZE - Static variable in class org.omegazero.http.h1.HTTP1MessageReceiver
-
The default value for
maxHeaderSize, if not passed in the constructor. - deleteHeader(String) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Deletes all headers with the given key (name).
- deleteHeader(String, int) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Deletes the header with the given key (name) and index.
E
- editHeader(String, String, int) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Edits an existing header with the given key (name) by setting its value to the given value.
- EMPTY_BYTE_ARRAY - Static variable in interface org.omegazero.http.util.HTTPResponder
-
A byte array with length zero.
- encode(byte[]) - Static method in class org.omegazero.http.h2.hpack.HPackHuffmanCoding
-
Encodes the given string data according to RFC 7541, section 5.2.
- encodeHeader(HPackContext.EncoderContext, String, String) - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Encodes the given header in the
EncoderContextaccording to RFC 7541. - encodeHeaders(Map<String, String>) - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Encodes the given header name-value pairs according to RFC 7541 with a single new
HPackContext.EncoderContext. - EncoderContext() - Constructor for class org.omegazero.http.h2.hpack.HPackContext.EncoderContext
- EncoderContext(int) - Constructor for class org.omegazero.http.h2.hpack.HPackContext.EncoderContext
- EncoderContext(int, byte[]) - Constructor for class org.omegazero.http.h2.hpack.HPackContext.EncoderContext
- end() - Method in class org.omegazero.http.h1.MessageBodyDechunker
-
Forces an EOF in the current input stream of this
MessageBodyDechunker. - endRequest(HTTPMessageTrailers) - Method in interface org.omegazero.http.util.HTTPClientStream
-
Ends this request, allowing the server to send the response.
- endResponse(HTTPMessageTrailers) - Method in interface org.omegazero.http.util.HTTPServerStream
-
Ends the response with optional trailers, if supported.
- ENHANCE_YOUR_CALM - Enum constant in enum class org.omegazero.http.common.MessageStreamClosedException.CloseReason
- EOL_STR - Static variable in class org.omegazero.http.h1.HTTP1Util
- extractHeader(String) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Deletes all headers with the given key (name) and returns the value of the first deleted header.
- extractHeaders(String) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Deletes all headers with the given key (name) and returns the previous header values.
F
- flush() - Method in class org.omegazero.http.netutil.SocketConnectionWritable
- flush() - Method in interface org.omegazero.http.util.WritableSocket
-
Flushes any remaining data in this
WritableSocket's write buffer. - FRAME_FLAG_ANY_ACK - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_FLAG_ANY_END_HEADERS - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_FLAG_ANY_END_STREAM - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_FLAG_ANY_PADDED - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_FLAG_HEADERS_PRIORITY - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_HEADER_SIZE - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_TYPE_CONTINUATION - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_TYPE_DATA - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_TYPE_GOAWAY - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_TYPE_HEADERS - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_TYPE_PING - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_TYPE_PRIORITY - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_TYPE_PUSH_PROMISE - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_TYPE_RST_STREAM - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_TYPE_SETTINGS - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_TYPE_WINDOW_UPDATE - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FRAME_TYPES - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- FrameUtil - Class in org.omegazero.http.h2.util
-
Contains utility methods for managing HTTP/2 frames.
- fromLegacy(Map<String, String>) - Static method in class org.omegazero.http.common.HTTPHeaderContainer
-
Creates a
HTTPHeaderContainerfrom the given single-valued header list.
G
- generate(HTTPMessage) - Method in class org.omegazero.http.h1.HTTP1MessageTransmitter
-
Encodes the given
HTTPMessageinto a byte array. - get() - Method in class org.omegazero.http.h1.HTTP1MessageReceiver
-
Returns the
HTTPMessageafter successfully receiving it (HTTP1MessageReceiver.receive(byte[], int)returns a non-negative integer). - get() - Method in class org.omegazero.http.h1.HTTP1RequestReceiver
-
Returns the
HTTPMessageafter successfully receiving it (HTTP1MessageReceiver.receive(byte[], int)returns a non-negative integer). - get() - Method in class org.omegazero.http.h1.HTTP1ResponseReceiver
-
Returns the
HTTPMessageafter successfully receiving it (HTTP1MessageReceiver.receive(byte[], int)returns a non-negative integer). - get(int) - Method in class org.omegazero.http.h2.util.HTTP2Settings
-
Returns the setting identified by the given setting number defined in
HTTPConstants. - get(int, String, HTTPHeaderContainer) - Method in interface org.omegazero.http.gen.HTTPResponseSupplier
-
Creates a new
HTTPResponse. - get(String, String, String, String, String, HTTPHeaderContainer) - Method in interface org.omegazero.http.gen.HTTPRequestSupplier
-
Creates a new
HTTPRequest. - get(HTTPRequestSupplier<T>) - Method in class org.omegazero.http.h1.HTTP1RequestReceiver
-
Returns the
HTTPRequestafter successfully receiving it. - get(HTTPResponseSupplier<T>) - Method in class org.omegazero.http.h1.HTTP1ResponseReceiver
-
Returns the
HTTPResponseafter successfully receiving it. - getActiveRequests() - Method in interface org.omegazero.http.util.HTTPClient
-
Returns a (possibly unmodifiable) collection of all currently active request transactions managed by this
HTTPClient. - getActiveRequests() - Method in interface org.omegazero.http.util.HTTPServer
-
Returns a (possibly unmodifiable) collection of all currently active request transactions managed by this
HTTPServer. - getAndReset() - Method in class org.omegazero.http.h2.hpack.HPackContext.IntRef
- getAuthority() - Method in class org.omegazero.http.common.HTTPRequest
-
Returns the HTTP request authority (URI component) of this
HTTPRequest, ornullif thisHTTPMessagedoes not contain an authority component. - getClient() - Method in class org.omegazero.http.util.AbstractHTTPClientStream
- getClient() - Method in interface org.omegazero.http.util.HTTPClientStream
-
Returns the
HTTPClientthat created thisHTTPClientStream. - getClientPreface() - Static method in class org.omegazero.http.h2.util.HTTP2Util
-
Returns a copy of the byte array containing the HTTP/2 client connection preface.
- getClientPrefaceLength() - Static method in class org.omegazero.http.h2.util.HTTP2Util
-
Returns the length of the HTTP/2 client connection preface.
- getCloseReason() - Method in exception class org.omegazero.http.common.MessageStreamClosedException
-
Returns the close reason passed in the constructor.
- getCloseTime() - Method in class org.omegazero.http.h2.streams.MessageStream
-
Returns the time this stream closed, as returned by
System.nanoTime(). - getConnection() - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Returns the underlying connection as a
WritableSocket. - getConnection() - Method in class org.omegazero.http.h2.streams.HTTP2Stream
-
Returns the
WritableSocketconfigured in the constructor. - getConnection() - Method in class org.omegazero.http.netutil.SocketConnectionWritable
-
Returns the
SocketConnectionpassed in the constructor. - getConnection() - Method in interface org.omegazero.http.util.HTTPClient
-
Returns the connection to the server.
- getConnection() - Method in interface org.omegazero.http.util.HTTPServer
-
Returns the client connection this
HTTPServeris associated with. - getControlStream() - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Returns the connection control stream (stream with ID 0).
- getCreatedTime() - Method in class org.omegazero.http.common.HTTPMessage
-
Returns the time this
HTTPMessageobject was created, as returned bySystem.currentTimeMillis(). - getData() - Method in class org.omegazero.http.common.HTTPMessageData
-
Returns the data stored in this
HTTPMessageDataobject. - getDecoderDynamicTableMaxSizeCurrent() - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Returns the current maximum size of the dynamic table of the decoder.
- getDecoderDynamicTableMaxSizeSettings() - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Returns the maximum size of the dynamic table of the decoder, as sent in a SETTINGS frame.
- getDecoderDynamicTableSize() - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Returns the current size of the dynamic table of the decoder.
- getDefault(int) - Static method in class org.omegazero.http.h2.util.HTTP2Settings
-
Returns the default value for the given setting number defined in
HTTPConstants. - getDefaultSettingsData() - Static method in class org.omegazero.http.h2.util.HTTP2Settings
-
Returns an array containing the default
HTTP2Settings. - getEncodedData() - Method in class org.omegazero.http.h2.hpack.HPackContext.EncoderContext
-
Returns the data encoded using this
HPackContext.EncoderContext. - getEncoderDynamicTableMaxSizeCurrent() - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Returns the current maximum size of the dynamic table of the encoder, as received in a SETTINGS frame, possibly lowered using
HPackContext.setEncoderDynamicTableMaxSizeCurrent(int). - getEncoderDynamicTableMaxSizeSettings() - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Returns the maximum size of the dynamic table of the encoder, as received in a SETTINGS frame.
- getEncoderDynamicTableSize() - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Returns the current size of the dynamic table of the encoder.
- getHeader(String) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Returns the value of a header with the given key (name).
- getHeader(String, int) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Returns the value of a header with the given key (name).
- getHeader(String, int, String) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Returns the value of a header with the given key (name), or def if it does not exist.
- getHeader(String, String) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Returns the value of a header with the given key (name), or def if no header with the given name exists.
- getHeaderCount(String) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Returns the number of header fields with the given key (name).
- getHeaderSize() - Method in class org.omegazero.http.h1.HTTP1MessageReceiver
-
Returns the total amount of bytes received through
HTTP1MessageReceiver.receive(byte[], int). - getHttpMessage() - Method in class org.omegazero.http.common.HTTPMessageData
-
Returns the
HTTPMessagestored in thisHTTPMessageDataobject. - getHttpMessage() - Method in class org.omegazero.http.common.HTTPMessageTrailers
-
Returns the
HTTPMessagethis trailer data belongs to. - getHttpMessage() - Method in class org.omegazero.http.common.HTTPRequestData
-
Returns the
HTTPRequeststored in thisHTTPRequestDataobject. - getHttpMessage() - Method in class org.omegazero.http.common.HTTPResponseData
-
Returns the
HTTPResponsestored in thisHTTPResponseDataobject. - getHttpResponder() - Method in class org.omegazero.http.common.HTTPRequest
-
Returns the
HTTPResponderset usingHTTPRequest.setHttpResponder(HTTPResponder)used inHTTPRequest.respond(HTTPResponseData)and similar methods. - getHttpVersion() - Method in class org.omegazero.http.common.HTTPMessage
-
Returns the HTTP version declared in this
HTTPMessage. - getLocalSettings() - Method in class org.omegazero.http.h2.streams.ControlStream
-
Returns the local
HTTP2Settings. - getLocalWindowSize() - Method in class org.omegazero.http.h2.streams.ControlStream
-
Returns the connection window size of the local endpoint.
- getMaxConcurrentRequestCount() - Method in interface org.omegazero.http.util.HTTPClient
-
Returns the maximum number of concurrent active requests this
HTTPClientcan be used for. - getMethod() - Method in class org.omegazero.http.common.HTTPRequest
-
Returns the HTTP request method of this
HTTPRequest. - getOpenLocallyInitiatedMessageStreamCount() - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Returns the number of open
MessageStreams initiated locally. - getOpenMessageStreamCount() - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Returns the number of open
MessageStreams. - getOpenPeerInitiatedMessageStreamCount() - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Returns the number of open
MessageStreams initiated by the peer. - getOther() - Method in class org.omegazero.http.common.HTTPMessage
-
Returns the other
HTTPMessageof the HTTP message exchange thisHTTPMessageis part of. - getOther() - Method in class org.omegazero.http.common.HTTPRequest
- getOther() - Method in class org.omegazero.http.common.HTTPResponse
- getPath() - Method in class org.omegazero.http.common.HTTPRequest
-
Returns the HTTP request path (URI component) of this
HTTPRequest. - getReceiverWindowSize() - Method in class org.omegazero.http.h2.streams.ControlStream
-
Returns the connection window size of the remote endpoint.
- getRemoteName() - Method in class org.omegazero.http.netutil.SocketConnectionWritable
- getRemoteName() - Method in interface org.omegazero.http.util.WritableSocket
-
Returns a readable string identifier of the remote peer.
- getRemoteSettings() - Method in class org.omegazero.http.h2.streams.ControlStream
-
Returns the
HTTP2Settingssent by the remote endpoint. - getRequest() - Method in class org.omegazero.http.util.AbstractHTTPMessageStream
- getRequest() - Method in interface org.omegazero.http.util.HTTPMessageStream
-
Returns the request of this
HTTPMessageStream. - getResponse() - Method in class org.omegazero.http.util.AbstractHTTPClientStream
- getResponse() - Method in interface org.omegazero.http.util.HTTPClientStream
-
Returns the received response of this
HTTPClientStream, ornullif no response was received yet. - getScheme() - Method in class org.omegazero.http.common.HTTPRequest
-
Returns the HTTP request scheme (URI component) of this
HTTPRequest. - getServer() - Method in class org.omegazero.http.util.AbstractHTTPServerStream
- getServer() - Method in interface org.omegazero.http.util.HTTPServerStream
-
Returns the
HTTPServerthat created thisHTTPServerStream. - getSession() - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Returns the
Sessionconfigured in the constructor. - getSocket() - Method in class org.omegazero.http.h1.HTTP1MessageTransmitter
-
Returns the
WritableSocketpassed in the constructor. - getStartLine(HTTPMessage) - Method in class org.omegazero.http.h1.HTTP1MessageTransmitter
-
Returns the HTTP/1 start line of the given
HTTPMessage. - getState() - Method in class org.omegazero.http.h2.streams.MessageStream
-
Returns the state of this stream.
- getStatus() - Method in class org.omegazero.http.common.HTTPResponse
-
Returns the HTTP response status code of this
HTTPResponse. - getStatus() - Method in exception class org.omegazero.http.h2.HTTP2ConnectionError
-
Returns the status code passed in the constructor.
- getStatusCodeName(int) - Static method in exception class org.omegazero.http.h2.HTTP2ConnectionError
-
Returns a string of the format
NAME [NUMBER], whereNAMEis the string name of the given status code, andNUMBERis the given status code number. - getStatusName(int) - Static method in class org.omegazero.http.util.HTTPStatus
-
Returns a user-friendly string representation for each status code defined in this class.
- getStream(int) - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Returns the stream with the given ID.
- getStreamId() - Method in class org.omegazero.http.h2.streams.HTTP2Stream
-
Returns the ID of this
HTTP2Stream. - getStreams() - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Returns a set of all known streams, including recently closed streams.
- getVersion() - Method in class org.omegazero.http.h1.HTTP1MessageReceiver
-
Returns the string representation of the received version.
- getVersion() - Static method in class org.omegazero.http.HTTPLib
-
Returns the version string.
H
- handleConnectionWindowUpdate() - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Calls
MessageStream.windowUpdate()for each activeMessageStream. - handlePushPromise(HTTPRequest) - Method in class org.omegazero.http.h2.HTTP2Client
-
Creates a new
MessageStreamthat expects to receive a promise response by the server. - hasDataBacklog() - Method in class org.omegazero.http.h2.streams.MessageStream
-
Returns
trueif this stream is buffering data because more data was passed toMessageStream.sendData(byte[], boolean)than the receiver can receive. - hasEnded() - Method in class org.omegazero.http.h1.MessageBodyDechunker
-
Returns
trueif the input stream of thisMessageBodyDechunkerhas ended, either due to a call toMessageBodyDechunker.end()or because all data was received. - hasReceivedAllData() - Method in class org.omegazero.http.h1.MessageBodyDechunker
-
Returns
trueif all expected data was received. - hasResponse() - Method in class org.omegazero.http.common.HTTPRequest
- hasResponseBody() - Method in class org.omegazero.http.common.HTTPResponse
-
Determines whether this
HTTPResponsehas a response body if initiated by the given request. - hasResponseBody(int) - Static method in class org.omegazero.http.common.HTTPResponse
-
Determines whether responses with the given status code should have a response body.
- hasResponseBody(HTTPRequest) - Method in class org.omegazero.http.common.HTTPResponse
-
Determines whether this
HTTPResponsehas a response body if initiated by the given request. - headerExists(String) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Checks whether there is at least one header with the given key (name).
- headerFields - Variable in class org.omegazero.http.common.HTTPHeaderContainer
-
Contains the header data.
- headerIterator() - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Returns an iterator iterating over each header key-value pair.
- headerNameCount() - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Returns the number of unique header names.
- headerNameSet() - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Returns an unmodifiable set of all header names stored in this
HTTPHeaderContainer. - headers() - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Returns an
Iterablefor use in a for-each loop. - headerSet() - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Returns an unmodifiable set of all headers stored in this
HTTPHeaderContainer. - highestStreamId - Variable in class org.omegazero.http.h2.HTTP2Endpoint
-
The stream ID of the latest stream that was processed.
- hpack - Variable in class org.omegazero.http.h2.HTTP2Endpoint
-
The
HPackContextused for thisHTTP2Endpoint. - HPackContext - Class in org.omegazero.http.h2.hpack
-
A
HPackContextcontains one encoder and decoder for use on a HTTP/2 connection. - HPackContext(boolean, int) - Constructor for class org.omegazero.http.h2.hpack.HPackContext
-
Creates a new
HPackContextwith a newSession. - HPackContext(HPackContext.Session, boolean, int) - Constructor for class org.omegazero.http.h2.hpack.HPackContext
-
Creates a new
HPackContext. - HPackContext.EncoderContext - Class in org.omegazero.http.h2.hpack
-
An
EncoderContextis used for encoding a single header block. - HPackContext.IntRef - Class in org.omegazero.http.h2.hpack
- HPackContext.Session - Class in org.omegazero.http.h2.hpack
- HPackHuffmanCoding - Class in org.omegazero.http.h2.hpack
-
A Huffman Coding implementation for HPACK.
- HPackHuffmanCoding() - Constructor for class org.omegazero.http.h2.hpack.HPackHuffmanCoding
- HTTP1MessageReceiver - Class in org.omegazero.http.h1
-
This class is used for receiving and parsing HTTP headers.
- HTTP1MessageReceiver() - Constructor for class org.omegazero.http.h1.HTTP1MessageReceiver
-
Creates a new
HTTP1MessageReceiverwith the default maximum message size. - HTTP1MessageReceiver(int) - Constructor for class org.omegazero.http.h1.HTTP1MessageReceiver
-
Creates a new
HTTP1MessageReceiver. - HTTP1MessageTransmitter - Class in org.omegazero.http.h1
-
This class is used for transmitting HTTP headers.
- HTTP1MessageTransmitter() - Constructor for class org.omegazero.http.h1.HTTP1MessageTransmitter
-
Creates a new
HTTP1MessageTransmitter. - HTTP1MessageTransmitter(WritableSocket) - Constructor for class org.omegazero.http.h1.HTTP1MessageTransmitter
-
Creates a new
HTTP1MessageTransmitter. - HTTP1RequestReceiver - Class in org.omegazero.http.h1
-
A special
HTTP1MessageReceiverused for receivingHTTPRequests. - HTTP1RequestReceiver(boolean) - Constructor for class org.omegazero.http.h1.HTTP1RequestReceiver
-
Creates a new
HTTP1RequestReceiverwith the default maximum message size. - HTTP1RequestReceiver(int, boolean) - Constructor for class org.omegazero.http.h1.HTTP1RequestReceiver
-
Creates a new
HTTP1RequestReceiver. - HTTP1ResponseReceiver - Class in org.omegazero.http.h1
-
A special
HTTP1MessageReceiverused for receivingHTTPResponses. - HTTP1ResponseReceiver() - Constructor for class org.omegazero.http.h1.HTTP1ResponseReceiver
-
Creates a new
HTTP1ResponseReceiverwith the default maximum message size. - HTTP1ResponseReceiver(int) - Constructor for class org.omegazero.http.h1.HTTP1ResponseReceiver
-
Creates a new
HTTP1ResponseReceiver. - HTTP1Util - Class in org.omegazero.http.h1
-
HTTP/1 utility functions.
- HTTP2_VERSION_NAME - Static variable in class org.omegazero.http.h2.streams.MessageStream
- HTTP2Client - Class in org.omegazero.http.h2
-
An instance of this class represents a HTTP/2 client, a special type of
HTTP2Endpoint. - HTTP2Client(WritableSocket, HTTP2Settings, HPackContext) - Constructor for class org.omegazero.http.h2.HTTP2Client
-
Creates a new
HTTP2Clientinstance. - HTTP2Client(WritableSocket, HTTP2Settings, HPackContext.Session, boolean) - Constructor for class org.omegazero.http.h2.HTTP2Client
-
Creates a new
HTTP2Clientinstance. - HTTP2ConnectionError - Exception Class in org.omegazero.http.h2
-
Represents a HTTP/2 connection or stream error.
- HTTP2ConnectionError(int) - Constructor for exception class org.omegazero.http.h2.HTTP2ConnectionError
-
Creates a new
HTTP2ConnectionError, as a connection error. - HTTP2ConnectionError(int, boolean) - Constructor for exception class org.omegazero.http.h2.HTTP2ConnectionError
-
Creates a new
HTTP2ConnectionError. - HTTP2ConnectionError(int, boolean, String) - Constructor for exception class org.omegazero.http.h2.HTTP2ConnectionError
-
Creates a new
HTTP2ConnectionErrorwith the given message. - HTTP2ConnectionError(int, String) - Constructor for exception class org.omegazero.http.h2.HTTP2ConnectionError
-
Creates a new
HTTP2ConnectionError, as a connection error with the given message. - HTTP2Constants - Class in org.omegazero.http.h2.util
-
Contains HTTP/2 constants.
- HTTP2Constants() - Constructor for class org.omegazero.http.h2.util.HTTP2Constants
- HTTP2Endpoint - Class in org.omegazero.http.h2
-
Represents any HTTP/2 endpoint (client or server).
- HTTP2Endpoint(WritableSocket, HTTP2Settings, HPackContext) - Constructor for class org.omegazero.http.h2.HTTP2Endpoint
-
Creates a new
HTTP2Endpointinstance. - HTTP2Endpoint(WritableSocket, HTTP2Settings, HPackContext.Session, boolean) - Constructor for class org.omegazero.http.h2.HTTP2Endpoint
-
Creates a new
HTTP2Endpointinstance. - HTTP2Settings - Class in org.omegazero.http.h2.util
-
An instance of this class stores HTTP/2 settings for a connection.
- HTTP2Settings() - Constructor for class org.omegazero.http.h2.util.HTTP2Settings
-
Creates a new
HTTP2Settingswith default settings. - HTTP2Settings(int[]) - Constructor for class org.omegazero.http.h2.util.HTTP2Settings
-
Creates a new
HTTP2Settingswith the given settings. - HTTP2Settings(HTTP2Settings) - Constructor for class org.omegazero.http.h2.util.HTTP2Settings
-
Creates a new
HTTP2Settingswith the given settings. - HTTP2Stream - Class in org.omegazero.http.h2.streams
-
Represents a HTTP/2 stream where frames can be sent or received.
- HTTP2Stream(int, WritableSocket) - Constructor for class org.omegazero.http.h2.streams.HTTP2Stream
-
Creates a
HTTP2Streaminstance. - HTTP2Util - Class in org.omegazero.http.h2.util
-
HTTP/2 utility functions.
- HTTPClient - Interface in org.omegazero.http.util
-
A
HTTPClientis associated with a single connection to a server where requests can be sent to usingHTTPClient.newRequest(HTTPRequest). - HTTPClientStream - Interface in org.omegazero.http.util
-
A
HTTPClientStreamrepresents a single HTTP request transaction from the perspective of the client, including the outgoingHTTPRequestand its data, and is used for receiving the corresponding response. - HTTPException - Exception Class in org.omegazero.http.common
-
An exception thrown when any kind of HTTP protocol error is encountered.
- HTTPException() - Constructor for exception class org.omegazero.http.common.HTTPException
-
Creates a new
HTTPExceptionwith no detail message. - HTTPException(String) - Constructor for exception class org.omegazero.http.common.HTTPException
-
Creates a new
HTTPExceptionwith the given detail message. - HTTPException(String, Throwable) - Constructor for exception class org.omegazero.http.common.HTTPException
-
Creates a new
HTTPExceptionwith the given detail message and cause. - HTTPHeaderContainer - Class in org.omegazero.http.common
-
Represents a collection of HTTP header key-value pairs.
- HTTPHeaderContainer() - Constructor for class org.omegazero.http.common.HTTPHeaderContainer
-
Creates a new
HTTPHeaderContainerwith an empty set of headers. - HTTPHeaderContainer(Map<String, String[]>) - Constructor for class org.omegazero.http.common.HTTPHeaderContainer
-
Creates a new
HTTPHeaderContainerwith the given headers. - HTTPHeaderContainer(HTTPHeaderContainer) - Constructor for class org.omegazero.http.common.HTTPHeaderContainer
-
Copies the given
HTTPHeaderContainer. - HTTPLib - Class in org.omegazero.http
-
This class contains metadata about omz-http-lib (for example the version string).
- HTTPLib() - Constructor for class org.omegazero.http.HTTPLib
- httpMessage - Variable in class org.omegazero.http.common.HTTPMessageData
- HTTPMessage - Class in org.omegazero.http.common
-
Represents a generic HTTP request or response message, agnostic of the HTTP version used.
- HTTPMessage(String, HTTPHeaderContainer) - Constructor for class org.omegazero.http.common.HTTPMessage
-
Creates a new
HTTPMessagewith the given headers. - HTTPMessage(HTTPMessage) - Constructor for class org.omegazero.http.common.HTTPMessage
-
Copies the given
HTTPMessage. - HTTPMessageData - Class in org.omegazero.http.common
-
An object of this class contains a single
HTTPMessageand its body data (or a part of it). - HTTPMessageData(HTTPMessage, boolean, byte[]) - Constructor for class org.omegazero.http.common.HTTPMessageData
-
Creates a new
HTTPMessageDatainstance. - HTTPMessageData(HTTPMessage, byte[]) - Constructor for class org.omegazero.http.common.HTTPMessageData
-
Creates a new
HTTPMessageDatainstance. - HTTPMessageStream - Interface in org.omegazero.http.util
-
A
HTTPMessageStreamrepresents a single HTTP request transaction. - HTTPMessageTrailers - Class in org.omegazero.http.common
-
Represents HTTP trailers (headers sent after a request or response body).
- HTTPMessageTrailers(HTTPMessage, HTTPHeaderContainer) - Constructor for class org.omegazero.http.common.HTTPMessageTrailers
-
Creates a new
HTTPMessageTrailersinstance. - HTTPMessageTrailers(HTTPMessageTrailers) - Constructor for class org.omegazero.http.common.HTTPMessageTrailers
-
Copies the given
HTTPMessageTrailers. - HTTPRequest - Class in org.omegazero.http.common
-
Represents a HTTP request, a specific type of
HTTPMessage. - HTTPRequest(String, String, String, String, String, HTTPHeaderContainer) - Constructor for class org.omegazero.http.common.HTTPRequest
-
Creates a new
HTTPRequest. - HTTPRequest(HTTPRequest) - Constructor for class org.omegazero.http.common.HTTPRequest
-
Copies the given
HTTPRequest. - HTTPRequestData - Class in org.omegazero.http.common
-
Special form of a
HTTPMessageDataobject forHTTPRequests. - HTTPRequestData(HTTPRequest, boolean, byte[]) - Constructor for class org.omegazero.http.common.HTTPRequestData
-
Creates a new
HTTPRequestDatainstance. - HTTPRequestData(HTTPRequest, byte[]) - Constructor for class org.omegazero.http.common.HTTPRequestData
-
Creates a new
HTTPRequestDatainstance. - HTTPRequestSupplier<T> - Interface in org.omegazero.http.gen
-
A functional interface for creating
HTTPRequests. - httpResponder - Variable in class org.omegazero.http.common.HTTPRequest
-
The
HTTPResponderto use in therespondmethods. - HTTPResponder - Interface in org.omegazero.http.util
- HTTPResponse - Class in org.omegazero.http.common
-
Represents a HTTP response, a specific type of
HTTPMessage. - HTTPResponse(int, String, HTTPHeaderContainer) - Constructor for class org.omegazero.http.common.HTTPResponse
-
Creates a new
HTTPResponse. - HTTPResponse(HTTPResponse) - Constructor for class org.omegazero.http.common.HTTPResponse
-
Copies the given
HTTPResponse. - HTTPResponseData - Class in org.omegazero.http.common
-
Special form of a
HTTPMessageDataobject forHTTPResponses. - HTTPResponseData(HTTPResponse, boolean, byte[]) - Constructor for class org.omegazero.http.common.HTTPResponseData
-
Creates a new
HTTPResponseDatainstance. - HTTPResponseData(HTTPResponse, byte[]) - Constructor for class org.omegazero.http.common.HTTPResponseData
-
Creates a new
HTTPResponseDatainstance. - HTTPResponseSupplier<T> - Interface in org.omegazero.http.gen
-
A functional interface for creating
HTTPResponses. - HTTPServer - Interface in org.omegazero.http.util
-
A
HTTPServeris associated with a single client connection from which it receives data, which is then processed to createHTTPServerStreams usable by the application. - HTTPServerStream - Interface in org.omegazero.http.util
-
A
HTTPServerStreamrepresents a single HTTP request transaction from the perspective of the server, including the incomingHTTPRequestand its associated incoming data, and is used to send a corresponding response. - HTTPStatus - Class in org.omegazero.http.util
-
Contains standard or widely used HTTP status code numbers.
- HTTPValidator - Class in org.omegazero.http.util
-
Contains several methods for validating HTTP message components.
- httpVersion - Variable in class org.omegazero.http.common.HTTPMessage
-
The HTTP version string.
I
- int32BE(int) - Static method in class org.omegazero.http.h2.util.FrameUtil
-
Creates a new 4-byte array and writes the given value to it in network byte order.
- INTERNAL_ERROR - Enum constant in enum class org.omegazero.http.common.MessageStreamClosedException.CloseReason
- internalError(Exception) - Method in class org.omegazero.http.util.AbstractHTTPMessageStream
-
Called when a callback handler throws an exception.
- IntRef() - Constructor for class org.omegazero.http.h2.hpack.HPackContext.IntRef
- InvalidHTTPMessageException - Exception Class in org.omegazero.http.common
-
An exception thrown when a malformed or otherwise invalid
HTTPMessageis encountered. - InvalidHTTPMessageException() - Constructor for exception class org.omegazero.http.common.InvalidHTTPMessageException
-
Creates a new
InvalidHTTPMessageExceptionwith no detail message. - InvalidHTTPMessageException(String) - Constructor for exception class org.omegazero.http.common.InvalidHTTPMessageException
-
Creates a new
InvalidHTTPMessageExceptionwith the given detail message. - InvalidHTTPMessageException(String, boolean) - Constructor for exception class org.omegazero.http.common.InvalidHTTPMessageException
-
Creates a new
InvalidHTTPMessageExceptionwith the given detail message. - InvalidHTTPMessageException(String, Throwable) - Constructor for exception class org.omegazero.http.common.InvalidHTTPMessageException
-
Creates a new
InvalidHTTPMessageExceptionwith the given detail message and cause. - InvalidHTTPMessageException(String, Throwable, boolean) - Constructor for exception class org.omegazero.http.common.InvalidHTTPMessageException
-
Creates a new
InvalidHTTPMessageExceptionwith the given detail message and cause. - isChunkedTransfer() - Method in class org.omegazero.http.common.HTTPMessage
-
Returns whether the message body is chunked, as set by
HTTPMessage.setChunkedTransfer(boolean)or by the application that created thisHTTPMessageobject. - isClosed() - Method in class org.omegazero.http.h2.streams.MessageStream
- isClosed() - Method in class org.omegazero.http.util.AbstractHTTPMessageStream
- isClosed() - Method in interface org.omegazero.http.util.HTTPMessageStream
-
Returns
trueif thisHTTPMessageStreamhas closed, either forcibly (viaHTTPMessageStream.close()) or because the request transaction has completed. - isCloseOutgoing() - Method in class org.omegazero.http.h2.streams.MessageStream
-
Returns
trueif this stream was closed because a RST_STREAM frame or a frame with the END_STREAM flag was sent, not received. - isConnected() - Method in class org.omegazero.http.netutil.SocketConnectionWritable
- isConnected() - Method in interface org.omegazero.http.util.WritableSocket
-
Returns
trueif thisWritableSocketis connected, meaning data can still be written. - isExpectingResponse() - Method in class org.omegazero.http.h2.streams.MessageStream
- isFlowControlledFrameType(int) - Static method in class org.omegazero.http.h2.streams.HTTP2Stream
-
Returns
trueif the given frame type is a flow-controlled frame type. - isIntermediateMessage() - Method in class org.omegazero.http.common.HTTPResponse
-
Determines whether this
HTTPResponseis an intermediate message, meaning it is followed up by anotherHTTPResponseto complete the HTTP exchange or it has some other special meaning. - isLastPacket() - Method in class org.omegazero.http.common.HTTPMessageData
-
Returns whether this
HTTPMessageDatarepresents the last body data part of the HTTP message. - isLocked() - Method in class org.omegazero.http.common.HTTPMessage
- isMsgUserVisible() - Method in exception class org.omegazero.http.common.InvalidHTTPMessageException
-
Returns whether the message of this
Throwablemay be shown to external parties, for example in a400 Bad Requestresponse body. - isNeverIndex(String) - Method in class org.omegazero.http.h2.hpack.HPackContext.Session
- isServerPushEnabled() - Method in interface org.omegazero.http.util.HTTPServer
-
Returns
trueif server push is supported and enabled. - isSettingsReceived() - Method in class org.omegazero.http.h2.streams.ControlStream
-
Returns
trueif a SETTINGS frame was received. - isStartLineReceived() - Method in class org.omegazero.http.h1.HTTP1MessageReceiver
-
Returns
trueif a valid HTTP start line was received in a call toHTTP1MessageReceiver.receive(byte[], int)and is available. - isStreamError() - Method in exception class org.omegazero.http.h2.HTTP2ConnectionError
-
Returns whether this instance represents a stream or connection error, as configured in the constructor.
- isUseHuffmanEncoding() - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Returns
trueif Huffman Encoding was enabled in the constructor. - isValidClientPreface(byte[]) - Static method in class org.omegazero.http.h2.util.HTTP2Util
-
Checks whether the given data is a valid HTTP/2 client connection preface.
- isValidClientPreface(byte[], int) - Static method in class org.omegazero.http.h2.util.HTTP2Util
-
Checks whether the given data, starting at offset, is a valid HTTP/2 client connection preface.
- isWritable() - Method in class org.omegazero.http.netutil.SocketConnectionWritable
- isWritable() - Method in interface org.omegazero.http.util.WritableSocket
-
Returns
trueif thisWritableSocketis writable.
L
- lastPacket - Variable in class org.omegazero.http.common.HTTPMessageData
- lHeaders - Variable in class org.omegazero.http.h1.HTTP1MessageReceiver
- localWindowSize - Variable in class org.omegazero.http.h2.streams.HTTP2Stream
- lock() - Method in class org.omegazero.http.common.HTTPMessage
-
Locks this
HTTPMessage, which will cause any method that changes the state of this object (for example, setters) to throw anIllegalStateException. - locked - Variable in class org.omegazero.http.common.HTTPMessage
M
- MessageBodyDechunker - Class in org.omegazero.http.h1
-
Used for parsing HTTP/1 message bodies, for example with the chunked transfer encoding.
- MessageBodyDechunker(HTTPMessage, Consumer<byte[]>) - Constructor for class org.omegazero.http.h1.MessageBodyDechunker
-
Creates a new
MessageBodyDechunkerwith a default buffer size of 16KiB. - MessageBodyDechunker(HTTPMessage, Consumer<byte[]>, int) - Constructor for class org.omegazero.http.h1.MessageBodyDechunker
-
Creates a new
MessageBodyDechunker. - MessageStream - Class in org.omegazero.http.h2.streams
-
Represents any
HTTP2Streamwhere HTTP messages are exchanged (streams with IDs higher than 0). - MessageStream(int, WritableSocket, ControlStream, HPackContext) - Constructor for class org.omegazero.http.h2.streams.MessageStream
-
Creates a
MessageStreaminstance. - MessageStream(int, WritableSocket, ControlStream, HTTP2Settings, HTTP2Settings, HPackContext) - Constructor for class org.omegazero.http.h2.streams.MessageStream
-
Creates a
MessageStreaminstance. - MessageStreamClosedException - Exception Class in org.omegazero.http.common
-
An exception thrown when a
HTTPMessageStreamis closed unexpectedly. - MessageStreamClosedException(MessageStreamClosedException.CloseReason) - Constructor for exception class org.omegazero.http.common.MessageStreamClosedException
-
Creates a new
MessageStreamClosedExceptionwith the given close reason. - MessageStreamClosedException(MessageStreamClosedException.CloseReason, String, Throwable) - Constructor for exception class org.omegazero.http.common.MessageStreamClosedException
-
Creates a new
MessageStreamClosedExceptionwith the given close reason, detail message, and cause. - MessageStreamClosedException(MessageStreamClosedException.CloseReason, Throwable) - Constructor for exception class org.omegazero.http.common.MessageStreamClosedException
-
Creates a new
MessageStreamClosedExceptionwith the given close reason and cause. - MessageStreamClosedException.CloseReason - Enum Class in org.omegazero.http.common
- method - Variable in class org.omegazero.http.common.HTTPRequest
-
The HTTP request method.
- msgInit(T) - Static method in class org.omegazero.http.h1.HTTP1MessageReceiver
N
- newRequest(HTTPRequest) - Method in interface org.omegazero.http.util.HTTPClient
-
Creates a new
HTTPClientStreamfor the given request. - newStreamForFrame(int, int, int, byte[]) - Method in class org.omegazero.http.h2.HTTP2Client
- newStreamForFrame(int, int, int, byte[]) - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Processes a frame received on a previously nonexistent stream and creates a new
HTTP2Streamfor it, if appropriate.
O
- onError - Variable in class org.omegazero.http.util.AbstractHTTPMessageStream
- onError(Consumer<Exception>) - Method in class org.omegazero.http.util.AbstractHTTPMessageStream
- onError(Consumer<Exception>) - Method in interface org.omegazero.http.util.HTTPMessageStream
-
Sets a callback that is called when this
HTTPMessageStreamencounters a fatal error. - onMessageStreamClosed(MessageStream) - Method in class org.omegazero.http.h2.HTTP2Client
-
This method must be called by the application after a message stream returned by
HTTP2Client.createRequestStream()orHTTP2Client.handlePushPromise(HTTPRequest)closed to remove it from internal storage. - onNewRequest(Consumer<HTTPServerStream>) - Method in interface org.omegazero.http.util.HTTPServer
-
Sets the callback that is called when a new
HTTPServerStreamwas created after receiving a request from the client. - onRequestData - Variable in class org.omegazero.http.util.AbstractHTTPServerStream
- onRequestData(Consumer<HTTPRequestData>) - Method in class org.omegazero.http.util.AbstractHTTPServerStream
- onRequestData(Consumer<HTTPRequestData>) - Method in interface org.omegazero.http.util.HTTPServerStream
-
Sets a callback that is called when this
HTTPServerStreamreceives data for the request. - onRequestEnded - Variable in class org.omegazero.http.util.AbstractHTTPServerStream
- onRequestEnded(Consumer<HTTPMessageTrailers>) - Method in class org.omegazero.http.util.AbstractHTTPServerStream
- onRequestEnded(Consumer<HTTPMessageTrailers>) - Method in interface org.omegazero.http.util.HTTPServerStream
-
Sets a callback that is called when this
HTTPServerStreamhas finished receiving the request and data, including optional trailers. - onResponse - Variable in class org.omegazero.http.util.AbstractHTTPClientStream
- onResponse(Consumer<HTTPResponse>) - Method in class org.omegazero.http.util.AbstractHTTPClientStream
- onResponse(Consumer<HTTPResponse>) - Method in interface org.omegazero.http.util.HTTPClientStream
-
Sets a callback that is called when this
HTTPClientStreamreceives a response. - onResponseData - Variable in class org.omegazero.http.util.AbstractHTTPClientStream
- onResponseData(Consumer<HTTPResponseData>) - Method in class org.omegazero.http.util.AbstractHTTPClientStream
- onResponseData(Consumer<HTTPResponseData>) - Method in interface org.omegazero.http.util.HTTPClientStream
-
Sets a callback that is called when this
HTTPClientStreamreceives data for the response. - onResponseEnded - Variable in class org.omegazero.http.util.AbstractHTTPClientStream
- onResponseEnded(Consumer<HTTPMessageTrailers>) - Method in class org.omegazero.http.util.AbstractHTTPClientStream
- onResponseEnded(Consumer<HTTPMessageTrailers>) - Method in interface org.omegazero.http.util.HTTPClientStream
-
Sets a callback that is called when this
HTTPClientStreamhas finished receiving the response and data, including optional trailers. - onServerPush - Variable in class org.omegazero.http.util.AbstractHTTPClientStream
- onServerPush(Consumer<HTTPClientStream>) - Method in class org.omegazero.http.util.AbstractHTTPClientStream
- onServerPush(Consumer<HTTPClientStream>) - Method in interface org.omegazero.http.util.HTTPClientStream
-
Sets a callback that is called when this
HTTPClientStreamreceives a pushed request. - onSettingsUpdate(HTTP2Settings) - Method in class org.omegazero.http.h2.HTTP2Client
-
This method is called when a SETTINGS frame is received from the server.
- onWritable - Variable in class org.omegazero.http.util.AbstractHTTPMessageStream
- onWritable(Runnable) - Method in class org.omegazero.http.util.AbstractHTTPMessageStream
- onWritable(Runnable) - Method in interface org.omegazero.http.util.HTTPMessageStream
-
Sets a callback that is called when this
HTTPMessageStreamhas cleared its write buffer after asendDatacall returnedfalse. - org.omegazero.http - package org.omegazero.http
-
Base package of the omegazero HTTP library.
- org.omegazero.http.common - package org.omegazero.http.common
-
Provides an abstraction layer for HTTP message data of any HTTP version.
- org.omegazero.http.gen - package org.omegazero.http.gen
-
Provides generator interfaces.
- org.omegazero.http.h1 - package org.omegazero.http.h1
-
Provides an HTTP/1 implementation and helper methods as an extension to the HTTP library.
- org.omegazero.http.h2 - package org.omegazero.http.h2
-
Base package of the HTTP/2 implementation.
- org.omegazero.http.h2.hpack - package org.omegazero.http.h2.hpack
-
Provides a HPACK implementation according to RFC 7541.
- org.omegazero.http.h2.streams - package org.omegazero.http.h2.streams
-
Provides HTTP/2 stream implementations.
- org.omegazero.http.h2.util - package org.omegazero.http.h2.util
-
Provides HTTP/2 utility classes.
- org.omegazero.http.netutil - package org.omegazero.http.netutil
-
Provides integrations with omz-net-lib.
- org.omegazero.http.util - package org.omegazero.http.util
-
Provides utility classes and an abstraction layer for HTTP communication of any HTTP version.
- other - Variable in class org.omegazero.http.common.HTTPMessage
P
- parseHTTPRequest(byte[], int, boolean) - Static method in class org.omegazero.http.h1.HTTP1Util
-
Parses a complete HTTP request header block using a
HTTP1RequestReceiverfrom the given data, starting at offset. - parseHTTPResponse(byte[], int) - Static method in class org.omegazero.http.h1.HTTP1Util
-
Parses a complete HTTP response header block using a
HTTP1ResponseReceiverfrom the given data, starting at offset. - parseStatus(String) - Static method in class org.omegazero.http.util.HTTPValidator
-
Parses the given HTTP response status string.
- path - Variable in class org.omegazero.http.common.HTTPRequest
-
The HTTP request path.
- peerInitiatedStreams - Variable in class org.omegazero.http.h2.HTTP2Endpoint
-
The set of
MessageStreams initiated by the peer. - preparePush(boolean) - Method in class org.omegazero.http.h2.streams.MessageStream
-
Prepares this stream for the receipt or transmission of a promised server response.
- PRINT_STACK_TRACES - Static variable in class org.omegazero.http.h2.util.HTTP2Util
-
Whether the full stack trace of a HTTP/2 error should be printed instead of just the error message.
- processData(byte[]) - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Data received on the underlying connection of this
HTTP2Endpointis passed to this method for further processing. - processData0(byte[], int) - Method in class org.omegazero.http.h2.HTTP2Endpoint
- PROTOCOL_DOWNGRADE - Enum constant in enum class org.omegazero.http.common.MessageStreamClosedException.CloseReason
- PROTOCOL_ERROR - Enum constant in enum class org.omegazero.http.common.MessageStreamClosedException.CloseReason
R
- readInt16BE(byte[], int) - Static method in class org.omegazero.http.h2.util.FrameUtil
-
Reads a 16-bit integer in network byte order (big endian) from the given data, starting at offset.
- readInt32BE(byte[], int) - Static method in class org.omegazero.http.h2.util.FrameUtil
-
Reads a 32-bit integer in network byte order (big endian) from the given data, starting at offset.
- readInteger(byte[], int, int, HPackContext.IntRef) - Static method in class org.omegazero.http.h2.hpack.HPackContext
-
Decodes an integer from a byte array according to RFC 7541, section 5.1.
- readInteger32(byte[], int, int, HPackContext.IntRef) - Static method in class org.omegazero.http.h2.hpack.HPackContext
-
Equivalent to
HPackContext.readInteger(byte[], int, int, IntRef), except that-1will be returned if the decoded integer is higher than a signed 32-bit value can represent (larger thanInteger.MAX_VALUE). - readString(byte[], int, HPackContext.IntRef) - Static method in class org.omegazero.http.h2.hpack.HPackContext
-
Decodes a UTF-8 string from the given byte array according to RFC 7541, section 5.2.
- receive(byte[]) - Method in interface org.omegazero.http.util.HTTPClient
-
Called by the application when it receives data from the server connection this
HTTPClientis associated with. - receive(byte[]) - Method in interface org.omegazero.http.util.HTTPServer
-
Called by the application when it receives data from the client connection this
HTTPServeris associated with. - receive(byte[], int) - Method in class org.omegazero.http.h1.HTTP1MessageReceiver
-
Parses the given data containing a full or partial HTTP header block.
- receiveFrame(int, int, byte[]) - Method in class org.omegazero.http.h2.streams.ControlStream
- receiveFrame(int, int, byte[]) - Method in class org.omegazero.http.h2.streams.HTTP2Stream
-
This method is called if a frame is received on this HTTP/2 stream.
- receiveFrame(int, int, byte[]) - Method in class org.omegazero.http.h2.streams.MessageStream
- receiveHeader(String, String) - Method in class org.omegazero.http.h1.HTTP1MessageReceiver
-
Called when a HTTP header is received.
- receiveHeader(String, String) - Method in class org.omegazero.http.h1.HTTP1RequestReceiver
- receiverWindowSize - Variable in class org.omegazero.http.h2.streams.HTTP2Stream
- receiveStartLine(String[]) - Method in class org.omegazero.http.h1.HTTP1MessageReceiver
-
Called when a HTTP/1 start line is received.
- receiveStartLine(String[]) - Method in class org.omegazero.http.h1.HTTP1RequestReceiver
- receiveStartLine(String[]) - Method in class org.omegazero.http.h1.HTTP1ResponseReceiver
- receiveVersion(String) - Method in class org.omegazero.http.h1.HTTP1MessageReceiver
-
Called when the version string in the start line is received.
- REFUSED - Enum constant in enum class org.omegazero.http.common.MessageStreamClosedException.CloseReason
- registerStream(HTTP2Stream) - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Registers a locally created stream.
- registerStream(HTTP2Stream, boolean) - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Registers a new stream.
- request - Variable in class org.omegazero.http.util.AbstractHTTPMessageStream
- requestLine() - Method in class org.omegazero.http.common.HTTPRequest
-
Generates a HTTP/1-style request line of the form [method] [requestURI] HTTP/[version number].
- requestURI() - Method in class org.omegazero.http.common.HTTPRequest
-
Generates the request URI of this
HTTPRequest. - reset() - Method in class org.omegazero.http.h1.HTTP1MessageReceiver
-
Resets this
HTTP1MessageReceiverto allow receipt of additionalHTTPMessages. - reset() - Method in class org.omegazero.http.h1.HTTP1RequestReceiver
- reset() - Method in class org.omegazero.http.h1.HTTP1ResponseReceiver
- respond(int, byte[], String...) - Method in class org.omegazero.http.common.HTTPRequest
-
Responds to this
HTTPRequestusing anHTTPResponderset for this object. - respond(int, byte[], String...) - Method in class org.omegazero.http.util.AbstractHTTPServerStream
-
Responds to this
HTTPServerStreamwith a new HTTP response with the given status, data and headers, if no response was already sent. - respond(int, byte[], String...) - Method in interface org.omegazero.http.util.HTTPServerStream
-
Responds to this
HTTPServerStreamwith a new HTTP response with the given status, data and headers, if no response was already sent. - respond(HTTPRequest, int, byte[], String...) - Method in interface org.omegazero.http.util.HTTPResponder
-
Responds to the given request with a new HTTP response with the given status, data and headers, if the request has not already received a response.
- respond(HTTPRequest, HTTPResponseData) - Method in interface org.omegazero.http.util.HTTPResponder
-
Responds to the given request with the given response, if the request has not already received a response.
- respond(HTTPResponseData) - Method in class org.omegazero.http.common.HTTPRequest
-
Responds to this
HTTPRequestusing anHTTPResponderset for this object. - respond(HTTPResponseData) - Method in class org.omegazero.http.util.AbstractHTTPServerStream
-
Responds to this
HTTPServerStreamwith the given full response, if no response was already sent. - respond(HTTPResponseData) - Method in interface org.omegazero.http.util.HTTPServerStream
-
Responds to this
HTTPServerStreamwith the given full response, if no response was already sent. - response - Variable in class org.omegazero.http.util.AbstractHTTPClientStream
- responseLine() - Method in class org.omegazero.http.common.HTTPResponse
-
Generates a HTTP/1-style response line of the form HTTP/[version] [status].
- responseReceived(HTTPResponse) - Method in class org.omegazero.http.util.AbstractHTTPClientStream
-
Calls the
onResponsecallback and stores the response, ifHTTPResponse.isIntermediateMessage()isfalse. - rst(int) - Method in class org.omegazero.http.h2.streams.MessageStream
-
Sends the given errorCode in a RST_STREAM frame to close the stream, if the underlying connection is still connected.
S
- scheme - Variable in class org.omegazero.http.common.HTTPRequest
-
The HTTP request scheme.
- send(HTTPMessage) - Method in class org.omegazero.http.h1.HTTP1MessageTransmitter
-
Encodes the given
HTTPMessageusingHTTP1MessageTransmitter.generate(HTTPMessage)and writes it to theWritableSocketpassed in the constructor. - sendData(byte[], boolean) - Method in class org.omegazero.http.h2.streams.MessageStream
-
Sends the given data on this stream in one or more DATA frames.
- sendGoaway(int, int) - Method in class org.omegazero.http.h2.streams.ControlStream
-
Sends a GOAWAY frame with the given stream ID and error code on this control stream.
- sendHTTPMessage(HTTPMessage, boolean) - Method in class org.omegazero.http.h2.streams.MessageStream
-
Sends the given
HTTPMessageon this stream by encoding the data with the configuredHPackContextand sending it in one HEADERS and zero or more CONTINUATION frames. - sendPushPromise(int, HTTPRequest) - Method in class org.omegazero.http.h2.streams.MessageStream
-
Sends the given
HTTPRequeston this stream by encoding the data with the configuredHPackContextand sending it in one PUSH_PROMISE and zero or more CONTINUATION frames. - sendRequestData(byte[], boolean) - Method in interface org.omegazero.http.util.HTTPClientStream
-
Streams request data.
- sendResponseData(byte[], boolean) - Method in interface org.omegazero.http.util.HTTPServerStream
-
Streams response data after a call to
HTTPServerStream.startResponse(HTTPResponse). - sendTrailers(HTTPMessageTrailers) - Method in class org.omegazero.http.h2.streams.MessageStream
-
Sends the given trailers on this stream by encoding the data with the configured
HPackContextand sending it in one HEADERS and zero or more CONTINUATION frames. - sendWindowSizeUpdate(int) - Method in class org.omegazero.http.h2.streams.HTTP2Stream
-
Writes a window update frame on this stream and updates internal window size information.
- server - Variable in class org.omegazero.http.util.AbstractHTTPServerStream
- Session() - Constructor for class org.omegazero.http.h2.hpack.HPackContext.Session
- set(int, int) - Method in class org.omegazero.http.h2.util.HTTP2Settings
-
Sets the setting identified by the given setting number defined in
HTTPConstantsto the given value. - setAuthority(String) - Method in class org.omegazero.http.common.HTTPRequest
-
Sets the HTTP authority (URI component) of this
HTTPRequest. - setChunkedTransfer(boolean) - Method in class org.omegazero.http.common.HTTPMessage
-
Sets whether the body of this message should be chunked.
- setData(byte[]) - Method in class org.omegazero.http.common.HTTPMessageData
-
Replaces the stored data with the given data.
- setDecoderDynamicTableMaxSizeSettings(int) - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Sets the maximum size of the dynamic table of the decoder, as sent in a SETTINGS frame.
- setEncoderDynamicTableMaxSizeCurrent(int) - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Sets the current maximum size of the dynamic table of the encoder.
- setEncoderDynamicTableMaxSizeSettings(int) - Method in class org.omegazero.http.h2.hpack.HPackContext
-
Sets the maximum size of the dynamic table of the encoder, as received in a SETTINGS frame.
- setHeader(String, String) - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Sets the value of the header with the given key (name) to the given value.
- setHttpResponder(HTTPResponder) - Method in class org.omegazero.http.common.HTTPRequest
-
Sets a
HTTPResponderused inHTTPRequest.respond(HTTPResponseData)and similar methods. - setHttpVersion(String) - Method in class org.omegazero.http.common.HTTPMessage
-
Sets the HTTP version string of this
HTTPMessage. - setMethod(String) - Method in class org.omegazero.http.common.HTTPRequest
-
Sets the HTTP request method of this
HTTPRequest. - setOnClosed(Consumer<Integer>) - Method in class org.omegazero.http.h2.streams.MessageStream
- setOnData(SpecificThrowingConsumer<HTTP2ConnectionError, HTTPMessageData>) - Method in class org.omegazero.http.h2.streams.MessageStream
- setOnDataFlushed(Runnable) - Method in class org.omegazero.http.h2.streams.MessageStream
- setOnMessage(SpecificThrowingConsumer<HTTP2ConnectionError, HTTPMessageData>) - Method in class org.omegazero.http.h2.streams.MessageStream
- setOnPushPromise(SpecificThrowingConsumer<HTTP2ConnectionError, HTTPRequest>) - Method in class org.omegazero.http.h2.streams.MessageStream
- setOnSettingsUpdate(Consumer<HTTP2Settings>) - Method in class org.omegazero.http.h2.streams.ControlStream
-
Sets the callback that is called when a SETTINGS frame is received from the remote endpoint.
- setOnTrailers(SpecificThrowingConsumer<HTTP2ConnectionError, HTTPMessageTrailers>) - Method in class org.omegazero.http.h2.streams.MessageStream
- setOnWindowUpdate(Runnable) - Method in class org.omegazero.http.h2.streams.ControlStream
-
Sets the callback that is called when a WINDOW_UPDATE frame is received from the remote endpoint.
- setOther(HTTPMessage) - Method in class org.omegazero.http.common.HTTPMessage
-
Sets the
HTTPMessagereturned byHTTPMessage.getOther(). - setPath(String) - Method in class org.omegazero.http.common.HTTPRequest
-
Sets the HTTP path (URI component) of this
HTTPRequest. - setReceiveData(boolean) - Method in class org.omegazero.http.h2.streams.MessageStream
-
Sets whether this stream should continue receiving flow-controlled data by sending WINDOW_UPDATE frames.
- setReceiveData(boolean) - Method in interface org.omegazero.http.util.HTTPMessageStream
-
Sets whether this stream should continue receiving data.
- setRequestSupplier(HTTPRequestSupplier<?>) - Method in class org.omegazero.http.h2.streams.MessageStream
-
Sets the
HTTPRequestSupplierfor this message stream. - setResponseSupplier(HTTPResponseSupplier<?>) - Method in class org.omegazero.http.h2.streams.MessageStream
-
Sets the
HTTPResponseSupplierfor this message stream. - setScheme(String) - Method in class org.omegazero.http.common.HTTPRequest
-
Sets the HTTP scheme (URI component) of this
HTTPRequest. - setServerPushEnabled(boolean) - Method in interface org.omegazero.http.util.HTTPClient
-
Enables or disabled server push.
- setStatus(int) - Method in class org.omegazero.http.common.HTTPResponse
-
Sets the HTTP response status code of this
HTTPResponse. - settings - Variable in class org.omegazero.http.h2.HTTP2Endpoint
-
The local settings.
- SETTINGS_COUNT - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- SETTINGS_ENABLE_PUSH - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- SETTINGS_HEADER_TABLE_SIZE - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- SETTINGS_INITIAL_WINDOW_SIZE - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- SETTINGS_MAX_CONCURRENT_STREAMS - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- SETTINGS_MAX_FRAME_SIZE - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- SETTINGS_MAX_FRAME_SIZE_MAX - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- SETTINGS_MAX_FRAME_SIZE_MIN - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- SETTINGS_MAX_HEADER_LIST_SIZE - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- socket - Variable in class org.omegazero.http.h1.HTTP1MessageTransmitter
- SocketConnectionWritable - Class in org.omegazero.http.netutil
-
A
WritableSocketthat wraps aSocketConnection. - SocketConnectionWritable(SocketConnection) - Constructor for class org.omegazero.http.netutil.SocketConnectionWritable
-
Creates a new
SocketConnectionWritable. - start() - Method in class org.omegazero.http.h2.HTTP2Client
-
Starts the HTTP/2 client by sending the client connection preface and SETTINGS frame.
- startRequest() - Method in interface org.omegazero.http.util.HTTPClientStream
-
Starts the request passed in a constructor.
- startResponse(HTTPResponse) - Method in interface org.omegazero.http.util.HTTPServerStream
-
Starts a response with the given response header.
- startServerPush(HTTPRequest) - Method in interface org.omegazero.http.util.HTTPServerStream
-
Starts a server push stream with the given push request.
- STATE_CLOSED - Static variable in class org.omegazero.http.h2.streams.MessageStream
- STATE_HALF_CLOSED - Static variable in class org.omegazero.http.h2.streams.MessageStream
- STATE_HALF_CLOSED_LOCAL - Static variable in class org.omegazero.http.h2.streams.MessageStream
- STATE_IDLE - Static variable in class org.omegazero.http.h2.streams.MessageStream
- STATE_OPEN - Static variable in class org.omegazero.http.h2.streams.MessageStream
- STATE_RESERVED - Static variable in class org.omegazero.http.h2.streams.MessageStream
- STATE_RESERVED_LOCAL - Static variable in class org.omegazero.http.h2.streams.MessageStream
- status - Variable in class org.omegazero.http.common.HTTPResponse
-
The HTTP response status.
- STATUS_ACCEPTED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_BAD_GATEWAY - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_BAD_REQUEST - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_CANCEL - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_COMPRESSION_ERROR - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_CONFLICT - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_CONNECT_ERROR - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_CONTINUE - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_CREATED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_EARLY_HINTS - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_ENHANCE_YOUR_CALM - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_EXPECTATION_FAILED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_FLOW_CONTROL_ERROR - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_FORBIDDEN - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_FOUND - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_FRAME_SIZE_ERROR - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_GATEWAY_TIMEOUT - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_GONE - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_HTTP_1_1_REQUIRED - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_HTTP_VERSION_NOT_SUPPORTED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_IM_A_TEAPOT - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_INADEQUATE_SECURITY - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_INTERNAL_ERROR - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_INTERNAL_SERVER_ERROR - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_LENGTH_REQUIRED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_LOOP_DETECTED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_METHOD_NOT_ALLOWED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_MOVED_PERMANENTLY - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_MULTIPLE_CHOICES - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_NETWORK_AUTHENTICATION_REQUIRED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_NO_CONTENT - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_NO_ERROR - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_NON_AUTHORITATIVE - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_NOT_ACCEPTABLE - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_NOT_EXTENDED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_NOT_FOUND - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_NOT_IMPLEMENTED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_NOT_MODIFIED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_OK - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_PARTIAL_CONTENT - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_PAYLOAD_TOO_LARGE - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_PERMANENT_REDIRECT - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_PRECONDITION_FAILED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_PRECONDITION_REQUIRED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_PROCESSING - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_PROTOCOL_ERROR - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_PROXY_AUTHENTICATION_REQUIRED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_RANGE_NOT_SATISFIABLE - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_REFUSED_STREAM - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_REQUEST_TIMEOUT - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_RESET_CONTENT - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_SEE_OTHER - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_SERVICE_UNAVAILABLE - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_SETTINGS_TIMEOUT - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_STREAM_CLOSED - Static variable in class org.omegazero.http.h2.util.HTTP2Constants
- STATUS_SWITCHING_PROTOCOLS - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_TEMPORARY_REDIRECT - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_TOO_MANY_REQUESTS - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_UNAUTHORIZED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_UNAVAILABLE_FOR_LEGAL_REASONS - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_UNSUPPORTED_MEDIA_TYPE - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_UPGRADE_REQUIRED - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_URI_TOO_LONG - Static variable in class org.omegazero.http.util.HTTPStatus
- STATUS_VARIANT_ALSO_NEGOTIATES - Static variable in class org.omegazero.http.util.HTTPStatus
- StreamCallback<T> - Interface in org.omegazero.http.h2.util
-
Deprecated.Since 1.3.1,
IOExceptions can no longer be thrown from callbacks in HTTP/2 stream implementations - streamClosed(MessageStream) - Method in class org.omegazero.http.h2.HTTP2Endpoint
-
Notifies this
HTTP2Endpointthat the given stream has closed. - streamId - Variable in class org.omegazero.http.h2.streams.HTTP2Stream
- streams - Variable in class org.omegazero.http.h2.HTTP2Endpoint
-
Deprecated.Since 1.2.4, direct access is discouraged; use
HTTP2Endpoint.registerStream(HTTP2Stream)andHTTP2Endpoint.getStream(int)instead
T
- toChunk(byte[]) - Static method in class org.omegazero.http.h1.HTTP1Util
-
Wraps the given data in a HTTP/1 data chunk used in chunked transfer encoding.
- toString() - Method in class org.omegazero.http.common.HTTPHeaderContainer
-
Returns a string representation of this
HTTPHeaderContainer, containing all header key-value pairs.
U
- UNKNOWN - Enum constant in enum class org.omegazero.http.common.MessageStreamClosedException.CloseReason
V
- v - Variable in class org.omegazero.http.h2.hpack.HPackContext.IntRef
- validAuthority(String) - Static method in class org.omegazero.http.util.HTTPValidator
-
Verifies the given HTTP URL authority string.
- validMethod(byte[], int, int) - Static method in class org.omegazero.http.util.HTTPValidator
-
Checks that the first length bytes in the given byte array, starting at offset, represent a valid HTTP request method string.
- validMethod(String) - Static method in class org.omegazero.http.util.HTTPValidator
-
Verifies the given HTTP request method string.
- validPath(String) - Static method in class org.omegazero.http.util.HTTPValidator
-
Verifies the given HTTP URL path string.
- validStatus(String) - Static method in class org.omegazero.http.util.HTTPValidator
-
Verifies the given HTTP response status string.
- validString(byte[], int, int) - Static method in class org.omegazero.http.util.HTTPValidator
-
Checks that the first length bytes in the given byte array, starting at offset, only consist of visible printable ASCII characters (range 33 - 126 inclusive).
- validString(String) - Static method in class org.omegazero.http.util.HTTPValidator
-
Checks that the given string is not
nulland only consists of visible printable ASCII characters (range 33 - 126 inclusive). - valueOf(String) - Static method in enum class org.omegazero.http.common.MessageStreamClosedException.CloseReason
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.omegazero.http.common.MessageStreamClosedException.CloseReason
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VERSION - Static variable in class org.omegazero.http.HTTPLib
-
The version string of omz-http-lib.
W
- windowSizeLock - Variable in class org.omegazero.http.h2.streams.HTTP2Stream
- windowUpdate() - Method in class org.omegazero.http.h2.streams.ControlStream
- windowUpdate() - Method in class org.omegazero.http.h2.streams.HTTP2Stream
-
This method is called when a window update frame is received.
- windowUpdate() - Method in class org.omegazero.http.h2.streams.MessageStream
- WritableSocket - Interface in org.omegazero.http.util
-
Provides an abstraction layer for outgoing data over a socket.
- write(byte[]) - Method in interface org.omegazero.http.util.WritableSocket
-
Writes the given data to this
WritableSocket. - write(byte[], int, int) - Method in class org.omegazero.http.netutil.SocketConnectionWritable
- write(byte[], int, int) - Method in interface org.omegazero.http.util.WritableSocket
-
Writes the given data to this
WritableSocket. - writeFrame(int, int, byte[]) - Method in class org.omegazero.http.h2.streams.HTTP2Stream
-
Writes a frame with the given properties to the
WritableSocketpassed in the constructor. - writeFrame(int, int, byte[], int, int) - Method in class org.omegazero.http.h2.streams.HTTP2Stream
-
Writes a frame with the given properties to the
WritableSocketpassed in the constructor. - writeFrame(int, int, byte[], int, int) - Method in class org.omegazero.http.h2.streams.MessageStream
- writeFrame(WritableSocket, int, int, int, byte[], int, int) - Static method in class org.omegazero.http.h2.streams.HTTP2Stream
-
Writes a frame with the given properties to the given
WritableSocket. - writeInt16BE(byte[], int, int) - Static method in class org.omegazero.http.h2.util.FrameUtil
-
Writes a 16-bit integer in network byte order (big endian) to the given data, starting at offset.
- writeInt32BE(byte[], int, int) - Static method in class org.omegazero.http.h2.util.FrameUtil
-
Writes a 32-bit integer in network byte order (big endian) to the given data, starting at offset.
- writeInteger(byte[], int, int, long) - Static method in class org.omegazero.http.h2.hpack.HPackContext
-
Encodes an integer into a byte array according to RFC 7541, section 5.1.
- writeSettings(HTTP2Settings) - Method in class org.omegazero.http.h2.streams.ControlStream
-
Sends a SETTINGS frame with the given
HTTP2Settingsdata on this control stream. - writeSettings(HTTP2Settings, int...) - Method in class org.omegazero.http.h2.streams.ControlStream
-
Sends a SETTINGS frame with the given
HTTP2Settingsdata on this control stream. - writeString(byte[], int, byte[], boolean) - Static method in class org.omegazero.http.h2.hpack.HPackContext
-
Encodes string data into the given byte array according to RFC 7541, section 5.2.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
HTTP2Endpoint.streamClosed(MessageStream)instead