io.netty5.buffer.ByteBuf s into RTSP messages represented in
HttpMessages.
| Name | Meaning |
|---|---|
maxInitialLineLength |
The maximum length of the initial line
(e.g. "SETUP / RTSP/1.0" or "RTSP/1.0 200 OK")
If the length of the initial line exceeds this value, a
io. will be raised. |
maxHeaderSize |
The maximum length of all headers. If the sum of the length of each
header exceeds this value, a io. will be
raised. |
maxContentLength |
The maximum length of the content. If the content length exceeds this
value, a io. will be raised. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFAULT_MAX_CONTENT_LENGTH
Constant for default max content length. |
| private boolean | isDecodingRequest
True if the message to decode is a request. |
| private static final HttpResponseStatus | UNKNOWN_STATUS
Status code for unknown responses. |
| private static final Pattern | versionPattern
Regex used on first line in message to detect if it is a response. |
| Access | Constructor and Description |
|---|---|
| public | RtspDecoder()
Creates a new instance with the default
|
| public | RtspDecoder(final int
The max allowed length of initial line maxInitialLineLength, final int The max allowed size of header maxHeaderSize, final int The max allowed content length maxContentLength)Creates a new instance with the specified parameters. |
| public | RtspDecoder(final int
The max allowed length of initial line maxInitialLineLength, final int The max allowed size of header maxHeaderSize, final int The max allowed content length maxContentLength, final boolean Set to true if headers should be validated validateHeaders)Creates a new instance with the specified parameters. |
| Modifier and Type | Method and Description |
|---|---|
| protected HttpMessage | createInvalidMessage(ChannelHandlerContext ctx)
Implements abstract io. |
| protected HttpMessage | createMessage(final String[] initialLine)
Implements abstract io. |
| protected boolean | |
| protected boolean | isDecodingRequest()
Implements abstract io. |
| DEFAULT_MAX_CONTENT_LENGTH | back to summary |
|---|---|
| public static final int DEFAULT_MAX_CONTENT_LENGTH Constant for default max content length. | |
| isDecodingRequest | back to summary |
|---|---|
| private boolean isDecodingRequest True if the message to decode is a request. False if the message to decode is a response. | |
| UNKNOWN_STATUS | back to summary |
|---|---|
| private static final HttpResponseStatus UNKNOWN_STATUS Status code for unknown responses. | |
| versionPattern | back to summary |
|---|---|
| private static final Pattern versionPattern Regex used on first line in message to detect if it is a response. | |
| RtspDecoder | back to summary |
|---|---|
| public RtspDecoder() Creates a new instance with the default
| |
| RtspDecoder | back to summary |
|---|---|
| public RtspDecoder(final int maxInitialLineLength, final int maxHeaderSize, final int maxContentLength) Creates a new instance with the specified parameters.
| |
| RtspDecoder | back to summary |
|---|---|
| public RtspDecoder(final int maxInitialLineLength, final int maxHeaderSize, final int maxContentLength, final boolean validateHeaders) Creates a new instance with the specified parameters.
| |
| createInvalidMessage | back to summary |
|---|---|
| protected HttpMessage createInvalidMessage(ChannelHandlerContext ctx) Implements abstract io.
| |
| createMessage | back to summary |
|---|---|
| protected HttpMessage createMessage(final String[] initialLine) throws Exception Implements abstract io.
| |
| isContentAlwaysEmpty | back to summary |
|---|---|
| protected boolean isContentAlwaysEmpty(final HttpMessage msg) Overrides io.
| |
| isDecodingRequest | back to summary |
|---|---|
| protected boolean isDecodingRequest() Implements abstract io.
| |